Philips LPC2194 User Manual page 247

Table of Contents

Advertisement

Philips Semiconductors
ARM-based Microcontroller
Clock Control Register (CCR - 0xE0024008)
The clock register is a 4-bit register that controls the operation of the clock divide circuit. Each bit of the clock register is described
in Table
180.
Table 180: Clock Control Register Bits (CCR - 0xE0024008)
CCR
Function
0
CLKEN
1
CTCRST
3:2
CTTEST
Counter Increment Interrupt
The Counter Increment Interrupt Register (CIIR) gives the ability to generate an interrupt every time a counter is incremented.
This interrupt remains valid until cleared by writing a one to bit zero of the Interrupt Location Register (ILR[0]).
Table 181: Counter Increment Interrupt Register Bits (CIIR - 0xE002400C)
CIIR
Function
0
IMSEC
1
IMMIN
2
IMHOUR
3
IMDOM
4
IMDOW
5
IMDOY
6
IMMON
7
IMYEAR
Alarm Mask
The Alarm Mask Register (AMR) allows the user to mask any of the alarm registers. Table 182 shows the relationship between
the bits in the AMR and the alarms. For the alarm function, every non-masked alarm register must match the corresponding time
counter for an interrupt to be generated. The interrupt is generated only when the counter comparison first changes from no
match to match. The interrupt is removed when a one is written to the appropriate bit of the Interrupt Location Register (ILR). If
all mask bits are set, then the alarm is disabled.
Real Time Clock
Clock Enable. When this bit is a one the time counters are enabled. When it is a zero, they are
disabled so that they may be initialized.
CTC Reset. When one, the elements in the Clock Tick Counter are reset. The elements remain
reset until CCR[1] is changed to zero.
Test Enable. These bits should always be zero during normal operation.
When one, an increment of the Second value generates an interrupt.
When one, an increment of the Minute value generates an interrupt.
When one, an increment of the Hour value generates an interrupt.
When one, an increment of the Day of Month value generates an interrupt.
When one, an increment of the Day of Week value generates an interrupt.
When one, an increment of the Day of Year value generates an interrupt.
When one, an increment of the Month value generates an interrupt.
When one, an increment of the Year value generates an interrupt.
LPC2119/2129/2194/2292/2294
Description
Description
247
Preliminary User Manual
May 03, 2004

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2129Lpc2119Lpc2292Lpc2294

Table of Contents