7.2
Configuration of 8-bit PWM Timer
An 8-bit PWM timer consists of the following six blocks.
• Count clock selector
• 8-bit counter
• Comparator
• PWM generation and output control circuit
• PWM compare register (COMR)
• PWM control register (CNTR)
■
Block Diagram of an 8-bit PWM Timer
CNTR
P/TX
(Output of an 8/16-bit
capture timer/counter)
1t
t
: Instruction cycle
INST
Figure 7.2-1 Block Diagram of an 8-bit PWM Timer
Internal data bus
P0
P1
TPE
Count
clock
selector
TO
ECLK
1
16
64
INST
Timer/
PWM
Pin
P50/PWM
TIR
TIE
OE
8-bit counter
Start
CLK
Clear
Latch
Overflow
Output pin control
CHAPTER 7 8-BIT PWM TIMER
COMR
PWM compare register
8
8
Comparator
PWM generation
circuit and output
control circuit
Output
IRQ9
139