Datasheet
Functional Description
MC68HC908AZ60A • MC68HC908AS60A • MC68HC908AS60E Data Sheet, Rev. 6
Freescale Semiconductor 309
25.3 Functional Description
Figure 25-1 shows the TIMA structure. The central component of the TIMA is the 16-bit TIMA counter that
can operate as a free-running counter or a modulo up-counter. The TIMA counter provides the timing
reference for the input capture and output compare functions. The TIMA counter modulo registers,
TAMODH–TAMODL, control the modulo value of the TIMA counter. Software can read the TIMA counter
value at any time without affecting the counting sequence.
The six TIMA channels are programmable independently as input capture or output compare channels.
Addr. Register Name Bit 7654321Bit 0
$0020 TIMA Status/Control Register (TASC) TOF TOIE TSTOP TRST 0 PS2 PS1 PS0
$0021 ReservedRRRRRRRR
$0022 TIMA Counter Register High (TACNTH) Bit 15 14 13 12 11 10 9 Bit 8
$0023 TIMA Counter Register Low (TACNTL)Bit 7654321Bit 0
$0024 TIMA Counter Modulo Reg. High (TAMODH) Bit 15 14 13 12 11 10 9 Bit 8
$0025TIMA Counter Modulo Reg. Low (TAMODL)Bit 7654321Bit 0
$0026 TIMA Ch. 0 Status/Control Register (TASC0) CH0F CH0IE MS0B MS0A ELS0B ELS0A TOV0 CH0MAX
$0027 TIMA Ch. 0 Register High (TACH0H) Bit 15 14 13 12 11 10 9 Bit 8
$0028 TIMA Ch. 0 Register Low (TACH0L)Bit 7654321Bit 0
$0029 TIMA Ch. 1 Status/Control Register (TASC1) CH1F CH1IE 0 MS1A ELS1B ELS1A TOV1 CH1MAX
$002A TIMA Ch. 1 Register High (TACH1H) Bit 15 14 13 12 11 10 9 Bit 8
$002B TIMA Ch. 1 Register Low (TACH1L)Bit 7654321Bit 0
$002C TIMA Ch. 2 Status/Control Register (TASC2) CH2F CH2IE MS2B MS2A ELS2B ELS2A TOV2 CH2MAX
$002D TIMA Ch. 2 Register High (TACH2H) Bit 15 14 13 12 11 10 9 Bit 8
$002E TIMA Ch. 2 Register Low (TACH2L)Bit 7654321Bit 0
$002F TIMA Ch. 3 Status/Control Register (TASC3) CH3F CH3IE 0 MS3A ELS3B ELS3A TOV3 CH3MAX
$0030 TIMA Ch. 3 Register High (TACH3H) Bit 15 14 13 12 11 10 9 Bit 8
$0031 TIMA Ch. 3 Register Low (TACH3L)Bit 7654321Bit 0
$0032 TIMA Ch. 4 Status/Control Register (TASC4) CH4F CH4IE MS4B MS4A ELS4B ELS4A TOV4 CH4MAX
$0033 TIMA Ch. 4 Register High (TACH4H) Bit 15 14 13 12 11 10 9 Bit 8
$0034 TIMA Ch. 4 Register Low (TACH4L)Bit 7654321Bit 0
$0035 TIMA Ch. 5 Status/Control Register (TASC5) CH5F CH5IE 0 MS5A ELS5B ELS5A TOV5 CH5MAX
$0036 TIMA Ch. 5 Register High (TACH5H) Bit 15 14 13 12 11 10 9 Bit 8
$0037 TIMA Ch. 5 Register Low (TACH5L)Bit 7654321Bit 0
R
= Reserved
Figure 25-2. TIMA I/O Register Summary
