1˵
    1COMP1PB6INP PA2INM PA5Ӱ
    
2ʹû

    KEIL MDK-ARM V5.34.0.0
    Ӳ 
        N32G05xϵУ
            N32G05xRBQ7_STB V1.0
        N32G05xϵУ
            N32G05xRBL7_STB V1.0

3ʹ˵
    ϵͳã
        1ʱԴ
            HSI=8M,AHB=64M,APB1=32M, COMP_CLK=32M ,COMP_FILCLK=64M
        2˿ã
            PA2ѡΪģ⹦COMP INP
            PA5ѡΪģ⹦COMP INM
            PB6ѡΪģ⹦COMP OUT
            PB1ѡΪIO
            PB2ѡΪIO
        3COMP
            COMP1PA2PA5PA6
    ʹ÷
        1򿪵ģʽPB1ӵPA2PB2ӵPA5ʾ߼ǹ۲PB6
        2PB1ƽPB2ʱPB6ߵƽ෴ʱ͵ƽ
4ע
    


1. Function description
    1. COMP1 output PB6 is affected by INP PA2 and INM PA5

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:
            HSI=8M,AHB=64M,APB1=32M, COMP_CLK=32M ,COMP_FILCLK=64M
        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
        3. COMP
            COMP1 inputs PA2, PA5, and outputs PB6
    Usage:
        1. After compiling, open the debugging mode, connect PB1 to PA2 and PB2 to PA5, 
          and observe the output waveform of PB6 using oscilloscope or logic analyzer.
        2. When the software outputs PB1 level greater than PB2, PB6 outputs high level; otherwise, PB6 outputs low level 
        
4. Matters needing attention
    none