#include "fw_hal.h"
#include "voice.h"
Go to the source code of this file.
◆ INTERRUPT()
Definition at line 72 of file main.c.
73{
78}
#define PWMA_PWM1_SetCaptureCompareValue(__16BIT_VAL__)
__CODE uint8_t voice_bulk[]
◆ main()
◆ PWM_Init()
Definition at line 28 of file main.c.
29{
30
32
35
37
39
41
43
44
45
47
49
51
53
55
57
59
61}
#define GPIO_P1_SetMode(__PINS__, __MODE__)
#define PWMA_SetOverallState(__STATE__)
#define PWMA_SetPinOutputState(__PINS__, __STATE__)
#define PWMA_PWM1_SetPortState(__STATE__)
#define PWMA_PWM1_SetPort(__ALTER_PORT__)
#define PWMA_PWM1N_SetPortState(__STATE__)
#define PWMA_PWM1_SetComparePreload(__STATE__)
#define PWMA_PWM1_SetPortDirection(__PORT_DIR__)
@ PWM_OutputMode_PWM_HighIfLess
#define PWMA_PWM1_ConfigOutputMode(__MODE__)
#define PWMA_SetPrescaler(__16BIT_VAL__)
@ PWMA_PWM1_AlterPort_P10_P11
#define PWMA_SetAutoReloadPreload(__STATE__)
#define PWMA_SetPeriod(__16BIT_VAL__)
#define PWMA_SetCounterDirection(__DIR__)
@ PWM_CounterDirection_Down
#define PWMA_SetCounterState(__STATE__)
◆ Timer0_Init()
Definition at line 63 of file main.c.
64{
70}
#define EXTI_Timer0_SetIntPriority(__PRIORITY__)
#define EXTI_Timer0_SetIntState(__STATE__)
#define EXTI_Global_SetIntState(__STATE__)
@ TIM_TimerMode_16BitAuto
void TIM_Timer0_Config(HAL_State_t freq1t, TIM_TimerMode_t mode, uint16_t frequency)
#define TIM_Timer0_SetRunState(__STATE__)
◆ dc
Demo: DAC voice output simulation Board: STC8H3K32 (types with flash size >= 32KB)
P1.0 -> 200R -> Speaker + GND -> Speaker -
Definition at line 25 of file main.c.
◆ voice_pos
◆ voice_size