s908ey16g2vfar Freescale Semiconductor, Inc, s908ey16g2vfar Datasheet - Page 211

no-image

s908ey16g2vfar

Manufacturer Part Number
s908ey16g2vfar
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
17.8 I/O Registers
These I/O registers control and monitor TIMA operation:
17.8.1 TIMA Status and Control Register
The TIMA status and control register (TASC):
TOF — TIMA Overflow Flag Bit
TOIE — TIMA Overflow Interrupt Enable Bit
Freescale Semiconductor
This read/write flag is set when the TIMA counter reaches 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 0 to TOF. If another TIMA overflow occurs before the clearing sequence is complete,
then writing 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 1 to TOF has no effect.
This read/write bit enables TIMA overflow interrupts when the TOF bit becomes set. Reset clears the
TOIE bit.
1 = TIMA counter has reached modulo value
0 = TIMA counter has not reached modulo value
1 = TIMA overflow interrupts enabled
0 = TIMA overflow interrupts disabled
TIMA status and control register, TASC
TIMA control registers, TACNTH–TACNTL
TIMA counter modulo registers, TAMODH–TAMODL
TIMA channel status and control registers, TASC0 and TASC1
TIMA channel registers, TACH0H–TACH0L and TACH1H–TACH1L
Enables TIMA overflow interrupts
Flags TIMA overflows
Stops the TIMA counter
Resets the TIMA counter
Prescales the TIMA counter clock
Address:
Reset:
Read:
Write:
Figure 17-4. TIMA Status and Control Register (TASC)
$0020
Bit 7
TOF
R
0
0
MC68HC908EY16A • MC68HC908EY8A Data Sheet, Rev. 1
= Reserved
TOIE
6
0
TSTOP
5
1
TRST
4
0
0
R
3
0
PS2
2
0
PS1
1
0
Bit 0
PS0
0
I/O Registers
211

Related parts for s908ey16g2vfar