SPRUI30H November 2015 – May 2024 DRA745 , DRA746 , DRA750 , DRA756
Table 22-14 lists the steps in the GP timer compare mode configuration.
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 |
Enable match interrupt. | IRQSTATUS_SET[0] MAT_EN_FLAG(1) or IRQENABLE_SET[0] MAT_EN_FLAG(2) | 0x1 |
Load timer counter value. | TCRR | 0x- |
Load timer compare value. | TMAR | 0x- |
Enable compare mode. | TCLR[6] CE | 0x1 |
Start the timer. | TCLR[0] ST | 0x1 |