s908az32ag2cfue Freescale Semiconductor, Inc, s908az32ag2cfue Datasheet - Page 217

no-image

s908az32ag2cfue

Manufacturer Part Number
s908az32ag2cfue
Description
M68hc08 Microcontrollers 8-bit Microcontroller
Manufacturer
Freescale Semiconductor, Inc
Datasheet
19.8.3 TIMB Counter Modulo Registers
The read/write TIMB modulo registers contain the modulo value for the TIMB counter. When the TIMB
counter reaches the modulo value, the overflow flag (TOF) becomes set and the TIMB counter resumes
counting from $0000 at the next clock. Writing to the high byte (TBMODH) inhibits the TOF bit and
overflow interrupts until the low byte (TBMODL) is written. Reset sets the TIMB counter modulo registers.
19.8.4 TIMB Channel Status and Control Registers
Each of the TIMB 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 TIMB overflow
Selects 0% and 100% PWM duty cycle
Selects buffered or unbuffered output compare/PWM operation
Register Name and Address
Register Name and Address
Figure 19-6. TIMB Counter Modulo Registers (TBMODH and TBMODL)
Reset the TIMB counter before writing to the TIMB counter modulo registers.
Reset:
Reset:
Read:
Read:
Write:
Write:
BIT 15
BIT 7
Bit 7
Bit 7
1
1
BIT 14
BIT 6
6
1
6
1
MC68HC908AZ32A Data Sheet, Rev. 2
TBMODH — $0043
TBMODL — $0044
BIT 13
BIT 5
5
1
5
1
NOTE
BIT 12
BIT 4
4
1
4
1
BIT 11
BIT 3
3
1
3
1
BIT 10
BIT 2
2
1
2
1
BIT 9
BIT 1
1
1
1
1
BIT 8
BIT 0
Bit 0
Bit 0
1
1
I/O Registers
217

Related parts for s908az32ag2cfue