ISD91200 Series Technical Reference Manual
Release Date: Sep 16, 2019
- 180 -
Revision 2.4
•
5.7.12 Capture Start Procedure
1.
Setup clock selector (PWM_CLKDIV)
2.
Setup prescaler (PWM_CLKPSC)
3.
Setup channel enable, rising/falling interrupt enable and input signal inverter on/off
(PWM_CAPCTL01, PWM_CAPCTL23)
4.
Setup PWM down-counter (PERIOD)
5.
Set Capture Input Enable Register (PWM_CAPINEN)
6.
Setup the corresponding GPIO pins to PWM function (SYS_GPA_MFP)
7.
Enable PWM timer start running (Set CNTENx = 1 in PWM_CTL)