mc68hc908gr8vp Freescale Semiconductor, Inc, mc68hc908gr8vp Datasheet - Page 241

no-image

mc68hc908gr8vp

Manufacturer Part Number
mc68hc908gr8vp
Description
M68hc08 Microcontrollers Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
22.9.3 TIM Counter Modulo Registers
The read/write TIM modulo registers contain the modulo value for the TIM counter. When the TIM counter
reaches the modulo value, the overflow flag (TOF) becomes set, and the TIM counter resumes counting
from $0000 at the next timer clock. Writing to the high byte (TMODH) inhibits the TOF bit and overflow
interrupts until the low byte (TMODL) is written. Reset sets the TIM counter modulo registers.
22.9.4 TIM Channel Status and Control Registers
Each of the TIM channel status and control registers:
Freescale Semiconductor
Flags input captures and output compares
Enables input capture and output compare interrupts
Selects input capture, output compare, or PWM operation
Selects high, low, or toggling output on output compare
Selects rising edge, falling edge, or any edge as the active input capture trigger
Selects output toggling on TIM overflow
Selects 0% and 100% PWM duty cycle
Selects buffered or unbuffered output compare/PWM operation
Address:
Address:
Reset the TIM counter before writing to the TIM counter modulo registers.
Reset:
Reset:
Read:
Read:
Write:
Write:
T1MODH, $0023 and T2MODH, $002E
Figure 22-7. TIM Counter Modulo Register High (TMODH)
T1MODL, $0024 and T2MODL, $002F
Figure 22-8. TIM Counter Modulo Register Low (TMODL)
Bit 15
Bit 15
Bit 7
Bit 7
1
1
MC68HC908GR8 • MC68HC908GR4 Data Sheet, Rev. 7
14
14
6
1
6
1
13
13
5
1
5
1
NOTE
12
12
4
1
4
1
11
11
3
1
3
1
10
10
2
1
2
1
1
9
1
1
9
1
Bit 0
Bit 8
Bit 0
Bit 8
1
1
I/O Registers
241

Related parts for mc68hc908gr8vp