NEC PD78052(A) - Manual

NEC PD78052(A)

NEC PD78052(A) – Manual, read for free online in PDF format. We hope this helps you resolve any issues you may have. If you have further questions, please contact us through the contact form.

1 Page 1
2 Page 2
3 Page 3
4 Page 4
5 Page 5
6 Page 6
7 Page 7
8 Page 8
9 Page 9
10 Page 10
11 Page 11
12 Page 12
13 Page 13
14 Page 14
15 Page 15
16 Page 16
17 Page 17
18 Page 18
19 Page 19
20 Page 20
21 Page 21
22 Page 22
23 Page 23
24 Page 24
25 Page 25
26 Page 26
27 Page 27
28 Page 28
29 Page 29
30 Page 30
31 Page 31
32 Page 32
33 Page 33
34 Page 34
35 Page 35
36 Page 36
37 Page 37
38 Page 38
39 Page 39
40 Page 40
41 Page 41
42 Page 42
43 Page 43
44 Page 44
45 Page 45
46 Page 46
47 Page 47
48 Page 48
49 Page 49
50 Page 50
51 Page 51
52 Page 52
53 Page 53
54 Page 54
55 Page 55
56 Page 56
57 Page 57
58 Page 58
59 Page 59
60 Page 60
61 Page 61
62 Page 62
63 Page 63
64 Page 64
65 Page 65
66 Page 66
67 Page 67
68 Page 68
69 Page 69
70 Page 70
71 Page 71
72 Page 72
73 Page 73
74 Page 74
75 Page 75
76 Page 76
77 Page 77
78 Page 78
79 Page 79
80 Page 80
81 Page 81
82 Page 82
83 Page 83
84 Page 84
85 Page 85
86 Page 86
87 Page 87
88 Page 88
89 Page 89
90 Page 90
91 Page 91
92 Page 92
93 Page 93
94 Page 94
95 Page 95
96 Page 96
97 Page 97
98 Page 98
99 Page 99
100 Page 100
101 Page 101
102 Page 102
103 Page 103
104 Page 104
105 Page 105
106 Page 106
107 Page 107
108 Page 108
109 Page 109
110 Page 110
111 Page 111
112 Page 112
113 Page 113
114 Page 114
115 Page 115
116 Page 116
117 Page 117
118 Page 118
119 Page 119
120 Page 120
121 Page 121
122 Page 122
123 Page 123
124 Page 124
125 Page 125
126 Page 126
127 Page 127
128 Page 128
129 Page 129
130 Page 130
131 Page 131
132 Page 132
133 Page 133
134 Page 134
135 Page 135
136 Page 136
137 Page 137
138 Page 138
139 Page 139
140 Page 140
141 Page 141
142 Page 142
143 Page 143
144 Page 144
145 Page 145
146 Page 146
147 Page 147
148 Page 148
149 Page 149
150 Page 150
151 Page 151
152 Page 152
153 Page 153
154 Page 154
155 Page 155
156 Page 156
157 Page 157
158 Page 158
159 Page 159
160 Page 160
161 Page 161
162 Page 162
163 Page 163
164 Page 164
165 Page 165
166 Page 166
167 Page 167
168 Page 168
169 Page 169
170 Page 170
171 Page 171
172 Page 172
173 Page 173
174 Page 174
175 Page 175
176 Page 176
177 Page 177
178 Page 178
179 Page 179
180 Page 180
181 Page 181
182 Page 182
183 Page 183
184 Page 184
185 Page 185
186 Page 186
187 Page 187
188 Page 188
189 Page 189
190 Page 190
191 Page 191
192 Page 192
193 Page 193
194 Page 194
195 Page 195
196 Page 196
197 Page 197
198 Page 198
199 Page 199
200 Page 200
201 Page 201
202 Page 202
203 Page 203
204 Page 204
205 Page 205
206 Page 206
207 Page 207
208 Page 208
209 Page 209
210 Page 210
211 Page 211
212 Page 212
213 Page 213
214 Page 214
215 Page 215
216 Page 216
217 Page 217
218 Page 218
219 Page 219
220 Page 220
221 Page 221
222 Page 222
223 Page 223
224 Page 224
225 Page 225
226 Page 226
227 Page 227
228 Page 228
229 Page 229
230 Page 230
231 Page 231
232 Page 232
233 Page 233
234 Page 234
235 Page 235
236 Page 236
237 Page 237
238 Page 238
239 Page 239
240 Page 240
241 Page 241
242 Page 242
243 Page 243
244 Page 244
245 Page 245
246 Page 246
247 Page 247
248 Page 248
249 Page 249
250 Page 250
251 Page 251
252 Page 252
253 Page 253
254 Page 254
255 Page 255
256 Page 256
257 Page 257
258 Page 258
259 Page 259
260 Page 260
261 Page 261
262 Page 262
263 Page 263
264 Page 264
265 Page 265
266 Page 266
267 Page 267
268 Page 268
269 Page 269
270 Page 270
271 Page 271
272 Page 272
273 Page 273
274 Page 274
275 Page 275
276 Page 276
277 Page 277
278 Page 278
279 Page 279
280 Page 280
281 Page 281
282 Page 282
283 Page 283
284 Page 284
285 Page 285
286 Page 286
287 Page 287
288 Page 288
289 Page 289
290 Page 290
291 Page 291
292 Page 292
293 Page 293
294 Page 294
295 Page 295
296 Page 296
297 Page 297
298 Page 298
299 Page 299
300 Page 300
301 Page 301
302 Page 302
303 Page 303
304 Page 304
305 Page 305
306 Page 306
307 Page 307
308 Page 308
309 Page 309
310 Page 310
311 Page 311
312 Page 312
313 Page 313
314 Page 314
315 Page 315
316 Page 316
317 Page 317
318 Page 318
319 Page 319
320 Page 320
321 Page 321
322 Page 322
323 Page 323
324 Page 324
325 Page 325
326 Page 326
327 Page 327
328 Page 328
329 Page 329
330 Page 330
331 Page 331
332 Page 332
333 Page 333
334 Page 334
335 Page 335
336 Page 336
337 Page 337
338 Page 338
339 Page 339
340 Page 340
341 Page 341
342 Page 342
343 Page 343
344 Page 344
345 Page 345
346 Page 346
347 Page 347
348 Page 348
349 Page 349
350 Page 350
351 Page 351
352 Page 352
353 Page 353
354 Page 354
355 Page 355
356 Page 356
357 Page 357
358 Page 358
359 Page 359
360 Page 360
361 Page 361
362 Page 362
363 Page 363
364 Page 364
365 Page 365
366 Page 366
367 Page 367
368 Page 368
369 Page 369
370 Page 370
371 Page 371
372 Page 372
373 Page 373
374 Page 374
375 Page 375
376 Page 376
377 Page 377
378 Page 378
379 Page 379
380 Page 380
381 Page 381
382 Page 382
383 Page 383
384 Page 384
385 Page 385
386 Page 386
387 Page 387
388 Page 388
389 Page 389
390 Page 390
391 Page 391
392 Page 392
393 Page 393
394 Page 394
395 Page 395
396 Page 396
397 Page 397
398 Page 398
399 Page 399
400 Page 400
401 Page 401
402 Page 402
403 Page 403
404 Page 404
405 Page 405
406 Page 406
407 Page 407
408 Page 408
409 Page 409
410 Page 410
411 Page 411
412 Page 412
413 Page 413
414 Page 414
415 Page 415
416 Page 416
417 Page 417
418 Page 418
419 Page 419
420 Page 420
421 Page 421
422 Page 422
423 Page 423
424 Page 424
425 Page 425
426 Page 426
427 Page 427
428 Page 428
429 Page 429
430 Page 430
431 Page 431
432 Page 432
433 Page 433
434 Page 434
435 Page 435
436 Page 436
437 Page 437
438 Page 438
439 Page 439
440 Page 440
441 Page 441
442 Page 442
443 Page 443
444 Page 444
445 Page 445
446 Page 446
447 Page 447
448 Page 448
449 Page 449
450 Page 450
451 Page 451
452 Page 452
453 Page 453
454 Page 454
455 Page 455
456 Page 456
457 Page 457
458 Page 458
459 Page 459
460 Page 460
461 Page 461
462 Page 462
463 Page 463
464 Page 464
465 Page 465
466 Page 466
467 Page 467
468 Page 468
469 Page 469
470 Page 470
471 Page 471
472 Page 472
473 Page 473
474 Page 474
475 Page 475
476 Page 476
477 Page 477
478 Page 478
479 Page 479
480 Page 480
481 Page 481
482 Page 482
483 Page 483
484 Page 484
485 Page 485
486 Page 486
487 Page 487
488 Page 488
489 Page 489
490 Page 490
491 Page 491
492 Page 492
493 Page 493
494 Page 494
495 Page 495
496 Page 496
497 Page 497
498 Page 498
499 Page 499
500 Page 500
501 Page 501
502 Page 502
503 Page 503
504 Page 504
505 Page 505
506 Page 506
507 Page 507
508 Page 508
509 Page 509
510 Page 510
511 Page 511
512 Page 512
513 Page 513
514 Page 514
515 Page 515
516 Page 516
517 Page 517
518 Page 518
519 Page 519
520 Page 520
521 Page 521
522 Page 522
523 Page 523
524 Page 524
525 Page 525
526 Page 526
527 Page 527
528 Page 528
529 Page 529
530 Page 530
531 Page 531
532 Page 532
533 Page 533
534 Page 534
535 Page 535
536 Page 536
537 Page 537
538 Page 538
539 Page 539
540 Page 540
541 Page 541
542 Page 542
543 Page 543
544 Page 544
545 Page 545
546 Page 546
547 Page 547
548 Page 548
549 Page 549
550 Page 550
551 Page 551
552 Page 552
553 Page 553
554 Page 554
555 Page 555
556 Page 556
557 Page 557
558 Page 558
559 Page 559
560 Page 560
561 Page 561
562 Page 562
563 Page 563
564 Page 564
565 Page 565
566 Page 566
567 Page 567
568 Page 568
569 Page 569
570 Page 570
571 Page 571
572 Page 572
573 Page 573
574 Page 574
575 Page 575
576 Page 576
577 Page 577
578 Page 578
579 Page 579
580 Page 580
581 Page 581
582 Page 582
583 Page 583
584 Page 584
585 Page 585
586 Page 586
587 Page 587
588 Page 588
589 Page 589
590 Page 590
591 Page 591
592 Page 592
593 Page 593
594 Page 594
595 Page 595
596 Page 596
597 Page 597
598 Page 598
599 Page 599
600 Page 600
601 Page 601
602 Page 602
603 Page 603
Page: / 603

