DRAFT
DRAFT DRAFT DR
DRAFT DRAFT DRAFT
D
RAF
DRAFT DRAFT DRA
FT D
RAFT DR
AFT D
DRA
FT DRAFT DRAFT
D
RAFT
DRAFT
D
RAFT
DRA
UM10601
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
Preliminary user manual
Rev. 1.0 — 7 November 2012
144 of 313
NXP Semiconductors
UM10601
Chapter 11: LPC800 Multi-Rate Timer (MRT)
11.6.4 Status register
This register indicates the status of each MRT.
11.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 138. 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
Table 139. Idle channel register (IDLE_CH, address 0x4000 40F4) bit description
Bit
Symbol
Description
Reset
value
3:0
-
Reserved.
0
7:4
CHAN
Idle channel. Reading the CHAN bits, returns the lowest idle timer
channel. If all timer channels are running, CHAN = 0xF.
0
31:8
-
Reserved.
0