1˵
    1COMP1ɲTIM1ĻźţCOMP OUTͺָTIM1
    
2ʹû

    KEIL MDK-ARM V5.34.0.0
    Ӳ 
        N32G05xϵУ
            N32G05xRBQ7_STB V1.0
        N32G05xϵУ
            N32G05xRBL7_STB V1.0
            
3ʹ˵
    ϵͳã
        1ʱԴ
            HSE=8M,PLL=64M,AHB=64M,APB1=32M,APB2=64M,COMP CLK=32M,TIM1 CLK=64VM
        2˿ã
            PA2ѡΪģ⹦COMP INP
            PA5ѡΪģ⹦COMP INM
            PB6ѡΪģ⹦COMP OUT
            PB1ѡΪIO
            PB2ѡΪIO
            PA4ѡΪTIM1 CH1
            PA6ѡΪTIM1 CH2
            PA11ѡΪTIM1 CH3
        3COMP
            TIM1CH1 CH2 CH3 ,COMPΪɲ
    ʹ÷
        1򿪵ģʽPB1ӵPA2PB2ӵPA5ʾ߼ǹ۲TIM1
        2PB1ƽPB2ʱ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.34.0.0
    Hardware development environment:
         N32G05x series:
            Developed based on the evaluation board N32G05xRBQ7_STB V1.0
         N32G05x series:
            Developed based on the evaluation board N32G05xRBL7_STB V1.0

3. Instructions for use
    System Configuration;
        1. Clock source:
            HSE=8M,PLL=64M,AHB=64M,APB1=32M,APB2=64M,COMP CLK=32M,TIM1 CLK=64VM 
        2. Port Configuration:
            PA2 is selected as the analog function COMP INP
            PA5 is selected as the simulation function COMP INM
            PB6 is selected as emulation feature COMP OUT
            PB1 Select IO output
            PB2 select IO output
            PA4 is selected as TIM1 CH1 output
            PA6 is selected as TIM1 CH2 output
            PA11 is selected as TIM1 CH3 output
        3. COMP
            TIM1 turns on CH1 CH2 CH3 output, COMP is used as brake input
    Usage:
        1. After compiling, turn on the debug mode,connect PB1 to PA2 and PB2 to PA5, use an oscilloscope or logic analyzer to observe the output waveforms of TIM1 
        2. When the software output PB1 level greater than PB2, the TIM waveform disappears, on the contrary, the waveform is output normally
        
4. Matters needing attention
    none