Table of Contents:

  • Page 3 – NOTES FOR CMOS DEVICES; PRECAUTION AGAINST ESD FOR SEMICONDUCTORS; to be taken for PW boards with semiconductor devices on it.; HANDLING OF UNUSED INPUT PINS FOR CMOS; pin should be connected to V; or GND with a resistor, if it is considered to have a possibility of; STATUS BEFORE INITIALIZATION OF MOS DEVICES; having reset function.
  • Page 4 – The customer must judge the need for license:
  • Page 6 – Regional Information; Device availability
  • Page 7 – Major Revisions in This Edition; APPENDIX B DEVELOPMENT TOOL; The mark shows major revised points.
  • Page 9 – PREFACE; Readers
  • Page 12 – Differences between; Modes of serial interface channel 0; Legend
  • Page 13 – Related Documents; versions. However, preliminary versions are not marked as such.; Related documents for
  • Page 17 – AV
  • Page 18 – CHAPTER 4; CHAPTER 5
  • Page 21 – Cautions on use of I
  • Page 23 – APPENDIX A DIFFERENCES BETWEEN
  • Page 28 – Handling of AV
  • Page 37 – Notes
  • Page 38 – CHAPTER 1 OUTLINE (; Ordering Information; Note; Under development; Caution The; indicates ROM code suffix.
  • Page 39 – and require high reliability.
  • Page 40 – Cautions 1. Be sure to connect IC (Internally Connected) pin to V; pin to V; Remark; Pin connection in parentheses is intended for the
  • Page 41 – Pin Identifications
  • Page 43 – Planned
  • Page 45 – Pin connection in parentheses is intended for the
  • Page 46 – Outline of Function; PD78P054 is the PROM version for the
  • Page 48 – The mask ROM versions (; Table 1-2. Mask Options of Mask ROM Versions
  • Page 50 – CHAPTER 2 OUTLINE (; Ordering Information
  • Page 53 – : Connect individually to V; : Programming Power Supply
  • Page 55 – Major differences among Y subseries are tabulated below.
  • Page 57 – Outline of Function
  • Page 58 – Table 2-1. Mask Options of Mask ROM Versions
  • Page 60 – CHAPTER 3 PIN FUNCTION (
  • Page 64 – Description of Pin Functions
  • Page 66 – Serial interface automatic transmit/receive busy input pins; Caution; output and buzzer output.
  • Page 68 – The following operating modes can be specified in 1-bit units.; to the function the user requires.
  • Page 69 – that are not used as analog outputs must be set as follows:
  • Page 70 – IC
  • Page 76 – CHAPTER 4 PIN FUNCTION (
  • Page 80 – Description of Pin Functions
  • Page 83 – Port 5 can drive LEDs directly.
  • Page 91 – CHAPTER 5 CPU ARCHITECTURE; Each product of the
  • Page 92 – CHAPTER 5 CPU ARCHITECTURE
  • Page 99 – The internal program memory space
  • Page 100 – The; Part Number; The internal high-speed RAM can also be used as a stack memory.; Caution Do not access addresses where the SFR is not assigned.
  • Page 101 – and general registers. This area is between FD00H and FFFFH for the
  • Page 107 – memory size switching register.
  • Page 109 – IE; Processor Registers; Figure 5-17. Program Counter Configuration; RESET input sets the PSW to 02H.; Figure 5-18. Program Status Word Configuration; acknowledged, and set to 1 when the EI instruction is executed.
  • Page 110 – instruction execution.
  • Page 111 – Figure 5-19. Stack Pointer Configuration
  • Page 112 – processing and a register for interruption for each bank.
  • Page 113 – Figure 5-22. General Register Configuration; FEFFH
  • Page 116 – This register is provided only in the
  • Page 118 – Instruction Address Addressing; of the next instruction.
  • Page 119 – instruction branches to an area of addresses 0800H through 0FFFH.; In the case of CALLF !addr11 instruction
  • Page 121 – Operand Address Addressing; manipulation during instruction execution.
  • Page 122 – Identifier
  • Page 123 – Operation code; Memory
  • Page 127 – can be carried out for all the memory spaces.
  • Page 129 – CHAPTER 6 PORT FUNCTIONS
  • Page 130 – CHAPTER 6 PORT FUNCTIONS
  • Page 134 – Port Configuration; A port consists of the following hardware:; connection for subsystem clock oscillation.; the output mode is used, set the interrupt mask flag to 1.
  • Page 135 – Internal bus; PM
  • Page 137 – Format and Figure 18-3 Serial Operating Mode Register 1 Format.
  • Page 139 – 8-3 Serial Operating Mode Register 1 Format.
  • Page 142 – KRMK; Figure 6-11. Block Diagram of Falling Edge Detection Circuit
  • Page 144 – Pins P60 to P63 can drive LEDs directly.; depending on the following conditions:
  • Page 150 – Port Function Control Registers; The following four types of registers control the ports.
  • Page 153 – RESET input sets this register to 00H.; Cautions 1. P00 and P07 pins do not incorporate a pull-up resistor.
  • Page 154 – This register is used to set input/output of port 4.; Figure 6-21. Memory Expansion Mode Register Format
  • Page 155 – KRM is set with a 1-bit or 8-bit memory manipulation instruction.; Figure 6-22. Key Return Mode Register Format
  • Page 156 – Port Function Operations
  • Page 157 – latch contents are output from the pins.; than the manipulated bit.; Selection of Mask Option; Table 6-6. Comparison between Mask ROM Version and PROM Version; Pin Name
  • Page 159 – types of system clock oscillators are available.; Clock Generator Configuration; The clock generator consists of the following hardware.; Table 7-1. Clock Generator Configuration
  • Page 160 – CHAPTER 7 CLOCK GENERATOR; Figure 7-1. Block Diagram of Clock Generator
  • Page 161 – FRC; Clock Generator Control Register; The clock generator is controlled by the following two registers:; Figure 7-2. Subsystem Clock Feedback Resistor
  • Page 162 – Figure 7-3. Processor Clock Control Register Format; system clock oscillation. A STOP instruction should not be used.; Caution Bit 3 must be set to 0.; or f; : Subsystem clock oscillator frequency
  • Page 163 – The fastest instruction of the; ) and the minimum instruction execution time are as shown in; : Main system clock oscillation frequency; : Subsystem clock oscillation frequency
  • Page 164 – OSMS is set with 8-bit memory manipulation instruction.; Figure 7-4. Oscillation Mode Selection Register Format; Remarks f
  • Page 165 – System Clock Oscillator; connected to the X1 and X2 pins.; Figure 7-6. External Circuit of Main System Clock Oscillator
  • Page 166 – and an antiphase clock signal to the XT2 pin.; PORTn
  • Page 167 – (d) Current flows through the grounding line; in series on the XT2 side.; between XT2 and X1 directly to V
  • Page 168 – The scaler divides the main system clock oscillator output (f; connect the XT1 and XT2 pins as follows.; pins as described above.
  • Page 169 – Clock Generator Operations
  • Page 170 – (b) Operation when MCC is set in case of main system clock operation
  • Page 171 – the following operations are carried out.; Changing System Clock and CPU Clock Settings
  • Page 172 – Table 7-3. Maximum Time Required for CPU Clock Switchover; MCS: Oscillation mode selection register bit 0
  • Page 173 – System clock and CPU clock switching procedure
  • Page 175 – Outline of Timers Incorporated in the; Subseries and related circuits are outlined below.
  • Page 177 – Values in parentheses when operated at f
  • Page 179 – The 16-bit timer/event counter consists of the following hardware.; Refer to Figure 21-1. Basic Configuration of Interrupt Function.; Notes 1. Edge detection circuit
  • Page 181 – one pulse cannot be counted.; CR01 is set with a 16-bit memory manipulation instruction.
  • Page 184 – : Subsystem clock oscillation frequency; Figures in parentheses apply to operation with f; TMC0 is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 185 – When using the PWM mode, set the PWM mode and then set data to CR00.
  • Page 186 – Cautions 1. Timer operation must be stopped before setting CRC0.; TOC0 is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 187 – If LVS0 and LVR0 are read after data is set, they will be 0.
  • Page 188 – PM3 is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 189 – Figure 8-8. External Interrupt Mode Register 0 Format
  • Page 190 – SCS is set with an 8-bit memory manipulation instruction.
  • Page 191 – the description of the respective control registers for details.; Clear & start on match TM0 and CR00
  • Page 192 – Clear Circuit; Figure 8-11. Interval Timer Configuration Diagram
  • Page 193 – : Main system clock oscillation frequency; Figures in parentheses apply to operation with f; and the sub-cycle determined by 2; Be sure to write 0 to bits 0 and 1 of CR00.
  • Page 194 – PWM mode; Figure 8-13. Control Register Settings for PWM Output Operation
  • Page 195 – Switching Circuit; The analog output voltage (V; : External switching circuit reference voltage; Figure 8-14. Example of D/A Converter Configuration with PWM Output; synthesizer type TV tuner.; Figure 8-15. TV Tuner Application Circuit Example
  • Page 196 – Figure 8-16. Control Register Settings for PPG Output Operation
  • Page 197 – Pulse width measurement operations; eliminating noise with a short pulse width.; Free-Running Counter and One Capture Register
  • Page 198 – Count Clock; and One Capture Register (with Both Edges Specified)
  • Page 199 – (2) Measurement of two pulse widths with free-running counter; thus eliminating noise with a short pulse width.
  • Page 200 – Figure 8-21. Timing of Pulse Width Measurement Operation with
  • Page 201 – Free-Running Counter and Two Capture Registers
  • Page 202 – Counter and Two Capture Registers (with Rising Edge Specified)
  • Page 203 – (4) Pulse width measurement by means of restart; with a short pulse width.; compare register 00 (CR00) cannot perform the capture operation.
  • Page 205 – Figure 8-27. External Event Counter Configuration Diagram
  • Page 206 – frequency to be output.; Figure 8-29. Control Register Settings in Square-Wave Output Mode
  • Page 210 – Clear & start with valid edge of TI00/P00 pin; P30 pin with a TI00/P00 valid edge as an external trigger.
  • Page 213 – (4) Capture register data retention timings; detection of the valid edge.; Figure 8-37. Capture Register Data Retention Timing
  • Page 214 – OFV0 flag is set to 1 in the following case.; Figure 8-38. Operation Timing of OVF0 Flag
  • Page 215 – CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 2; • Interval timer
  • Page 216 – CHAPTER 9 8-BIT TIMER/EVENT COUNTERS 1 AND 2; Interrupt requests are generated at the preset time intervals.
  • Page 218 – Interrupt requests can be generated at the preset time intervals.
  • Page 219 – Counters 1 and 2 are Used as 16-Bit Timer/Event Counters
  • Page 222 – The section in the broken line is an output control circuit.; : Serial clock frequency; INV
  • Page 224 – Figure 9-4. Timer Clock Select Register 1 Format; Figures in parentheses apply to operation with f
  • Page 225 – TMC1 is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 226 – timer registers 1 and 2.; Cautions 1. Be sure to set TOC1 after stopping timer operation.
  • Page 228 – Figure 9-8. Interval Timer Operation Timings
  • Page 229 – Values in parentheses when operated at f
  • Page 231 – is input. Either the rising or falling edge can be selected.; TI1 Pin Input
  • Page 232 – a square wave with any selected frequency to be output.
  • Page 234 – the overflow signal of TM1 becomes the count clock of TM2.; Figure 9-11. Interval Timer Operation Timing
  • Page 236 – falling edge can be selected.
  • Page 238 – with the count pulse.; Count Pulse
  • Page 239 – Figure 9-15. Event Counter Operation Timing; is necessary to restart the timer after changing CR10 and CR20.; Interrupt Request Flag
  • Page 242 – CHAPTER 10 WATCH TIMER; Watch Timer Configuration
  • Page 243 – Prescaler; Clear
  • Page 244 – Figure 10-2. Timer Clock Select Register 2 Format
  • Page 245 – RESET input sets TMC2 to 00H.; Figure 10-3. Watch Timer Mode Control Register Format
  • Page 246 – Watch Timer Operations; Table 10-3. Interval Timer Interval Time
  • Page 248 – CHAPTER 11 WATCHDOG TIMER; MCS : Oscillation mode selection register bit 0
  • Page 249 – Watchdog Timer Configuration; The watchdog timer consists of the following hardware.; Table 11-3. Watchdog Timer Configuration; Item; Figure 11-1. Watchdog Timer Block Diagram; Control register
  • Page 250 – Watchdog Timer Control Registers; This register sets the watchdog timer count clock.
  • Page 251 – Figure 11-2. Timer Clock Select Register 2 Format
  • Page 252 – WDTM is set with a 1-bit or 8-bit memory manipulation instruction.; Figure 11-3. Watchdog Timer Mode Register Format
  • Page 253 – Watchdog Timer Operations; Table 11-4. Watchdog Timer Runaway Detection Times
  • Page 254 – requests, the INTWDT default has the highest priority.; timer mode is not set unless RESET input is applied.; Interval Time; Figures in parentheses apply to operation with f
  • Page 255 – CLOE; CHAPTER 12 CLOCK OUTPUT CONTROL CIRCUIT; Follow the procedure below to output clock pulses.
  • Page 256 – CHAPTER 12 CLOCK OUTPUT CONTROL CIRCUIT; Clock Output Control Circuit Configuration; Table 12-1. Clock Output Control Circuit Configuration; Figure 12-2. Clock Output Control Circuit Block Diagram
  • Page 257 – Clock Output Function Control Registers; This register sets PCL output clock.
  • Page 258 – Figure 12-3. Timer Clock Select Register 0 Format
  • Page 259 – Figure 12-4. Port Mode Register 3 Format
  • Page 261 – CHAPTER 13 BUZZER OUTPUT CONTROL CIRCUIT; Follow the procedure below to output the buzzer frequency.; Buzzer Output Control Circuit Configuration; Table 13-1. Buzzer Output Control Circuit Configuration; Figure 13-1. Buzzer Output Control Circuit Block Diagram
  • Page 262 – CHAPTER 13 BUZZER OUTPUT CONTROL CIRCUIT; Buzzer Output Function Control Registers; This register sets the buzzer output frequency.; watchdog timer count clock.
  • Page 263 – Figure 13-2. Timer Clock Select Register 2 Format
  • Page 264 – Figure 13-3. Port Mode Register 3 Format
  • Page 265 – CHAPTER 14 A/D CONVERTER
  • Page 266 – CHAPTER 14 A/D CONVERTER; Tap Selector; Bits 0 and 1 of external interrupt mode register 1 (INTM1)
  • Page 267 – ADCR is read with an 8-bit memory manipulation instruction.; and generates a voltage to be compared; or lower than AV; converted values of other channels.
  • Page 269 – • External interrupt mode register 1 (INTM1)
  • Page 270 – Setting prohibited because A/D conversion time is less than 19.1
  • Page 271 – ADIS is set with an 8-bit memory manipulation instruction.; Cautions 1. Set the analog input channel in the following order.
  • Page 272 – This register sets the valid edge for INTP3 to INTP6.; Figure 14-5. External Interrupt Mode Register 1 Format
  • Page 273 – , the MSB of SAR remains set. If the input
  • Page 274 – After RESET input, the value of ADCR is undefined.
  • Page 275 – Input voltage and conversion results
  • Page 276 – The following two ways are available to start A/D conversion.
  • Page 277 – continues repeatedly until new data is written to ADM.
  • Page 278 – pin at this time, this current must
  • Page 279 – Figure 14-11. Analog Input Pin Disposition
  • Page 280 – pin; The AV; Therefore, be sure to apply the same voltage as V; to this pin even when the application circuit is designed; Pin
  • Page 281 – CHAPTER 15 D/A CONVERTER; The conversion method used is the R-2R resistor ladder method.
  • Page 282 – CHAPTER 15 D/A CONVERTER; The D/A converter consists of the following hardware.
  • Page 283 – RESET input sets these registers to 00H.; trigger and before the next output trigger.; DACSn
  • Page 284 – The DAM is set with a 1-bit or 8-bit memory manipulation instruction.; a pull-up resistor should be disconnected.
  • Page 285 – with the output triggers.
  • Page 286 – Figure 15-3. Use Example of Buffer Amplifier; When only either one of the D/A converter channels is used with AV; , the other pins that are not used; low level from the pin.
  • Page 287 – CHAPTER 16 SERIAL INTERFACE CHANNEL 0 (
  • Page 288 – CHAPTER 16 SERIAL INTERFACE CHANNEL 0 (; Serial Interface Channel 0 Functions
  • Page 289 – more devices can be used as input/output ports.; Master CPU
  • Page 290 – Serial Interface Channel 0 Configuration; Table 16-2. Serial Interface Channel 0 Configuration
  • Page 291 – Figure 16-2. Serial Interface Channel 0 Block Diagram
  • Page 292 – SIO0 is set with an 8-bit memory manipulation instruction.
  • Page 293 – is used, the circuit also controls clock output to the SCK0/P27 pin.
  • Page 294 – Serial Interface Channel 0 Control Registers
  • Page 295 – Figure 16-3. Timer Clock Select Register 3 Format
  • Page 296 – function and displays the address comparator match signal.
  • Page 297 – ) the operation of serial interface channel
  • Page 298 – SBIC is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 300 – SINT is set with a 1-bit or 8-bit memory manipulation instruction.; Figure 16-6. Interrupt Timing Specify Register Format; SVA
  • Page 301 – Serial Interface Channel 0 Operations; • Operation stop mode
  • Page 302 – CSIM0 is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 305 – SI0 pin is latched in SIO0 at the rising edge of SCK0.; RELT
  • Page 306 – Figure 16-9. Circuit of Switching in Transfer Bit Order; conditions are satisfied.
  • Page 307 – the board can be decreased.; Figure 16-10. Example of Serial Bus Configuration with SBI
  • Page 308 – software, the software must be heavily loaded.; (b) Chip select function by address transmission; The busy signal to report the slave busy state is controlled.
  • Page 309 – The dotted line indicates READY status.; Address Transfer
  • Page 310 – This signal is output by the master device.
  • Page 311 – in order to select a particular slave device.; Figure 16-15. Slave Selection with Address
  • Page 312 – by address transmission.; Data
  • Page 313 – [When output in synchronization with 11th clock SCK0]
  • Page 314 – terminates the output of SCK0 serial clock.
  • Page 320 – ACKT
  • Page 321 – (b) When set after completion of transfer; ACKE
  • Page 322 – (a) When ACK signal is output at 9th clock of SCK0
  • Page 324 – In BUSY state, transfer starts after the READY state is set.
  • Page 326 – of using the address match detection method.; two or more devices by outputting an “address” to the serial bus.
  • Page 329 – Figure 16-29. Data Transmission from Master Device to Slave Device
  • Page 330 – Figure 16-30. Data Transmission from Slave Device to Master Device
  • Page 331 – write FFH to SIO0 in advance.; before the first byte of serial transmission.
  • Page 332 – transfer of the 1st byte after RESET input.
  • Page 333 – Master
  • Page 336 – CSIIF0 : Interrupt request flag corresponding to INTCSI0
  • Page 337 – is carried out bit-wise in synchronization with the serial clock.
  • Page 338 – Figure 16-33 shows RELT and CMDT operations.
  • Page 339 – normal serial clock output.
  • Page 341 – CHAPTER 17 SERIAL INTERFACE CHANNEL 0 (
  • Page 342 – CHAPTER 17 SERIAL INTERFACE CHANNEL 0 (; Serial Interface Channel 0 Functions; Serial interface channel 0 employs the following four modes.; transfer processing time.
  • Page 343 – This mode is in compliance with the I; Figure 17-1. Serial Bus Configuration Example Using I
  • Page 344 – Serial Interface Channel 0 Configuration; Table 17-2. Serial Interface Channel 0 Configuration
  • Page 345 – Figure 17-2. Serial Interface Channel 0 Block Diagram
  • Page 348 – Serial Interface Channel 0 Control Registers
  • Page 349 – Figure 17-3. Timer Clock Select Register 3 Format
  • Page 351 – Figure 17-4. Serial Operating Mode Register 0 Format; C bus mode, the clock frequency becomes 1/16 of that output from TO2.
  • Page 353 – Notes 1. Setting should be performed before transfer.; However, the BSYE flag is not cleared to 0.; Remark CSIE0: Bit 7 of serial operating mode register 0 (CSIM0)
  • Page 354 – RESET input sets SINT to 00H.; When not using the I
  • Page 355 – Notes 1. When using wake-up function in the I
  • Page 356 – Serial Interface Channel 0 Operations
  • Page 360 – Figure 17-9. Circuit of Switching in Transfer Bit Order
  • Page 366 – Figure 17-12 shows RELT and CMDT operations.
  • Page 367 – C bus mode operation; The I; Figure 17-13. Example of Serial Bus Configuration Using I
  • Page 368 – C bus mode functions
  • Page 369 – is the slave device which will send data to the master.; Figure 17-17. Transfer Direction Specification; Transfer direction
  • Page 370 – the master device outputs no acknowledge signal in this case.
  • Page 371 – to preparing for transmitting or receiving data.
  • Page 373 – SBIC is set by a 1-bit or 8-bit memory manipulation instruction.
  • Page 374 – Notes 1. This setting must be performed prior to transfer start.
  • Page 375 – SINT is set by the 1-bit or 8-bit memory manipulation instruction.
  • Page 376 – A list of signals in the I; C Bus Mode
  • Page 377 – In the I
  • Page 378 – (a) Comparison of SIO0 data before and after transmission
  • Page 379 – Figure 17-22. Data Transmission from Master to Slave
  • Page 382 – Figure 17-23. Data Transmission from Slave to Master
  • Page 385 – C bus mode
  • Page 386 – output latch to 1 after execution of an SIO0 write instruction.
  • Page 390 – To internal logic
  • Page 391 – Figure 17-29. Logic Circuit of SCL Signal
  • Page 393 – Serial interface channel 1 employs the following three modes.
  • Page 394 – CHAPTER 18 SERIAL INTERFACE CHANNEL 1; Serial Interface Channel 1 Configuration; Table 18-1. Serial Interface Channel 1 Configuration
  • Page 395 – Figure 18-1. Serial Interface Channel 1 Block Diagram
  • Page 396 – SIO1 is set with an 8-bit memory manipulation instruction.; RESET input sets ADTP to 00H.
  • Page 397 – Serial Interface Channel 1 Control Registers; • Serial operating mode register 1 (CSIM1)
  • Page 398 – Figure 18-2. Timer Clock Select Register 3 Format
  • Page 399 – CSIM1 is set with a 1-bit or 8-bit memory manipulation instruction.; Figure 18-3. Serial Operation Mode Register 1 Format
  • Page 400 – execution and error detection.
  • Page 401 – Notes 1. The interval is dependent only on CPU processing.
  • Page 402 – , the minimum interval time
  • Page 405 – Serial Interface Channel 1 Operations; Notes 1. Can be used freely as port function.
  • Page 407 – pin is latched into SIO1 at the rising edge of SCK1.
  • Page 408 – Figure 18-7. Circuit of Switching in Transfer Bit Order
  • Page 411 – ADTC is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 412 – Main system clock frequency (f
  • Page 416 – subtracting 1 from the number of transmit data bytes.
  • Page 417 – transmitted or received.; Figure 18-8. Basic Transmission/Reception Mode Operation Timings; CSIIF1 : Interrupt request flag; TRF
  • Page 418 – ADTP : Automatic data transmit/receive address pointer
  • Page 419 – is transferred from the buffer RAM to SIO1.; FADFH
  • Page 421 – BUSY pins can be used as normal input/ports.; Figure 18-11. Basic Transmission Mode Operation Timings
  • Page 422 – Figure 18-12. Basic Transmission Mode Flowchart; ADTP : Automatic data transmit/receive address pointer
  • Page 423 – Then transmit data 2 (T2) is transferred from the buffer RAM to SIO1.
  • Page 425 – are transmitted again.; Figure 18-14. Repeat Transmission Mode Operation Timing; Interval
  • Page 426 – Figure 18-15. Repeat Transmission Mode Flowchart
  • Page 428 – (b) Upon completion of transmission of 6 bytes
  • Page 429 – is suspended upon completion of 8-bit data transfer.
  • Page 430 – device and slave device.; Master Device
  • Page 431 – The busy signal cannot be controlled with an external clock.; CSIIF1: Interrupt request flag
  • Page 432 – or receiving can wait while the busy signal is being input.
  • Page 434 – (c) Bit Slippage Detection Function Through the Busy Signal; bit slippage can be detected.; CSIIF1 : Interrupt Request Flag
  • Page 435 – interval may be longer than the value indicated by paragraph (b).; CSIIF1: Interrupt request flag
  • Page 439 – Serial interface channel 2 has the following three modes.
  • Page 440 – CHAPTER 19 SERIAL INTERFACE CHANNEL 2; Serial Interface Channel 2 Configuration; Table 19-1. Serial Interface Channel 2 Configuration
  • Page 441 – Figure 19-1. Serial Interface Channel 2 Block Diagram; See Figure 19-2 for the baud rate generator configuration.
  • Page 442 – Figure 19-2. Baud Rate Generator Block Diagram
  • Page 443 – Writing data to TXS starts the transmit operation.; RXS cannot be directly manipulated by a program.
  • Page 444 – Serial Interface Channel 2 Control Registers; Figure 19-3. Serial Operating Mode Register 2 Format
  • Page 445 – ASIM is set with a 1-bit or 8-bit memory manipulation instruction.; Figure 19-4. Asynchronous Serial Interface Mode Register Format
  • Page 446 – Table 19-2. Serial Interface Channel 2 Operating Mode Settings; TXE RXE SCK CSIE2 CSIM22 CSCK
  • Page 447 – will continue to be generated until RXB is read.
  • Page 448 – BRGC is set with an 8-bit memory manipulation instruction.; Baud Rate Generator Input Clock Selection
  • Page 450 – scaled from the clock input from the ASCK pin.; Table 19-3. Relation between Main System Clock and Baud Rate; MCS: Oscillation mode selection register bit 0
  • Page 451 – Frequency of clock input to ASCK pin
  • Page 452 – Serial Interface Channel 2 Operation
  • Page 454 – CSIM2 is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 456 – ASIS is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 459 – a signal scaled from the clock input from the ASCK pin.; Table 19-5. Relation between Main System Clock and Baud Rate
  • Page 461 – One data frame consists of the following bits.; Stop Bit
  • Page 462 – Even parity
  • Page 463 – Interrupt Request Generation Timing
  • Page 464 – start bit, reception of one frame of data ends.; Figure 19-9. Asynchronous Serial Interface Reception Completion
  • Page 466 – FFH, then set the TXE to 1 before executing the next transmission.; The State of Receive Buffer Register (RXB) and Whether
  • Page 472 – received bit by bit in synchronization with the serial clock.; SRIF
  • Page 473 – Figure 19-13. Circuit of Switching in Transfer Bit Order; following two conditions are satisfied.
  • Page 474 – Limitations when UART mode is used; ISRM : Bit 1 of asynchronous serial interface mode register (ASIM); : Source clock of 5-bit counter of baud rate generator; Countermeasures
  • Page 475 – • In case of parity error; Example of preventive measures; Here is an example of the above preventive measures.
  • Page 477 – CHAPTER 20 REAL-TIME OUTPUT PORT
  • Page 478 – CHAPTER 20 REAL-TIME OUTPUT PORT; Real-Time Output Port Configuration; The real-time output port consists of the following hardware.
  • Page 480 – Real-Time Output Port Control Registers; The following three registers control the real-time output port.; Figure 20-3. Port Mode Register 12 Format; RTPM is set with a 1-bit or 8-bit memory manipulation instruction.
  • Page 481 – Table 20-3. Real-time Output Port Operating Mode and Output Trigger
  • Page 483 – The following three types of interrupt functions are used.
  • Page 484 – CHAPTER 21 INTERRUPT AND TEST FUNCTIONS; Interrupt Sources and Configuration; is the highest priority and 20 is the lowest priority.
  • Page 485 – is the highest priority and 18 is the lowest priority.
  • Page 488 – Interrupt Function Control Registers; to interrupt request sources.
  • Page 489 – or upon application of RESET input.; Figure 21-2. Interrupt Request Flag Register Format
  • Page 490 – RESET input sets these registers to FFH.; Figure 21-3. Interrupt Mask Flag Register Format
  • Page 491 – Set always 1 in PR1L bits 3 through 7.; Figure 21-4. Priority Specify Flag Register Format
  • Page 492 – These registers set the valid edge for INTP0 to INTP6.; Figure 21-5. External Interrupt Mode Register 0 Format
  • Page 493 – Figure 21-6. External Interrupt Mode Register 1 Format
  • Page 495 – Sampling Clock; Sampling Clock
  • Page 496 – processing are mapped.; Figure 21-9. Program Status Word Configuration
  • Page 497 – Interrupt Servicing Operations; table contents are loaded into PC and branched.
  • Page 498 – WDTM; Figure 21-11. Non-Maskable Interrupt Request Acknowledge Timing; : Watchdog timer interrupt request flag
  • Page 499 – If a new non-maskable interrupt request is generated during; Main Routine
  • Page 500 – Maskable interrupt request acknowledge operation
  • Page 501 – Start
  • Page 503 – Software interrupt request acknowledge operation; servicing, and set interrupt enable state.
  • Page 504 – Example 1. A multiple interrupt is generated at twice
  • Page 505 – after execution of one main processing instruction.
  • Page 506 – CPU processing
  • Page 507 – Figure 21-18. Basic Configuration of Test Function
  • Page 508 – It indicates whether a watch timer overflow is detected or not.
  • Page 509 – Figure 21-21. Key Return Mode Register Format; timer overflow cycle.
  • Page 511 – Table 22-1. Pin Functions in External Memory Expansion Mode
  • Page 512 – CHAPTER 22 EXTERNAL DEVICE EXPANSION FUNCTION; Memory map of
  • Page 514 – when the
  • Page 515 – less than 56 Kbytes by the memory size switching register (IMS).; Reserved
  • Page 516 – External Device Expansion Function Control Register; RESET input sets this register to 10H.; Figure 22-2. Memory Expansion Mode Register Format
  • Page 517 – Figure 22-3. Memory Size Switching Register Format
  • Page 518 – External Device Expansion Function Timing; from external memory.
  • Page 519 – Figure 22-4. Instruction Fetch from External Memory
  • Page 520 – Figure 22-5. External Memory Read Timing
  • Page 521 – Figure 22-6. External Memory Write Timing
  • Page 522 – Figure 22-7. External Memory Read Modify Write Timing
  • Page 523 – Example of Connection with Memory; This section provides
  • Page 525 – intermittent operations such as in watch applications.; request, it enables intermittent operations to be carried out.; the main system clock or the subsystem clock.
  • Page 526 – CHAPTER 23 STANDBY FUNCTION; Standby function control register; OSTS is set with an 8-bit memory manipulation instruction.; Values in parentheses apply to operating at f
  • Page 527 – Standby Function Operations; The operating status in the HALT mode is described below.; Notes 1. Including when external clock is not supplied
  • Page 528 – (a) Clear upon unmasked interrupt request; status is acknowledged.
  • Page 529 – Figure 23-3. HALT Mode Release by RESET Input; : main system clock oscillation frequency; Table 23-2. Operation after HALT Mode Release
  • Page 530 – via a pull-up resistor; The operating status in the STOP mode is described below.
  • Page 531 – (a) Release by unmasked interrupt request
  • Page 532 – Figure 23-5. Release by STOP Mode RESET Input; Table 23-4. Operation after STOP Mode Release
  • Page 533 – CHAPTER 24 RESET FUNCTION; (2) Internal reset by watchdog timer overrun time detection; Cautions 1. For an external reset, input a low level for 10
  • Page 534 – Figure 24-2. Timing of Reset Input by RESET Input
  • Page 535 – CHAPTER 24 RESET FUNCTION; The values after reset depend on the product.
  • Page 537 – CHAPTER 25 ROM CORRECTION; ROM Correction Configuration; Table 25-1. ROM Correction Configuration
  • Page 538 – RESET input sets CORAD0 and CORAD1 to 0000H.; Figure 25-2. Correction Address Registers 0 and 1 Format
  • Page 539 – ROM Correction Control Registers; RESET input sets CORCN to 00H.; Figure 25-3. Correction Control Register Format
  • Page 540 – ROM Correction Application; EEPROM; EEPROM; FFH
  • Page 541 – expansion RAM with the main program.
  • Page 543 – Internal ROM; ROM Correction Example; address value after the main program is started.
  • Page 544 – Program Execution Flow; Area filled with diagonal lines : Internal expansion RAM
  • Page 545 – (2) Branches to branch destination judgment program
  • Page 546 – Cautions on ROM Correction
  • Page 549 – Table 26-3. Examples of Memory Size Switching Register Settings (; Relevant Mask ROM Version
  • Page 550 – Table 26-4. Examples of Memory Size Switching Register Settings (
  • Page 551 – Internal Expansion RAM Size Switching Register
  • Page 552 – PROM Programming; Caution In case of the; Table 26-6. PROM Programming Operating Modes
  • Page 554 – N = Last address of program; Figure 26-4. Page Program Mode Flowchart
  • Page 556 – Figure 26-6. Byte Program Mode Flowchart
  • Page 557 – Cautions 1. Be sure to apply V; before applying V; , and remove it after removing V; to the V; pin may have an adverse affect on device reliability.
  • Page 558 – pin. Unused pins are handled as shown in paragraph,; and V; (3) Input the address of data to be read to pins A0 through A16.
  • Page 559 – Screening of One-Time PROM Versions
  • Page 561 – CHAPTER 27 INSTRUCTION SET; This chapter describes each instruction set of the
  • Page 562 – CHAPTER 27 INSTRUCTION SET; Legends Used in Operation List; Operand identifiers and description methods
  • Page 563 – Description of “operation” column
  • Page 564 – When an area except the internal high-speed RAM area is accessed.; ) selected by the processor clock; This clock cycle applies to internal ROM program.; MOV
  • Page 565 – ADD
  • Page 566 – SUB
  • Page 567 – OR
  • Page 572 – Instructions Listed by Addressing Type
  • Page 577 – Table A-1 shows the major differences between the
  • Page 578 – APPENDIX A DIFFERENCES BETWEEN; PROM version only
  • Page 579 – APPENDIX B DEVELOPMENT TOOLS; Figure B-1 shows the configuration of the development tools.
  • Page 580 – APPENDIX B DEVELOPMENT TOOLS
  • Page 582 – B.1 Language Processing Software
  • Page 584 – B.2 PROM Writing Tools
  • Page 586 – Notes 1. Under development
  • Page 590 – I T E M
  • Page 592 – I J J J; Note Product by TOKYO ELETECH CORPORATION.
  • Page 593 – APPENDIX C EMBEDDED SOFTWARE;
  • Page 594 – APPENDIX C REGISTER INDEX
  • Page 595 – APPENDIX D REGISTER INDEX
  • Page 596 – APPENDIX D REGISTER INDEX
  • Page 599 – APPENDIX E REVISION HISTORY; Major revisions by edition and revised chapters are shown below.
  • Page 603 – Thank you for your kind support.; Document Rating; Name; Facsimile
Loading the manual

µ

PD78054, 78054Y SUBSERIES

8-BIT SINGLE-CHIP MICROCONTROLLERS

µ

PD78052

µ

PD78052Y

µ

PD78053

µ

PD78053Y

µ

PD78054

µ

PD78054Y

µ

PD78P054

µ

PD78055Y

µ

PD78055

µ

PD78056Y

µ

PD78056

µ

PD78058Y

µ

PD78058

µ

PD78P058Y

µ

PD78P058

µ

PD78052(A)

µ

PD78053(A)

µ

PD78054(A)

Document No. U11747EJ5V0UM00 (5th edition)
Date Published April 1998 N CP (K)

1992

User’s Manual

Printed in Japan

©

"Loading the manual" means you need to wait until the file loads and becomes available for online reading. Some manuals are very large, and the time they take to appear depends on your internet speed.

Summary

Page 3 - NOTES FOR CMOS DEVICES; PRECAUTION AGAINST ESD FOR SEMICONDUCTORS; to be taken for PW boards with semiconductor devices on it.; HANDLING OF UNUSED INPUT PINS FOR CMOS; pin should be connected to V; or GND with a resistor, if it is considered to have a possibility of; STATUS BEFORE INITIALIZATION OF MOS DEVICES; having reset function.

3 NOTES FOR CMOS DEVICES 1 PRECAUTION AGAINST ESD FOR SEMICONDUCTORS Note: Strong electric field, when exposed to a MOS device, can cause destruction of the gate oxide and ultimately degrade the device operation. Steps must be taken to stop generation of static electricity as much as possible, and q...

Page 4 - The customer must judge the need for license:

4 FIP, EEPROM, IEBus, QTOP are trademarks of NEC Corporation. MS-DOS, Windows, and Widows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. IBM DOS, PC/AT and PC DOS are trademarks of International Business Machines Corporation. H...

Page 6 - Regional Information; Device availability

6 Regional Information Some information contained in this document may vary from country to country. Before using any NECproduct in your application, pIease contact the NEC office in your country to obtain a list of authorizedrepresentatives and distributors. They will verify: • Device availability ...

Other NEC Models

All NEC Other