SPRUJ52C june 2022 – july 2023 AM69 , AM69A , TDA4AH-Q1 , TDA4AP-Q1 , TDA4VH-Q1 , TDA4VP-Q1
Table 12-500 lists the steps in the timer compare mode configuration.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Select autoreload mode. | TIMER_TCLR[1] AR | 0x- |
Set prescale timer value. | TIMER_TCLR[4-2] PTV | 0x- |
Enable prescaler. | TIMER_TCLR[5] PRE | 0x1 |
Enable match interrupt. | TIMER_IRQSTATUS_SET[0] MAT_EN_FLAG | 0x1 |
Load timer counter value. | TIMER_TCRR | 0x- |
Load timer compare value. | TIMER_TMAR | 0x- |
Enable compare mode. | TIMER_TCLR[6] CE | 0x1 |
Start the timer. | TIMER_TCLR[0] ST | 0x1 |