Freescale Semiconductor PowerQUICC MPC885 Reference Manual page 313

Powerquicc family
Table of Contents

Advertisement

10.9.3
Timebase Status and Control Register (TBSCR)
The timebase status and control register (TBSCR) controls the timebase count enable and interrupt
generation. It is also used for reporting the interrupt sources, and it can be read at any time. Status bits are
cleared by writing ones; writing zeros has no effect. Note that TBSCR is a keyed register. It must be
unlocked in TBSCRK before it can be written.
0
Field
Reset
R/W
Addr
Figure 10-22. Timebase Status and Control Register (TBSCR)
This register is affected by HRESET but is not affected by SRESET.
Bits
Name
0–7
TBIRQ
Timebase interrupt request. Determines interrupt priority level of the timebase. To specify a
certain level, the appropriate bit should be set.
8
REFA
Reference interrupt status. If set, indicates that a match was detected between the
corresponding reference register (TBREFA for REFA and TBREFB for REFB) and the TBL.
9
REFB
REFA and REFB are cleared by writing ones.
10–11
Reserved, should be cleared.
12
REFAE
Reference interrupt enable. If asserted, the timebase generates an interrupt on assertion of
REFA or REFB. Otherwise, the interrupt is disabled.
13
REFBE
14
TBF
Timebase freeze enable
0 The timebase and decrementer are unaffected.
1 The FRZ signal stops the timebase and decrementer.
15
TBE
Timebase enable
0 Disables timebase and decrementer operation.
1 Enables timebase and decrementer operation.
10.10 Periodic Interrupt Timer (PIT)
The PIT, shown in
Figure
clock module. The PIT is not affected by HRESET and RESET; however, it is disabled and reset by
PORESET. It decrements to zero when loaded with a value from the PIT count register (PITC) and after
the timer reaches zero, PS is set and an interrupt is generated if PIE is a 1. At the next input clock edge,
the PITC value is loaded into the counter and the process repeats. When a new value is loaded into PITC,
the PIT is updated, the divider is reset, and the counter starts counting. If the PS bit is set, an interrupt is
generated at the interrupt controller that remains pending until PS is cleared. If PS is set again, before being
cleared, the interrupt remains pending until PS is cleared. Any write to PITC stops the current countdown
Freescale Semiconductor
7
TBIRQ
0000_0000_0000_0000
(IMMR & 0xFFFF0000) + 0x200
Table 10-19. TBSCR Field Descriptions
10-23, consists of a 16-bit counter clocked by a PITCLK clock supplied by the
MPC885 PowerQUICC Family Reference Manual, Rev. 2
8
9
10
11
REFA REFB
REFAE REFBE TBF
R/W
Table 10-19
Description
System Interface Unit
12
13
14
15
TBE
describes TBSCR fields.
10-25

Advertisement

Table of Contents
loading

This manual is also suitable for:

Powerquicc mpc870Powerquicc mpc880Powerquicc mpc875

Table of Contents