1˵
    1TIM1 øжϣʱתIO
2ʹû
      KEIL MDK-ARM V5.34.0.0
    Ӳ      N32G031C8L7-STB V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
                    HSE=8M,PLL=48M,AHB=48M,APB1=48M,APB2=12M,TIM1 CLK=24M
        2жϣ
                    TIM1 жϴ򿪣ȼ1
        3˿ã
                    PA6ѡΪIO
                    PA7ѡΪIO
                    PA8ѡΪIO
                    PA9ѡΪIO
        4TIM
                    TIM1ʹж
    ʹ÷
        1򿪵ģʽʾ߼ǹ۲PA6Ĳ
        2кTIM1жٷתPA6ƽ
4ע
    

1. Function description
     1. TIM1 uses the update interrupt to generate timing rollover IO
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=12M, TIM1 CLK=24M
         2. Interruption:
                     TIM1 update interrupt is turned on, priority level 1
         3. Port configuration:
                     PA6 is selected as IO output
                     PA7 is selected as IO output
                     PA8 is selected as IO output
                     PA9 is selected as IO output
         4. TIM:
                     TIM1 enables periodic interrupts
     Instructions:
         1. After compiling, turn on the debug mode, and use an oscilloscope or logic analyzer to observe the PA6 waveform
         2. After the program is running, the periodic interrupt of TIM1 comes to reverse the level of PA6
4. Matters needing attention
     None