1˵
    1TIM3 CH2ͨCH1½غCH2ؼռձȺƵ
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 CC2Ƚжϴ򿪣ȼ0ȼ0
        3˿ã
            PA7ѡΪTIM3CH2
            PA3ѡΪIO
        4TIM
            TIM3 CH1½زCH2źţCH2زCH2ź
    ʹ÷
        1򿪵ģʽPA3PA7FrequencyDutyCycleӵwatch
        2кPA3͵ݿԱռձȺƵʵ
4ע
    

1. Function description
     1. TIM3 CH2 capture pin calculates the duty cycle and frequency through the falling edge of CH1 and the rising edge of CH2
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 CC2 compare interrupt is turned on, preemption priority 0, subpriority 0
         3. Port configuration:
             PA7 is selected as the CH2 input of TIM3
             PA3 is selected as IO output
         4. TIM:
             TIM3 CH1 falling edge captures CH2 signal, CH2 rising edge captures CH2 signal
     Instructions:
         1. After compiling, open the debug mode, connect PA3 and PA7, and add Frequency and DutyCycle to the watch window
         2. After the program runs, the pulse data sent by PA3 can be captured to the duty cycle and frequency to the variable
4. Matters needing attention
     without