SPRUIE9D May 2017 – May 2024 DRA74P , DRA75P , DRA76P , DRA77P
Table 24-16 lists the steps to initialize capture mode.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Select autoreload mode. | TCLR[1] AR | 0x- |
Set prescale timer value. | TCLR[4:2] PTV | 0x- |
Enable prescaler. | TCLR[5] PRE | 0x1 |
Select TIMERi (where i = 2 to 11 and 13 to 16). Capture input at device pin timeri. | TCLR[14] GPO_CFG | 0x1 |
Select single or second event capture. | TCLR[13] CAPT_MODE | 0x- |
Select transition capture mode. | TCLR[9:8] TCM | 0x- |