SPRUHZ7K August 2015 – April 2024 AM5706 , AM5708 , AM5716 , AM5718 , AM5718-HIREL
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 |