English
Language : 

UPD784938 Datasheet, PDF (26/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
LIST OF FIGURES (4/12)
Figure No.
Title
Page
9-5
9-6
9-7
9-8
9-9
9-10
9-11
9-12
9-13
9-14
9-15
9-16
9-17
9-18
9-19
9-20
9-21
9-22
9-23
9-24
9-25
9-26
9-27
9-28
9-29
9-30
9-31
9-32
9-33
9-34
9-35
9-36
9-37
9-38
9-39
9-40
9-41
9-42
9-43
9-44
Timer Output Control Register (TOC) Format ............................................................................................ 224
One-Shot Pulse Output Control Register (OSPC) Format ......................................................................... 225
Basic Operation of Timer Counter 0 (TM0) ................................................................................................ 227
TM0 Clearance by Match with Compare Register (CR01) ........................................................................ 228
Clear Operation when CE0 Bit is Cleared (0) ............................................................................................ 229
Timer/Event Counter 0 External Event Count Timing ................................................................................ 230
Example of the Case where the External Event Counter does Not Distinguish between
One Valid Edge Input and No Valid Edge Input ......................................................................................... 231
To Distinguish whether One or No Valid Edge has been Input with External Event Counter .................. 232
Compare Operation ..................................................................................................................................... 233
TM0 Clearance After Match Detection ........................................................................................................ 234
Capture Operation ....................................................................................................................................... 235
Toggle Output Operation ............................................................................................................................. 238
PWM Pulse Output ...................................................................................................................................... 240
Example of PWM Output Using TM0 .......................................................................................................... 241
Example of PWM Output when CR00 = FFFFH ........................................................................................ 241
Example of Compare Register (CR00) Rewrite ......................................................................................... 242
Example of 100% Duty with PWM Output .................................................................................................. 243
When Timer/Event Counter 0 is Stopped During PWM Signal Output ..................................................... 244
Example of PPG Output Using TM0 ........................................................................................................... 245
Example of PPG Output when CR00 = CR01 ............................................................................................ 246
Example of Compare Register (CR00) Rewrite ......................................................................................... 247
Example of 100% Duty with PPG Output ................................................................................................... 248
Example of Extended PPG Output Cycle ................................................................................................... 249
When Timer/Event Counter 0 is Stopped During PPG Signal Output ....................................................... 250
Example of Software Triggered One-Shot Pulse Output ........................................................................... 251
Interval Timer Operation (1) Timing ............................................................................................................ 252
Control Register Settings for Interval Timer Operation (1) ........................................................................ 253
Interval Timer Operation (1) Setting Procedure ......................................................................................... 253
Interval Timer Operation (1) Interrupt Request Servicing .......................................................................... 253
Interval Timer Operation (2) Timing ............................................................................................................ 254
Control Register Settings for Interval Timer Operation (2) ........................................................................ 255
Interval Timer Operation (2) Setting Procedure ......................................................................................... 255
Pulse Width Measurement Timing .............................................................................................................. 256
Control Register Settings for Pulse Width Measurement .......................................................................... 257
Pulse Width Measurement Setting Procedure ........................................................................................... 257
Interrupt Request Servicing that Calculates Pulse Width .......................................................................... 258
Example of Timer/Event Counter 0 PWM Signal Output ........................................................................... 259
Control Register Settings for PWM Output Operation ............................................................................... 259
PWM Output Setting Procedure .................................................................................................................. 260
Changing PWM Output Duty ....................................................................................................................... 261
26
Preliminary User’s Manual U13987EJ1V0UM00