1˵
    1TIM1 һںͬʱıںռձ
2ʹû
      KEIL MDK-ARM V5.34.0.0
    Ӳ      N32G430C8L7_STB V1.0
3ʹ˵
    ϵͳã
        1ʱԴ
            HSE=8M,PLL=128M,AHB_CLK=128M,APB2_CLK=64M,TIM1 CLK=128M,DMA CLK=128M
        2˿ã
            PA8ѡΪTIM1 CH1
        3TIM
            TIM1 CH1 ڴDMA burst䣬AR,REPCNT,CCDAT1ĴıռձȺںظ
        4DMA
            DMA1_CH5ͨģʽ3SRC_Buffer[3]TIM1 DMAĴ            
    ʹ÷
        1򿪵ģʽʾ߼ǹ۲TIM1 CH1Ĳ
        2TIM1ĵһڽ󣬺ĲΪDMA˵ĸıںռձȵĲ
4ע
     Ĭ£PA9PA10ñӵNSLINK⴮ж˿ڡPA9PA10δĿеĴж˿ڣ;εж˿ñ

1. Function description
     1. Change the period and duty cycle at the same time after one cycle of TIM1
2. Use environment
     Software development environment: KEIL MDK-ARM V5.34.0.0
     Hardware environment: Developed based on N32G430C8L7_STB V1.0
3. Instructions for use
     System Configuration;
         1. Clock source:
                     HSE=8M,PLL=128M,AHB_CLK=128M,APB2_CLK=64M,TIM1 CLK=128M,DMA CLK=128M
         2. Port configuration:
                     PA8 is selected as TIM1 CH1 output
         3. TIM:
                     TIM1 CH1 output, period trigger DMA burst transfer, load AR, REPCNT, CCDAT1 registers, change duty cycle and period and repeat counter
         4. DMA:
                     DMA1_CH5 channel normal mode transfers 3 half-word SRC_Buffer[3] variables to TIM1 DMA register
     Instructions:
         1. Open the debug mode after compiling, and observe the waveform of TIM1 CH1 with an oscilloscope or logic analyzer
         2. After the first cycle of TIM1 ends, the following waveforms are the waveforms of the change cycle and duty cycle of DMA transfer
4. Matters needing attention
   By default, the PA9 and PA10 jumper caps of the development board are connected to the virtual serial port of NSLINK. If PA9 and PA10 are not used as serial ports in the project, and are used for other purposes, the serial port jumper caps must be unplugged.