15
User’s Manual U15195EJ5V0UD
CHAPTER 15 FLASH MEMORY (
µ
PD70F3114).................................................................................603
15.1
Features ................................................................................................................................... 603
15.2
Writing Using Flash Programmer.......................................................................................... 603
15.3
Programming Environment.................................................................................................... 606
15.4
Communication Mode ............................................................................................................ 606
15.5
Pin Connection........................................................................................................................ 608
15.5.1 MODE1/V
PP
pin ..........................................................................................................................608
15.5.2 Serial
interface pin......................................................................................................................608
15.5.3 RESET pin .................................................................................................................................610
15.5.4 NMI pin.......................................................................................................................................610
15.5.5 MODE0, MODE1 pins ................................................................................................................610
15.5.6 Port pins .....................................................................................................................................610
15.5.7 Other signal pins ........................................................................................................................610
15.5.8 Power supply..............................................................................................................................610
15.6
Programming Method............................................................................................................. 611
15.6.1 Flash memory control.................................................................................................................611
15.6.2 Flash memory programming mode.............................................................................................612
15.6.3 Selection of communication mode..............................................................................................612
15.6.4 Communication commands ........................................................................................................613
15.7
Flash Memory Programming by Self-Programming............................................................ 614
15.7.1 Outline of self-programming .......................................................................................................614
15.7.2 Self-programming function .........................................................................................................615
15.7.3 Outline of self-programming interface ........................................................................................615
15.7.4 Hardware environment ...............................................................................................................616
15.7.5 Software environment ................................................................................................................618
15.7.6 Self-programming function number ............................................................................................619
15.7.7 Calling parameters .....................................................................................................................620
15.7.8 Contents of RAM parameters .....................................................................................................621
15.7.9 Errors during self-programming..................................................................................................622
15.7.10
Flash information........................................................................................................................622
15.7.11
Area number ..............................................................................................................................623
15.7.12
Flash programming mode control register (FLPMC) ..................................................................624
15.7.13
Calling device internal processing ..............................................................................................626
15.7.14
Erasing flash memory flow .........................................................................................................629
15.7.15
Continuous writing flow ..............................................................................................................630
15.7.16
Internal verify flow ......................................................................................................................631
15.7.17
Acquiring flash information flow..................................................................................................632
15.7.18
Self-programming library ............................................................................................................633
15.8
How to Distinguish Flash Memory and Mask ROM Versions............................................. 635
CHAPTER 16 ELECTRICAL SPECIFICATIONS..................................................................................636
16.1
Normal Operation Mode ......................................................................................................... 636
16.2
Flash Memory Programming Mode ....................................................................................... 658
CHAPTER 17 PACKAGE DRAWINGS .................................................................................................660