模板型号：SC32F12TC9
模板使用IC资源：GPIO,TIMER0,TIMER1,INT1
模板说明：测量方波周期和正负脉宽。通过定时器1的捕获模式捕获下降沿，外部中断INT1捕获到上升沿，实现周期和脉宽的测量。利用GPIO和TIMER0来模拟IIC实现OLED的显示。
Template model: SC32F12TC9
The Template uses the IC resource: GPIO,TIMER1,INT1
Template description: Measure the square wave period and positive and negative pulse widths. The falling edge is captured by the capture mode of timer 2, and the external interrupt INT1 is captured to the rising edge, and the measurement of period and pulse width is realized. GPIO and TIMER0 are used to simulate the IIC to realize OLED display.