1˵
    1COMP1PA11INP PB10INM PA5Ӱ
2ʹû
    
         
          IDEߣKEIL MDK-ARM V5.34.0.0
                         IAR EWARM 8.50.1

       Ӳ      
          壺N32G430C8L7-STB V1.0

3ʹ˵
    ϵͳã
        1ʱԴ
            HSE=8M,PLL=128M,AHB=128M,APB1=32M,APB2=64M,COMP CLK=32M 
        2˿ã
            PB10ѡΪģ⹦COMP INP
            PA5ѡΪģ⹦COMP INM
            PA11ѡΪģ⹦COMP OUT
            PB11ѡΪIO
            PB12ѡΪIO
        3COMP
            COMP1PB10PA5PA11
    ʹ÷
        1򿪵ģʽPB11ӵPB10PB12ӵPA5ʾ߼ǹ۲PA11
        2PB11ƽPB12ʱPA11ߵƽ෴ʱ͵ƽ
4ע
    

1. Function description
    1COMP1 output PA11 is affected by INP PB10 and INM PA5
2. Use environment
    Software development environment:   KEIL MDK-ARM V5.34.0.0
                                                                IAR EWARM 8.50.1
    Hardware environment: 
        the evaluation board:   N32G430C8L7-STB V1.0

3. Instructions for use
    System configuration
       1. Clock source:
            HSE=8M,PLL=128M,AHB=128M,APB1=32M,APB2=64M,COMP CLK=32M 
       2. Port Configuration:
            PB10 is selected as the analog function COMP INP
            PA5 is selected as the simulation function COMP INM
            PA11 is selected as emulation feature COMP OUT
            PB11 Select IO output
            PB12 select IO output
       3. COMP
            COMP1 inputs PB10, PA5, and outputs PA11
    Usage:
       1. After compiling, open the debugging mode, connect PB11 to PB10 and PB12 to PA5, 
          and observe the output waveform of PA11 using oscilloscope or logic analyzer.
       2. When the software outputs PB11 level greater than PB12, PA11 outputs high level; otherwise, PA11 outputs low level
4. Precautions
    No