SPRUJB3 March 2024 AM67 , AM67A , TDA4AEN-Q1 , TDA4VEN-Q1
Table 12-337 lists the steps in the timer PWM mode configuration.
Step | Register/Bit Field/Programming Model | Value |
---|---|---|
Select autoreload mode. | DMTIMER1MS_TCLR[1] AR | 0x- |
Set prescale timer value. | DMTIMER1MS_TCLR[4-2] PTV | 0x- |
Enable prescaler. | DMTIMER1MS_TCLR[5] PRE | 0x1 |
Select trigger output mode. | DMTIMER1MS_TCLR[11-10] TRG | 0x- |
Select pulse or toggle modulation PWM mode. | DMTIMER1MS_TCLR[12] PT | 0x- |
Select TIMER[11-0] or MCU_TIMER[3-0] PWM output at device pins TIMER_IO[11-0] for TIMER[11-0] or at pins MCU_TIMER_IO[3-0] for MCU_TIMER[3-0]. |
DMTIMER1MS_TCLR[14] GPO_CFG | 0x0 |
Configure PWM output pin default value. | DMTIMER1MS_TCLR[7] SCPWM | 0x- |
Load timer load value. | DMTIMER1MS_TLDR | 0x- |
Load timer compare value. | DMTIMER1MS_TMAR | 0x- |
Enable compare. | DMTIMER1MS_TCLR[6] CE | 0x1 |
Start the timer. | DMTIMER1MS_TCLR[0] ST | 0x1 |