
User’s Manual U12768EJ4V1UD
16
CHAPTER 15 RESET FUNCTION ....................................................................................................... 397
15.1 General ................................................................................................................................... 397
15.2 Pin Operations ....................................................................................................................... 397
CHAPTER 16 FLASH MEMORY .......................................................................................................... 398
16.1 Features.................................................................................................................................. 398
16.1.1
Erasing unit ...............................................................................................................................398
16.2 Writing by Flash Programmer .............................................................................................. 399
16.3 Programming Environment .................................................................................................. 404
16.4 Communication System........................................................................................................ 404
16.5 Pin Connection ...................................................................................................................... 407
16.5.1
VPP pin .......................................................................................................................................407
16.5.2
Serial interface pin.....................................................................................................................407
16.5.3
RESET pin.................................................................................................................................409
16.5.4
Port pin (including NMI) .............................................................................................................409
16.5.5
Other signal pins........................................................................................................................409
16.5.6
Power supply .............................................................................................................................409
16.6 Programming Method............................................................................................................ 410
16.6.1
Flash memory control ................................................................................................................410
16.6.2
Flash memory programming mode............................................................................................410
16.6.3
Selection of communication mode.............................................................................................411
16.6.4
Communication command .........................................................................................................411
16.6.5
Resources used.........................................................................................................................412
16.7 Flash Memory Programming by Self-Programming .......................................................... 413
16.7.1
Outline of self-programming ......................................................................................................413
16.7.2
Self-programming function ........................................................................................................414
16.7.3
Outline of self-programming interface........................................................................................415
16.7.4
Hardware environment ..............................................................................................................415
16.7.5
Software environment................................................................................................................417
16.7.6
Self-programming function number ...........................................................................................418
16.7.7
Calling parameters ....................................................................................................................419
16.7.8
Contents of RAM parameters ....................................................................................................420
16.7.9
Errors during self-programming .................................................................................................421
16.7.10 Flash information .......................................................................................................................421
16.7.11 Area number..............................................................................................................................422
16.7.12 Flash programming mode control register (FLPMC)..................................................................423
16.7.13 Calling device internal processing .............................................................................................425
16.7.14 Flow of erasing flash memory....................................................................................................428
16.7.15 Successive writing flow..............................................................................................................429
16.7.16 Internal verify flow......................................................................................................................430
16.7.17 Flow of acquiring flash information ............................................................................................431
16.7.18 Self-programming library ...........................................................................................................432
CHAPTER 17 ELECTRICAL SPECIFICATIONS ................................................................................. 434
CHAPTER 18 PACKAGE DRAWINGS ................................................................................................ 460