1˵
    1TIM3 CH1 CH2 CH3 CH4 ﵽCCֵתұȽֵۼ
2ʹû
      KEIL MDK-ARM V5.26.2.0
    Ӳ      N32L40XM-STB_V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
            HSE=8M,PLL=64M,AHB=64M,APB1=16M,APB2=32M,TIM3 CLK=32M
        2жϣ
            TIM3 Ƚжϴ򿪣ȼ0ȼ0
        3˿ã
            PA6ѡΪTIM3CH1
            PA7ѡΪTIM3CH2
            PB0ѡΪTIM3CH3
            PB1ѡΪTIM3CH4
        4TIM
            TIM3 úCH1 CH2 CH3 CH4ıȽֵת򿪱Ƚж
    ʹ÷
        1򿪵ģʽʾ߼ǹ۲TIM3 CH1 CH2 CH3 CH4Ĳ
        2ÿﵽȽֵʱתͬıȽֵռձΪ50%
4ע
    

1. Function description
    1. When TIM3 CH1 CH2 CH3 CH4 reaches the CC value, the output is reversed, and the comparison value is accumulated
2. Use environment
    Software development environment: KEIL MDK-ARM V5.26.2.0
    Hardware environment: Developed based on N32L40XM-STB_V1.0
3. Instructions for use
    System Configuration;
        1. Clock source:
            HSE=8M,PLL=64M,AHB=64M,APB1=16M,APB2=32M,TIM3 CLK=32M
        2. Interruption:
            TIM3 compare interrupt is turned on, preemption priority 0, subpriority 0
        3. Port configuration:
            PA6 is selected as the CH1 output of TIM3
            PA7 is selected as the CH2 output of TIM3
            PB0 is selected as the CH3 output of TIM3
            PB1 is selected as the CH4 output of TIM3
        4. TIM:
            TIM3 configures the comparison value output of CH1, CH2, CH3, CH4, and turns on the comparison interrupt
    Instructions:
        1. After compiling, turn on the debug mode, use an oscilloscope or logic analyzer to observe the waveform of CH1 CH2 CH3 CH4 of TIM3
        2. Whenever the comparison value is reached, the output is reversed, and the same comparison value is increased again, and the waveform duty cycle is 50%
4. Matters needing attention
    without