198
User’s Manual U11969EJ3V0UM00
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
(3) PWM output (timer 0)
Any square wave can be output to timer output pin (TOn) by combining the use of timer 0 and the timer output
function and can be used as a PWM output.
Shown below is an example of PWM output using two capture/compare registers, CC00 and CC01
. In this
case, a PWM signal with an accuracy of 24 bits can be output from the TO00 pin. Figure 7-27 shows the timing.
When timer 0 is used as a 24-bit timer, the rising timing of the PWM output is determined by the value set
to capture/compare register CC00, and the falling timing is determined by the value set to capture/compare
register CC01.
The interval frequency of timer output can be changed freely by using compare coincidence of CC03 and by
clearing and starting TM0.
Figure 7-27. Example of PWM Output Timing
Remark D00 to D02, D10 to D13 : set value of compare register
t1 = {(1000000H – D00) + D01} x count clock cycle
t2 = {(1000000H – D10) + D11} x count clock cycle
FFFFFFH
FFFFFFH
FFFFFFH
CC00
CC01
CC00
CC01
CC00
TM0 count value
0
Capture/compare register
(CC00)
Interrupt request
(INTCC00)
Capture/compare register
(CC01)
Interrupt request
(INTCC01)
Timer output
(TO00 pin)
t1
t2
D11
D10
D12
D1
D02
D01
D00
Match
Match
Match Match
Match
D00
D10
D11
D01
D02
Содержание V854 UPD703006
Страница 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...
Страница 396: ...396 User s Manual U11969EJ3V0UM00 MEMO ...