mpc823rg Freescale Semiconductor, Inc, mpc823rg Datasheet - Page 283

no-image

mpc823rg

Manufacturer Part Number
mpc823rg
Description
Mpc823 Powerquicc Integrated Communications Processor For Portable Systems
Manufacturer
Freescale Semiconductor, Inc
Datasheet
System Interface Unit
12.6 THE POWERPC TIMEBASE
The timebase is defined by the PowerPC architecture and is a 64-bit free-running binary
counter that is incremented at a frequency determined by each implementation of the
timebase. There is no interrupt or other indication generated when the count rolls over. The
period of the timebase depends on the driving frequency. For the MPC823, the timebase is
clocked by the TMBCLK clock and the period for the timebase is:
The state of the timebase is unaffected by any resets and must be initialized by the software.
Reads and writes of the timebase are restricted to special instructions. For the MPC823
implementation, it is not possible to read or write the entire timebase in a single instruction.
Therefore, the mttb and mftb instructions are used to move the lower half of the timebase
while the mttbu and mftbu instructions are used to move the upper half of the timebase.
The timebase has two reference registers associated with it. A maskable interrupt is
generated when the timebase count reaches the value programmed in one of the two
reference registers and the two status bits indicate which of the two reference registers
generated the interrupt.
12.6.1 Timebase Register
The special-purpose 64-bit timebase (TB) register contains a 64-bit integer that is
periodically incremented. There is no automatic initialization of this register. The system
software must perform the initialization. The contents of the register can be written by the
mtspr instruction and read by the mftb or mftbu instruction.
TBU—Timebase Upper
The value stored in this field is used as an upper part of the timebase counter.
TB-UPPER
NOTE: — = Undefined.
RESET
RESET
FIELD
FIELD
SPR
SPR
R/W
R/W
BIT
BIT
T
TB
=
---------------------- -
F
tmbclk
16
2 64
0
17
1
18
2
Freescale Semiconductor, Inc.
For More Information On This Product,
19
3
20
MPC823 REFERENCE MANUAL
4
Go to: www.freescale.com
21
5
269 (READ), 285 (WRITE)
269 (READ), 285 (WRITE)
22
6
23
7
TBU
R/W
TBU
R/W
24
8
25
9
10
26
11
27
12
28
13
29
MOTOROLA
14
30
15
31

Related parts for mpc823rg