English
Language : 

UPD784938 Datasheet, PDF (16/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
9.7.2 Toggle output ................................................................................................................................ 238
9.7.3 PWM output .................................................................................................................................. 240
9.7.4 PPG output ................................................................................................................................... 245
9.7.5 Software triggered one-shot pulse output ................................................................................... 251
9.8 Examples of Use ...................................................................................................................... 252
9.8.1 Operation as interval timer (1) .................................................................................................... 252
9.8.2 Operation as interval timer (2) .................................................................................................... 254
9.8.3 Pulse width measurement operation ........................................................................................... 256
9.8.4 Operation as PWM output ........................................................................................................... 259
9.8.5 Operation as PPG output ............................................................................................................ 262
9.8.6 Example of software triggered one-shot pulse output ............................................................... 265
9.9 Cautions .................................................................................................................................... 268
CHAPTER 10 TIMER/EVENT COUNTER 1 ......................................................................................... 271
10.1 Functions .................................................................................................................................. 271
10.2 Configuration ............................................................................................................................ 273
10.3 Timer/Event Counter 1 Control Registers ............................................................................ 277
10.4 Timer Counter 1 (TM1) Operation .......................................................................................... 280
10.4.1 Basic operation ............................................................................................................................ 280
10.4.2 Clear operation ............................................................................................................................. 283
10.5 External Event Counter Function .......................................................................................... 285
10.6 Compare Register and Capture/Compare Register Operation .......................................... 288
10.6.1 Compare operations .................................................................................................................... 288
10.6.2 Capture operations ...................................................................................................................... 290
10.7 Examples of Use ...................................................................................................................... 293
10.7.1 Operation as interval timer (1) .................................................................................................... 293
10.7.2 Operation as interval timer (2) .................................................................................................... 296
10.7.3 Pulse width measurement operation ........................................................................................... 298
10.8 Cautions .................................................................................................................................... 301
CHAPTER 11 TIMER/EVENT COUNTER 2 ......................................................................................... 305
11.1 Functions .................................................................................................................................. 305
11.2 Configuration ............................................................................................................................ 308
11.3 Timer/Event Counter 2 Control Registers ............................................................................ 312
11.4 Timer Counter 2 (TM2) Operation .......................................................................................... 316
11.4.1 Basic operation ............................................................................................................................ 316
11.4.2 Clear operation ............................................................................................................................. 319
11.5 External Event Counter Function .......................................................................................... 321
11.6 One-Shot Timer Function ....................................................................................................... 324
11.7 Compare Register, Capture/Compare Register, and Capture Register Operation ......... 325
11.7.1 Compare operations .................................................................................................................... 325
11.7.2 Capture operations ...................................................................................................................... 327
11.8 Basic Operation of Output Control Circuit .......................................................................... 330
11.8.1 Basic operation ............................................................................................................................ 332
11.8.2 Toggle output ................................................................................................................................ 332
11.8.3 PWM output .................................................................................................................................. 334
11.8.4 PPG output ................................................................................................................................... 340
11.9 Examples of Use ...................................................................................................................... 347
16
Preliminary User’s Manual U13987EJ1V0UM00