UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
432 of 515
NXP Semiconductors
UM11029
Chapter 24: LPC84x Multi-Rate Timer (MRT)
24.6.4 Status register
This register indicates the status of each MRT.
24.6.5 Idle channel register
The idle channel register returns the lowest idle channel number. The channel is
considered idle when both flags is the STATUS register (RUN and INTFLAG) are zero.
In an application with multiple timers running independently, you can calculate the register
offset of the next idle timer by reading the idle channel number in this register. The idle
channel register allows you set up the next idle timer without checking the idle state of
each timer.
Table 429. Control register (CTRL[0:3], address 0x4000 4008 (CTRL0) to 0x4000 4038
(CTRL3)) bit description
Bit
Symbol
Value
Description
Reset
value
0
INTEN
Enable the TIMERn interrupt.
0
0
Disable.
1
Enable.
2:1
MODE
Selects timer mode.
0
0x0
Repeat interrupt mode.
0x1
One-shot interrupt mode.
0x2
One-shot bus stall mode.
0x3
Reserved.
31:3
-
Reserved.
0
Table 430. Status register (STAT[0:3], address 0x4000 400C (STAT0) to 0x4000 403C (STAT3))
bit description
Bit
Symbol
Value
Description
Reset
value
0
INTFLAG
Monitors the interrupt flag.
0
0
No pending interrupt. Writing a zero is equivalent to no
operation.
1
Pending interrupt. The interrupt is pending because
TIMERn has reached the end of the time interval. If the
INTEN bit in the CONTROLn is also set to 1, the
interrupt for timer channel n and the global interrupt are
raised.
Writing a 1 to this bit clears the interrupt request.
1
RUN
Indicates the state of TIMERn. This bit is read-only.
0
0
Idle state. TIMERn is stopped.
1
Running. TIMERn is running.
31:2
-
Reserved.
0