Datasheet
Index-14 
25.4 Setting of Option Byte.............................................................................................................. 804 
CHAPTER 26 FLASH MEMORY .......................................................................................................... 805 
26.1 Writing to Flash Memory by Using Flash Memory Programmer ......................................... 807 
26.1.1 Programming Environment ........................................................................................................... 809 
26.1.2 Communication Mode .................................................................................................................. 809 
26.2 Writing to Flash Memory by Using External Device (that Incorporates UART) ................. 810 
26.2.1 Programming Environment ........................................................................................................... 810 
26.2.2 Communication Mode .................................................................................................................. 811 
26.3 Connection of Pins on Board .................................................................................................. 812 
26.3.1 P40/TOOL0 pin ............................................................................................................................ 812 
26.3.2 RESET pin .................................................................................................................................... 812 
26.3.3 Port pins ....................................................................................................................................... 813 
26.3.4 REGC pin ..................................................................................................................................... 813 
26.3.5 X1 and X2 pins ............................................................................................................................. 813 
26.3.6 Power supply ................................................................................................................................ 813 
26.4 Serial Programming Method ................................................................................................... 814 
26.4.1 Serial programming procedure ..................................................................................................... 814 
26.4.2 Flash memory programming mode ............................................................................................... 815 
26.4.3 Selecting communication mode .................................................................................................... 817 
26.4.4 Communication commands .......................................................................................................... 817 
26.5 Processing Time for Each Command When PG-FP5 Is in Use (Reference Value) ............ 819 
26.6 Self-Programming .................................................................................................................... 820 
26.6.1 Self-programming procedure ........................................................................................................ 821 
26.6.2 Flash shield window function ........................................................................................................ 822 
26.7 Security Settings ...................................................................................................................... 823 
26.8 Data Flash ................................................................................................................................. 825 
26.8.1 Data flash overview ...................................................................................................................... 825 
26.8.2 Register controlling data flash memory ........................................................................................ 825 
26.8.2.1 Data flash control register (DFLCTL) .............................................................................. 825 
26.8.3 Procedure for accessing data flash memory ................................................................................ 826 
CHAPTER 27 ON-CHIP  DEBUG FUNCTION ..................................................................................... 827 
27.1 Connecting E1 On-chip Debugging Emulator ....................................................................... 827 
27.2 On-Chip Debug Security ID ..................................................................................................... 828 
27.3 Securing of User Resources ................................................................................................... 828 
CHAPTER 28 BCD CORRECTION CIRCUIT ..................................................................................... 830 
28.1 BCD Correction Circuit Function ............................................................................................ 830 
28.2 Registers Used by BCD Correction Circuit ........................................................................... 830 
28.2.1 BCD correction result register (BCDADJ) ..................................................................................... 830 










