1˵
    1COMP1ɲTIM1 ĻźţCOMP OUTͺָTIM1 
2ʹû
      KEIL MDK-ARM V5.30.0.0
    Ӳ      N32G031C8L7-STB V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
                    HSE=8M,PLL=48M,AHB=48M,APB1=48M,APB2=48M,COMP CLK=48M,TIM1 CLK=48M
        2˿ã
                    PA1ѡΪģ⹦COMP INP
                    PA0ѡΪģ⹦COMP INM
                    PA6ѡΪģ⹦COMP OUT
                    PA2ѡΪIO
                    PA3ѡΪIO
                    PA8ѡΪTIM1 CH1
                    PA9ѡΪTIM1 CH2
                    PA10ѡΪTIM1 CH3
                    PB13ѡΪTIM1 CH1N
                    PB14ѡΪTIM1 CH2N
                    PB15ѡΪTIM1 CH3N
        3TIM
                    TIM1CH1 CH2 CH3 CH1N CH2N CH3N,COMPΪɲ
        4COMP
                    COMP1TIM1 ɲʱָTIM1 
    ʹ÷
        1򿪵ģʽPA2ӵPA1PA3ӵPA0ʾ߼ǹ۲TIM1
        2PA2ƽPA3ʱTIMʧ෴ʱ
4ע
    



1. Function description
    1. The output of COMP1 brakes the complementary signal of TIM1, and the waveform of TIM1 is restored after COMP OUT goes low.

2. Use environment
    Software development environment: KEIL MDK-ARM V5.30.0.0
    Hardware environment: Developed based on the evaluation board N32G031C8L7-STB V1.0

3. Instructions for use
    System Configuration;
        1. Clock source:
                    HSE=8M, PLL=48M, AHB=48M, APB1=48M, APB2=48M, COMP CLK=48M, TIM1 CLK=48M
        2. Port configuration:
                    PA1 is selected as the analog function, COMP INP
                    PA0 is selected as the analog function, COMP INM
                    PA6 is selected as the analog function, COMP OUT
                    PA2 is selected as IO output
                    PA3 is selected as IO output
                    PA8 is selected as TIM1 CH1 output
                    PA9 is selected as TIM1 CH2 output
                    PA10 is selected as TIM1 CH3 output
                    PB13 is selected as TIM1 CH1N output
                    PB14 is selected as TIM1 CH2N output
                    PB15 is selected as TIM1 CH3N output
        3. TIM:
                    TIM1 turns on CH1 CH2 CH3 CH1N CH2N CH3N output, COMP is used as brake input
        4. COMP:
                    COMP1 output triggers TIM1 brake, and resumes TIM1 output when there is no output
    Instructions:
        1. Open the debug mode after compiling, connect PA2 to PA1 and PA3 to PA0, use an oscilloscope or logic analyzer to observe the output waveform of TIM1
        2. When the software output PA2 level is greater than PA3, the TIM waveform disappears, on the contrary, the waveform is output normally

4. Matters needing attention
   None