================================================================================
                                样例使用说明
                                Sample Description
================================================================================
功能描述：
此样例演示了TIM1的单脉冲模式。当CH1 (PA5)引脚上的上升沿触发计数器开始计数时，当计数值
与CCR2匹配时，CH2 (PA3)输出高电平，直到计数器溢出，CH2再次输出低电平。计数器溢出后，
定时器停止工作。本例程中脉冲宽度为800us。

Function descriptions:
This sample demonstrates the single pulse mode of TIM1. When the rising edge is 
detected on CH1 (PA5) pin, the counter starts counting. When the counter value 
matches CCR2, CH2 (PA3) outputs a high level until the counter overflows. After 
the counter overflows, CH2 outputs a low level and the timer stops working. The 
pulse width in this example is 800us.
================================================================================
测试环境：
测试用板：MS32C001B_STK
MDK版本： 5.28
IAR版本： 9.20
GCC 版本：GNU Arm Embedded Toolchain 10.3-2021.10

Test environment:
Test board: MS32C001B_STK
MDK Version: 5.28
IAR Version: 9.20
GCC Version: GNU Arm Embedded Toolchain 10.3-2021.10
================================================================================
使用步骤：
1. 编译下载程序到MCU，并运行；
2. 在PA5上产生一个上升沿；
3. 通过示波器监测PA5和PA3引脚，可监测到波形。

Example execution steps:
1.Compile, download, and run the program.
2.Generate a rising edge on the PB5 pin.
3.Use an oscilloscope to monitor the PB5 and PB4 pins. You will observe 
the waveforms.
================================================================================
注意事项：
时钟主频为8M
输出效果见下图：
                                ____
                                |   |
   CH1 _________________________|   |_________________________________________
   
                                              ___________________________
                                             |                           |
   CH2 ______________________________________|                           |____
                                <---Delay----><------Pulse--------------->

Notes:
The system frequency is 8MHz.
Please refer to the diagram below for the output effect:
                                ____
                                |   |
   CH1 _________________________|   |_________________________________________
   
                                              ___________________________
                                             |                           |
   CH2 ______________________________________|                           |____
                                <---Delay----><------Pulse--------------->

================================================================================