User’s Manual U11969EJ3V0UM00
199
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
Figure 7-28. Example of PWM Output Programming Procedure
Remark n = 0 and 1
PWM output initial setting
Setting of TOC1n register
TOCn. ENTO0n
←
1
TOCn. ALV0n
←
1
Setting of TMC01 register
TMC01. CMS00
←
1
TMC01. CMS01
←
1
Specifies P00 pin as timer
output pin TO00 by PMC0 register
PMC0. PMC00
←
1
Setting of TMC00 register
Sets count value to CC00 register
CC00
←
D00
Enables interrupt
Count starts
TMC00. CE0
←
1
Sets count value to CC01 register
CC01
←
D10
; Specifies active level (high level)
Enables timer ouput
; Specifies operation of CC00 and CC01 registers
(specifies compare operation)
; Sets CE0 bit to 1
; Specifies count clock of TM0
INTCC00 interrupt
INTCC01 interrupt
Summary of Contents for V854 UPD703006
Page 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Page 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Page 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Page 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Page 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Page 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Page 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Page 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Page 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Page 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Page 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Page 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...