1、功能说明
    1、COMP1的输出PB6受输入INP PA2和INM 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输出
        3、COMP：
            COMP1输入PA2，PA5，输出PA6
    使用方法：
        1、编译后打开调试模式，将PB1连接到PA2，PB2连接到PA5，利用示波器或者逻辑分析仪观察PB6输出波形
        2、当软件输出PB1电平大于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