mc68hc908qb4 Freescale Semiconductor, Inc, mc68hc908qb4 Datasheet - Page 183

no-image

mc68hc908qb4

Manufacturer Part Number
mc68hc908qb4
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
16.7 I/O Signals
The TIM module can share its pins with the general-purpose I/O pins. See
that are shared.
16.7.1 TIM Channel I/O Pins (TCH3:TCH0)
Each channel I/O pin is programmable independently as an input capture pin or an output compare pin.
TCH0 and TCH2 can be configured as buffered output compare or buffered PWM pins.
16.7.2 TIM Clock Pin (TCLK)
TCLK is an external clock input that can be the clock source for the counter instead of the prescaled
internal bus clock. Select the TCLK input by writing 1s to the three prescaler select bits, PS[2:0].
(See
Interface Module
frequency ÷ 2.
16.8 Registers
The following registers control and monitor operation of the TIM:
16.8.1 TIM Status and Control Register
The TIM status and control register (TSC) does the following:
TOF — TIM Overflow Flag Bit
Freescale Semiconductor
This read/write flag is set when the counter reaches the modulo value programmed in the TIM counter
modulo registers. Clear TOF by reading the TSC register when TOF is set and then writing a 0 to TOF.
If another TIM overflow occurs before the clearing sequence is complete, then writing 0 to TOF has no
16.8.1 TIM Status and Control
TIM status and control register (TSC)
TIM control registers (TCNTH:TCNTL)
TIM counter modulo registers (TMODH:TMODL)
TIM channel status and control registers (TSC0 through TSC3)
TIM channel registers (TCH0H:TCH0L through TCH3H:TCH3L)
Enables TIM overflow interrupts
Flags TIM overflows
Stops the counter
Resets the counter
Prescales the counter clock
Reset:
Read:
Write:
Characteristics. The maximum TCLK frequency is the least of 4 MHz or bus
Bit 7
TOF
0
0
Figure 16-4. TIM Status and Control Register (TSC)
= Unimplemented
TOIE
6
0
Register.) The minimum TCLK pulse width is specified in
MC68HC908QB8 Data Sheet, Rev. 2
TSTOP
5
1
TRST
0
4
0
3
0
0
PS2
2
0
Figure 16-1
PS1
1
0
Bit 0
PS0
0
for the port pins
18.16 Timer
I/O Signals
183

Related parts for mc68hc908qb4