模板型号：SC95F8617B
模板使用IC资源：TIMER2,INT22
模板使用驱动资源：模拟IIC
模板说明：外部中断+定时器捕获实现测周期和脉宽例程。通过定时器2的捕获模式捕获下降沿，外部中断INT22捕获到上升沿，实现周期和脉宽的测量。
Template model: SC95F8617B
The Template uses the IC resource: TIMER2,INT22
The template uses the driver resource: Simulate IIC
Template description: Examples of external interrupts and timer capture to achieve cycle and pulse width measurements.The period and pulse width measurement is achieved by capturing the falling edge through the capture mode of Timer 2 and the rising edge through the external interrupt INT22.