1˵
    1TIM3 CH2 CH2,CH1½ؼƵ
2ʹû
      KEIL MDK-ARM V5.26.2.0
    Ӳ      N32L40XM-STB_V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
            HSE=8M,PLL=64M,AHB=64M,APB1=16M,APB2=32M,TIM3 CLK=32M
        2жϣ
            TIM3 CH2 CH1½жϴ򿪣ȼ0ȼ1
        3˿ã
            PA7ѡΪTIM3 CH2
            PA3ѡΪIO 
        4TIM
            TIM3 CH2أCH1½زжϴ
    ʹ÷
        1򿪵ģʽPA3PA7TIM3Freqӵwatch
        2PA3ƽת󣬲鿴TIM3FreqƵֵ
4ע
    

1. Function description
     1. TIM3 CH2 pin CH2 rising edge, CH1 falling edge to calculate the frequency
2. Use environment
     Software development environment: KEIL MDK-ARM V5.26.2.0
     Hardware environment: Developed based on N32L40XM-STB_V1.0
3. Instructions for use
     System Configuration;
         1. Clock source:
             HSE=8M,PLL=64M,AHB=64M,APB1=16M,APB2=32M,TIM3 CLK=32M
         2. Interruption:
             TIM3 CH2 rising edge CH1 falling edge interrupt is turned on, preemption priority 0, sub priority 1
         3. Port configuration:
             PA7 is selected as TIM3 CH2 input
             PA3 is selected as IO output
         4. TIM:
             TIM3 CH2 rising edge, CH1 falling edge capture interrupt is turned on
     Instructions:
         1. After compiling, open the debug mode, connect PA3 and PA7, and add the variable TIM3Freq to the watch window
         2. After the program controls the level of PA3 to flip, check the frequency value calculated by TIM3Freq
4. Matters needing attention
     without