System Interface Unit
MPC885 PowerQUICC Family Reference Manual, Rev. 2
Freescale Semiconductor
10-23
Table 10-15
describes the DEC register.
10.9
Timebase
The timebase is a 64-bit free-running binary counter as defined in the PowerPC architecture. For the
MPC885, the timebase is clocked by TMBCLK. The timebase period is as follows:
The timebase is unaffected by HRESET and SRESET and should be initialized by software. PORESET,
however, disables and resets the timebase. The entire timebase cannot be accessed with a single
instruction; mttb and mftb access the lower half of the timebase and mttbu and mftbu access the upper
half. A maskable interrupt is generated when the timebase count reaches a value programmed in one of the
reference registers, TBREFA and TBREFB; two status bits indicate which one caused the interrupt.
10.9.1
Timebase Register (TBU and TBL)
The timebase register (TB) holds a 64-bit integer that is incremented periodically. It is implemented in two
parts, time base upper and time base lower (TBU and TBL). There is no automatic initialization of TB,
therefore, system software must perform this initialization. The contents of TB can be written by mtspr
and read by mftb or mftbu instruction.
Figure 10-19
shows TBU. Note that the TBU and TBL are keyed
registers. They must be unlocked in TBK before they can be written.
Table 10-16
describes TBU fields.
Table 10-15. DEC Field Descriptions
Bits
Name
Description
0–31
DEC
Decrementer. These bits are used by a down counter to cause decrementer interrupts. Reading
DEC always returns the current count value from the down counter.
0
31
Field
TBU
Reset
—
R/W
R/W
SPR
269 (Read)/285 (Write)
Figure 10-19. Timebase Upper Register (TBU)
Table 10-16. TBU Field Descriptions
Bits
Name
Description
0–31
TBU
Timebase upper. The value in this field is used as an upper part of the timebase counter.
T
TB
264
F
tmbclk
-----------------------
=
Summary of Contents for PowerQUICC MPC870
Page 98: ...MPC885 PowerQUICC Family Reference Manual Rev 2 I 4 Freescale Semiconductor ...
Page 118: ...MPC885 Overview MPC885 PowerQUICC Family Reference Manual Rev 2 1 20 Freescale Semiconductor ...
Page 158: ...The MPC8xx Core MPC885 PowerQUICC Family Reference Manual Rev 2 3 18 Freescale Semiconductor ...
Page 288: ...MPC885 PowerQUICC Family Reference Manual Rev 2 III 4 Freescale Semiconductor ...
Page 554: ...MPC885 PowerQUICC Family Reference Manual Rev 2 V 6 Freescale Semiconductor ...
Page 1090: ...UTOPIA Interface MPC885 PowerQUICC Family Reference Manual Rev 2 43 8 Freescale Semiconductor ...
Page 1312: ...Byte Ordering MPC885 PowerQUICC Family Reference Manual Rev 2 A 8 Freescale Semiconductor ...
Page 1336: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 16 Freescale Semiconductor ...
Page 1358: ...MPC885 PowerQUICC Family Reference Manual Rev 2 D 38 Freescale Semiconductor ...
Page 1370: ...MPC880 MPC885 PowerQUICC Family Reference Manual Rev 2 E 4 Freescale Semiconductor ...
Page 1386: ...Revision History MPC885 PowerQUICC Family Reference Manual Rev 2 I 2 Freescale Semiconductor ...