42.5.3 Timer Modes
The timer mode is configured by setting an appropriate value in the MODE bits in
TCTRLn register.
Table 42-4. Timer modes that are supported
Timer Mode
Operation
32-bit Periodic Counter
• The counter will load, decrement down to 0
• which will set the timer interrupt flag and assert the output pre-trigger.
Dual 16-bit Periodic
Counter
• The counter will load, then the lower 16-bits will decrement down to 0
• which will assert the output pre-trigger.
• The upper 16-bits will then decrement down to 0
• which will set the timer interrupt flag and then negate the output pre-trigger.
32-bit Trigger
Accumulator
• The counter will load on the 1st trigger rising edge and then decrement down to 0 on each
trigger rising edge
• which will set the timer interrupt flag and assert the output pre-trigger.
32-bit Trigger Input
Capture
• The counter will load with 0xFFFF_FFFF and then decrement down to 0.
• If a trigger rising edge is detected,
• then it will store the inverse of the current counter value in the timer value register
• which will set the timer interrupt flag and assert the output pre-trigger.
The timer operation is controlled by Trigger Control bits (TSOT, TSOI, TROT) which
control the timer load, reload, start and restart of the timers.
NOTE
• The trigger output is asserted one Peripheral Timer Clock
cycle later than pre-trigger output. The trigger output and
the pre-trigger output de-assert at the same time.
• The pre-trigger output is asserted for 2 clock cycles and the
trigger output is asserted for 1 clock cycle (except in 16-bit
Periodic Counter mode, where both pre-trigger and trigger
are asserted for many cycles depending on
TMR_VAL[31:16]).
• Timer changes that are based on external triggers take
effect after 4 peripheral clocks after the actual external
trigger assertion (due to clock synchronization, rise edge
detection and timer update).
42.5.4 Trigger Control for Timers
Various programmable bits control how the trigger inputs and the timer operate.
TRG_SEL and TRG_SRC select the timer triggers:
Functional description
MWCT101xS Series Reference Manual, Rev. 3, 07/2019
1320
NXP Semiconductors
Summary of Contents for MWCT101 S Series
Page 2: ...MWCT101xS Series Reference Manual Rev 3 07 2019 2 NXP Semiconductors...
Page 42: ...MWCT101xS Series Reference Manual Rev 3 07 2019 42 NXP Semiconductors...
Page 50: ...Conventions MWCT101xS Series Reference Manual Rev 3 07 2019 50 NXP Semiconductors...
Page 70: ...Aliased bit band regions MWCT101xS Series Reference Manual Rev 3 07 2019 70 NXP Semiconductors...
Page 78: ...Pinout diagrams MWCT101xS Series Reference Manual Rev 3 07 2019 78 NXP Semiconductors...
Page 96: ...WCT101xS safety concept MWCT101xS Series Reference Manual Rev 3 07 2019 96 NXP Semiconductors...
Page 130: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 130 NXP Semiconductors...
Page 284: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 284 NXP Semiconductors...
Page 430: ...Functional Description MWCT101xS Series Reference Manual Rev 3 07 2019 430 NXP Semiconductors...
Page 472: ...Application Information MWCT101xS Series Reference Manual Rev 3 07 2019 472 NXP Semiconductors...
Page 528: ...Module clocks MWCT101xS Series Reference Manual Rev 3 07 2019 528 NXP Semiconductors...
Page 634: ...SRAM configuration MWCT101xS Series Reference Manual Rev 3 07 2019 634 NXP Semiconductors...
Page 818: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 818 NXP Semiconductors...
Page 960: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 960 NXP Semiconductors...
Page 992: ...ADC calibration scheme MWCT101xS Series Reference Manual Rev 3 07 2019 992 NXP Semiconductors...
Page 1348: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1348 NXP Semiconductors...
Page 1366: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1366 NXP Semiconductors...
Page 1514: ...Functional description MWCT101xS Series Reference Manual Rev 3 07 2019 1514 NXP Semiconductors...
Page 1726: ...Debug and security MWCT101xS Series Reference Manual Rev 3 07 2019 1726 NXP Semiconductors...
Page 1760: ...MWCT101xS Series Reference Manual Rev 3 07 2019 1760 NXP Semiconductors...