
Timers
LH75400/01/10/11 (Preliminary) User’s Guide
15-8
6/17/03
Figure 15-8 shows an example of PWM output signal timing. To support the timing shown
in this figure, the following values need to be programmed into the registers.
• CMP1 = 0x0005
→
Period
• CMP0 = 0x0001
→
Period
Timer 0 settings:
• CMP_CAP_CTRL[15] = 1
→
PWM mode
• CMP_CAP_CTRL[14] = 1
→
Counter Clear
• CMP_CAP_CTRL[13:12] = 01
→
CMP1
• CMP_CAP_CTRL[11:10] = 10
→
CMP0
Figure 15-8. PWM Output Signal Timing
CNT
REGISTER
CMP1
REGISTER
CMP0
REGISTER
PWM OUTPUT
(CTCMPxA)
INTERNAL
COUNT CLOCK
0x0004
0x0003
0x0005 0x0000 0x0001
0x0005
PERIOD = 6
OFF
TIME
0x0001
0x0002 0x0003 0x0004 0x0005 0x0000 0x0001 0x0002
0x000
LH754xx-23