English
Language : 

MC68HC908AS32A Datasheet, PDF (147/280 Pages) Freescale Semiconductor, Inc – Microcontrollers
12.7 I/O Registers
The following I/O registers control and monitor operation of the PIT:
• PIT status and control register (PSC)
• PIT counter registers (PCNTH–PCNTL)
• PIT counter modulo registers (PMODH–PMODL)
I/O Registers
12.7.1 PIT Status and Control Register
The PIT status and control register:
• Enables PIT interrupt
• Flags PIT overflows
• Stops the PIT counter
• Resets the PIT counter
• Prescales the PIT counter clock
Address: $004B
Bit 7
6
5
4
3
2
1
Bit 0
Read: POF
0
0
POIE PSTOP
PPS2
PPS1
PPS0
Write: 0
PRST
Reset: 0
0
1
0
0
0
0
0
= Unimplemented
Figure 12-2. PIT Status and Control Register (PSC)
POF — PIT Overflow Flag Bit
This read/write flag is set when the PIT counter reaches the modulo value programmed in the PIT
counter modulo registers. Clear POF by reading the PIT status and control register when POF is set
and then writing a 0 to POF. If another PIT overflow occurs before the clearing sequence is complete,
then writing a 0 to POF has no effect. Therefore, a POF interrupt request cannot be lost due to
inadvertent clearing of POF. Reset clears the POF bit. Writing a 1 to POF has no effect.
1 = PIT counter has reached modulo value
0 = PIT counter has not reached modulo value
POIE — PIT Overflow Interrupt Enable Bit
This read/write bit enables PIT overflow interrupts when the POF bit becomes set. Reset clears the
POIE bit.
1 = PIT overflow interrupts enabled
0 = PIT overflow interrupts disabled
PSTOP — PIT Stop Bit
This read/write bit stops the PIT counter. Counting resumes when PSTOP is cleared. Reset sets the
PSTOP bit, stopping the PIT counter until software clears the PSTOP bit.
1 = PIT counter stopped
0 = PIT counter active
NOTE
Do not set the PSTOP bit before entering wait mode if the PIT is required
to exit wait mode.
MC68HC908AS32A Data Sheet, Rev. 2.0
Freescale Semiconductor
147