Real-Time Clock (Rtc); Real-Time Clock Operation - Intel PXA255 Developer's Manual

Intel computer hardware user manual
Hide thumbs Also See for PXA255:
Table of Contents

Advertisement

System Integration Unit
Table 4-36. List of First–Level Interrupts (Sheet 2 of 2)
Bit Position
IS<13>
IS<12>
IS<11>
IS<10>
IS<9>
IS<8>
IS<7>
IS<6>
IS<5>
IS<4>
IS<3>
IS<2>
IS<1>
IS<0>
Several units have more than one source per interrupt signal. When an interrupt is signalled from
one of these units, the interrupt handler routine identifies which interrupt was signalled using the
interrupt controller's pending register. This identifies the unit that made the request, but not the
exact source. The handler then reads the interrupting unit's status register to identify which source
within the unit signalled the interrupt. For all interrupts that have one corresponding source, the
interrupt handler routine needs to use only the interrupt controller's registers to identify the exact
cause of the interrupt. ICPR[16:15] and ICPR[7:0] are reserved bits and must be written as zeros.
Reads to these bits must be ignored.
4.3

Real-Time Clock (RTC)

Use the RTC to configure a clock source with a wide range of frequencies. Typically, the RTC is set
to be a 1 Hz output and is utilized as a system time keeper. There is also an alarm feature that
enables an interrupt or a wake up event when the RTC output clock increments to a pre-set value.
4.3.1

Real-Time Clock Operation

The RTC provides a general-purpose real-time reference for your design. The RTC Counter
register (RCNR) is initialized to zero after a hardware reset or a watchdog reset. It is a free running
counter that starts incrementing the count value after the deassertion of reset. The counter is
incremented one 32kHz cycle after the rising edge of the Hz clock. Since the high phase of the 1 Hz
clock is one 32kHz cycle wide, it appears to increment on the falling edge of the 1 Hz clock. Set
this counter to the desired value. If the counter is set to a value other than zero, write the desired
value to the RCNR. The value of the counter is unaffected by transitions into and out of Sleep or
Idle mode.
4-28
Source Unit
# of Level 2 Sources
I2S
Core
USB
Hardware UART
Total level 2 interrupt
sources
Bit Field Description
5
I2S interrupt
PMU (Performance Monitor)
1
interrupt
7
USB interrupt
79
"OR" of GPIO edge detects 80-2
1
GPIO<1> edge detect
1
GPIO<0> edge detect
7
Hardware UART service request
reserved
reserved
reserved
reserved
reserved
reserved
reserved
179
Intel® PXA255 Processor Developer's Manual

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents