1˵
    1TIM3 CH2ؼƵ
2ʹû
      KEIL MDK-ARM V5.34.0.0
    Ӳ      N32G031C8L7-STB V1.0
3ʹ˵
    ϵͳ:
        1ʱԴ
                    HSE=8M,PLL=48M,AHB=48M,APB1=48M,APB2=48M,TIM3 CLK=48M
        2жϣ
                    TIM3 CH2жϴ򿪣ȼ1
        3˿ã
                    PA7ѡΪTIM3 CH2
                    PA3ѡΪIO 
        4TIM
                    TIM3 CH2 زжϴ
    ʹ÷
        1򿪵ģʽPA3PA7TIM3FreqgOnePulsEnӵwatch
        2ĬgOnePulsEn=0ÿֶgOnePulsEn=1ʱԿTIM3FreqƵֵ
4ע
    

1. Function description
    1. TIM3 CH2 rising edge calculation frequency
2. Use environment
    Software development environment: KEIL MDK-ARM V5.34.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, TIM3 CLK=48M
        2. Interruption:
            TIM3 CH2 rising edge interrupt open, priority 1
        3. Port configuration:
                     PA7 is selected as TIM3 CH2 input
                     PA3 is selected as IO output
        4. TIM:
            TIM3 CH2 rising edge capture interrupt is opened
Usage method:
    1. Open debugging mode after compilation, connect PA3 to PA7, add variables TIM3Freq, gOnePulsEn to the watch window
    2. Default gOnePulsEn=0, each time you manually give gOnePulsEn=1, you can see the frequency value calculated by TIM3Freq
4. Matters needing attention
    None