MPC555
/
MPC556
SYSTEM CONFIGURATION AND PROTECTION
MOTOROLA
USER’S MANUAL
Rev. 15 October 2000
6-14
generate a maskable interrupt when the time base counter reaches the value pro-
grammed in one of the two reference registers. The period of the TB depends on the
driving frequency. In the MPC555 / MPC556, the TB is clocked by the TMBCLK clock.
The period for the TB is:
The state of the time base is not affected by any resets and should be initialized by
software. Reads and writes of the TB are restricted to special instructions. Separate
special-purpose registers are defined in the MPC555 / MPC556 architecture for read-
ing and writing the time base. For the MPC555 / MPC556 implementation, it is not pos-
sible to read or write the entire TB in a single instruction. Therefore, the
mttb
and
mftb
instructions are used to move the lower half of the time base (TBL) while the
mttbu
and
mftbu
instructions are used to move the upper half (TBU).
Two reference registers are associated with the time base: TBREF0 and TBREF1. A
maskable interrupt is generated when the TB count reaches to the value programmed
in one of the two reference registers. Two status bits in the time base control and sta-
tus register (TBSCR) indicate which one of the two reference registers generated the
interrupt.
for diagrams and bit descriptions of time
base registers. Refer to
3.9.4 Time Base Facility (TB) — OEA
and to
RCPU Refer-
ence Manual
(RCPURM/AD)
for additional information regarding the MPC555 /
MPC556 time base.
6.8 Real-Time Clock (RTC)
The RTC is a 32-bit counter and pre-divider used to provide a time-of-day indication to
the operating system and application software. It is clocked by the
pitrtclk
clock.The
counter is not affected by reset and operates in all low-power modes. It is initialized by
software. The RTC can be programmed to generate a maskable interrupt when the
time value matches the value programmed in its associated alarm register. It can also
be programmed to generate an interrupt once a second. A control and status register
is used to enable or disable the different functions and to report the interrupt source.
T
TB
264
F
tmbclk
-----------------------
=
F
re
e
sc
a
le
S
e
m
ic
o
n
d
u
c
to
r,
I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
n
c
.
..