English
Language : 

MC68HC908AT32 Datasheet, PDF (195/378 Pages) Freescale Semiconductor, Inc – Microcontrollers
I/O Registers
18.7.2 TIMA Channel I/O Pins (PTF1/TACH3–PTF0/TACH2 and
PTE3/TACH1–PTE2/TACH0)
Each channel I/O pin is programmable independently as an input capture pin or an output compare pin.
PTE2/TACH0 and PTF0/TACH2 can be configured as buffered output compare or buffered PWM pins.
18.8 I/O Registers
These I/O registers control and monitor TIMA operation:
• TIMA status and control register (TASC)
• TIMA control registers (TACNTH–TACNTL)
• TIMA counter modulo registers (TAMODH–TAMODL)
• TIMA channel status and control registers (TASC0, TASC1, TASC2, and TASC3)
• TIMA channel registers (TACH0H–TACH0L, TACH1H–TACH1L, TACH2H–TACH2L, and
TACH3H–TACH3L)
18.8.1 TIMA Status and Control Register
The TIMA status and control register:
• Enables TIMA overflow interrupts
• Flags TIMA overflows
• Stops the TIMA counter
• Resets the TIMA counter
• Prescales the TIMA counter clock
Address: $0020
Bit 7
6
5
4
3
2
1
Bit 0
Read: TOF
0
0
TOIE TSTOP
Write: 0
TRST
R
PS2
PS1
PS0
Reset: 0
0
1
0
0
0
0
0
R
= Reserved
Figure 18-4. TIMA Status and Control Register (TASC)
TOF — TIMA Overflow Flag
This read/write flag is set when the TIMA counter resets to $0000 after reaching the modulo value
programmed in the TIMA counter modulo registers. Clear TOF by reading the TIMA status and control
register when TOF is set and then writing a logic 0 to TOF. If another TIMA overflow occurs before the
clearing sequence is complete, then writing logic 0 to TOF has no effect. Therefore, a TOF interrupt
request cannot be lost due to inadvertent clearing of TOF. Reset clears the TOF bit. Writing a logic 1
to TOF has no effect.
1 = TIMA counter has reached modulo value.
0 = TIMA counter has not reached modulo value.
MC68HC908AT32 Data Sheet, Rev. 3.1
Freescale Semiconductor
195