SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
Table 22-13 lists the steps in the GP timer 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 overflow interrupt. | IRQSTATUS_SET[1] OVF_EN_FLAG(1) or IRQENABLE_SET[1] OVF_EN_FLAG(2) | 0x1 |
| Load timer counter value. | TCRR | 0x- |
| Load timer load value. | TLDR | 0x- |
| Start the timer. | TCLR[0] ST | 0x1 |