English
Language : 

UPD784938 Datasheet, PDF (28/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
LIST OF FIGURES (6/12)
Figure No.
Title
Page
10-29
10-30
10-31
10-32
Interrupt Request Servicing that Calculates Pulse Width .......................................................................... 300
Operation when Counting is Started ........................................................................................................... 301
Example of the Case where the External Event Counter does Not Distinguish between
One Valid Edge Input and No Valid Edge Input ......................................................................................... 302
To Distinguish whether One or No Valid Edge has been Input with External Event Counter .................. 303
11-1
11-2
11-3
11-4
11-5
11-6
11-7
11-8
11-9
11-10
11-11
11-12
11-13
11-14
11-15
11-16
11-17
11-18
11-19
11-20
11-21
11-22
11-23
11-24
11-25
11-26
11-27
11-28
11-29
11-30
11-31
11-32
11-33
11-34
Timer/Event Counter 2 Block Diagram ....................................................................................................... 309
Timer Control Register 1 (TMC1) Format ................................................................................................... 312
Prescaler Mode Register 1 (PRM1) Format ............................................................................................... 313
Capture/Compare Control Register 2 (CRC2) Format ............................................................................... 314
Timer Output Control Register (TOC) Format ............................................................................................ 315
Basic Operation in 8-Bit Operation Mode (BW2 = 0) ................................................................................. 317
Basic Operation in 16-Bit Operation Mode (BW2 = 1) ............................................................................... 318
TM2 Clearance by Match with Compare Register (CR20/CR21) .............................................................. 319
TM2 Clearance after Capture Operation .................................................................................................... 319
Clear Operation when CE2 Bit is Cleared (0) ............................................................................................ 320
Timer/Event Counter 2 External Event Count Timing ................................................................................ 321
Example of the Case where the External Event Counter does Not Distinguish between
One Valid Edge Input and No Valid Edge Input ......................................................................................... 322
To Distinguish whether One or No Valid Edge has been Input with External Event Counter .................. 323
One-Shot Timer Operation .......................................................................................................................... 324
Compare Operation in 8-Bit Operation Mode ............................................................................................. 325
Compare Operation in 16-Bit Operation Mode ........................................................................................... 326
TM2 Clearance after Match Detection ........................................................................................................ 327
Capture Operation in 8-Bit Operation Mode ............................................................................................... 328
Capture Operation in 16-Bit Operation Mode ............................................................................................. 329
TM2 Clearance after Capture Operation .................................................................................................... 330
Toggle Output Operation ............................................................................................................................. 332
PWM Pulse Output (BW2 = 0) .................................................................................................................... 335
PWM Pulse Output (BW2 = 1) .................................................................................................................... 336
Example of PWM Output Using TM2W ....................................................................................................... 337
Example of PWM Output when CR20W = FFFFH ..................................................................................... 337
Example of Compare Register (CR20W) Rewrite ...................................................................................... 338
Example of 100% Duty with PWM Output .................................................................................................. 338
When Timer/Event Counter 2 is Stopped During PWM Signal Output ..................................................... 339
Example of PPG Output Using TM2 ........................................................................................................... 341
Example of PPG Output when CR20 = CR21 ............................................................................................ 342
Example of Compare Register Rewrite ...................................................................................................... 343
Example of 100% Duty with PPG Output ................................................................................................... 344
Example of Extended PPG Output Cycle ................................................................................................... 345
When Timer/Event Counter 2 is Stopped During PPG Signal Output ....................................................... 346
28
Preliminary User’s Manual U13987EJ1V0UM00