Programmable Interrupt Timer (PIT)
Data Sheet
MC68HC08AS32A — Rev. 1
150
Programmable Interrupt Timer (PIT)
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA
11.4 PIT Counter Prescaler
The clock source can be one of the seven prescaler outputs. The prescaler
generates seven clock rates from the internal bus clock. The prescaler select bits,
PPS[2:0], in the status and control register select the PIT clock source.
The value in the PIT counter modulo registers and the selected prescaler output
determines the frequency of the periodic interrupt. The PIT overflow flag (POF) is
set when the PIT counter value reaches the modulo value programmed in the PIT
counter modulo registers. The PIT interrupt enable bit, POIE, enables PIT overflow
CPU interrupt requests. POF and POIE are in the PIT status and control register.
11.5 Low-Power Modes
The WAIT and STOP instructions put the MCU in low power-consumption standby
modes.
11.5.1 Wait Mode
The PIT remains active after the execution of a WAIT instruction. In wait mode the
PIT registers are not accessible by the CPU. Any enabled CPU interrupt request
from the PIT can bring the MCU out of wait mode.
If PIT functions are not required during wait mode, reduce power consumption by
stopping the PIT before executing the WAIT instruction.
Addr.
Register Name
Bit 7
6
5
4
3
2
1
Bit 0
$004B
PIT Status and Control
Register (PSC)
See page 152.
Read:
POF
POIE
PSTOP
0
0
PPS2
PPS1
PPS0
Write:
0
PRST
Reset:
0
0
1
0
0
0
0
0
$004C
PIT Counter Register High
(PCNTH)
See page 153.
Read:
Bit 15
14
13
12
11
10
9
Bit 8
Write:
Reset:
0
0
0
0
0
0
0
0
$004D
PIT Counter Register Low
(PCNTL)
See page 153.
Read:
Bit 7
6
5
4
3
2
1
Bit 0
Write:
Reset:
0
0
0
0
0
0
0
0
$004E
PIT Counter Modulo
Register High (PMODH)
See page 154.
Read:
Bit 15
14
13
12
11
10
9
Bit 8
Write:
Reset:
1
1
1
1
1
1
1
1
$004F
PIT Counter Modulo
Register Low (PMODL)
See page 154.
Read:
Bit 7
6
5
4
3
2
1
Bit 0
Write:
Reset:
1
1
1
1
1
1
1
1
=Unimplemented
Figure 11-2. PIT I/O Register Summary
F
Freescale Semiconductor, Inc.
n
.