s908qc16vdse Freescale Semiconductor, Inc, s908qc16vdse Datasheet - Page 215

no-image

s908qc16vdse

Manufacturer Part Number
s908qc16vdse
Description
M68hc08 Microcontrollers
Manufacturer
Freescale Semiconductor, Inc
Datasheet
17.8.3 TIM2 Counter Modulo Registers
The read/write TIM2 modulo registers contain the modulo value for the counter. When the counter
reaches the modulo value, the overflow flag (TOF) becomes set, and the counter resumes counting from
$0000 at the next timer clock. Writing to the high byte (T2MODH) inhibits the TOF bit and overflow
interrupts until the low byte (T2MODL) is written. Reset sets the TIM2 counter modulo registers.
17.8.4 TIM2 Channel Status and Control Registers
Each of the TIM2 channel status and control registers does the following:
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 TIM2 overflow
Selects 0% and 100% PWM duty cycle
Selects buffered or unbuffered output compare/PWM operation
Reset:
Reset:
Reset:
Reset:
Read:
Write:
Read:
Write:
Read:
Write:
Read:
Write:
Reset the counter before writing to the TIM2 counter modulo registers.
Figure 17-10. TIM2 Channel 1 Status and Control Register (T2SC1)
Figure 17-9. TIM2 Channel 0 Status and Control Register (T2SC0)
MC68HC908QC16 • MC68HC908QC8 • MC68HC908QC4 Data Sheet, Rev. 4
Figure 17-7. TIM2 Counter Modulo High Register (T2MODH)
Figure 17-8. TIM2 Counter Modulo Low Register (T2MODL)
CH0F
CH1F
Bit15
Bit 7
Bit 7
Bit 7
Bit 7
Bit7
1
1
0
0
0
0
= Unimplemented
CH0IE
CH1IE
Bit14
Bit6
6
1
6
1
6
0
6
0
MS0B
Bit13
Bit5
5
1
5
1
5
0
5
0
0
MS0A
MS1A
Bit12
NOTE
Bit4
4
1
4
1
4
0
4
0
ELS0B
ELS1B
Bit11
Bit3
3
1
3
1
3
0
3
0
ELS0A
ELS1A
Bit10
Bit2
2
1
2
1
2
0
2
0
TOV0
TOV1
Bit9
Bit1
1
1
1
1
1
0
1
0
CH0MAX
CH1MAX
Bit 0
Bit 0
Bit 0
Bit 0
Bit8
Bit0
1
1
0
0
Registers
215

Related parts for s908qc16vdse