![](http://datasheet.mmic.net.cn/Renesas-Electronics-America/UPD78F1156AGC-GAD-AX_datasheet_99856/UPD78F1156AGC-GAD-AX_17.png)
User’s Manual U17893EJ8V0UD
15
CHAPTER 22 REGULATOR ................................................................................................................. 674
22.1 Regulator Overview ................................................................................................................. 674
22.2 Registers Controlling Regulator............................................................................................. 674
CHAPTER 23 OPTION BYTE............................................................................................................... 676
23.1 Functions of Option Bytes ...................................................................................................... 676
23.1.1 User option byte (000C0H to 000C2H/010C0H to 010C2H) .........................................................676
23.1.2 On-chip debug option byte (000C3H/ 010C3H) ............................................................................677
23.2 Format of User Option Byte .................................................................................................... 677
23.3 Format of On-chip Debug Option Byte .................................................................................. 679
23.4 Setting of Option Byte ............................................................................................................. 680
CHAPTER 24 FLASH MEMORY.......................................................................................................... 681
24.1 Writing with Flash Memory Programmer............................................................................... 681
24.2 Programming Environment..................................................................................................... 684
24.3 Communication Mode.............................................................................................................. 684
24.4 Connection of Pins on Board.................................................................................................. 685
24.4.1 FLMD0 pin ....................................................................................................................................685
24.4.2 TOOL0 pin ....................................................................................................................................686
24.4.3 RESET pin ....................................................................................................................................686
24.4.4 Port pins........................................................................................................................................687
24.4.5 REGC pin......................................................................................................................................687
24.4.6 X1 and X2 pins..............................................................................................................................687
24.4.7 Power supply ................................................................................................................................687
24.5 Registers that Control Flash Memory .................................................................................... 687
24.6 Programming Method .............................................................................................................. 688
24.6.1 Controlling flash memory ..............................................................................................................688
24.6.2 Flash memory programming mode ...............................................................................................688
24.6.3 Selecting communication mode ....................................................................................................689
24.6.4 Communication commands...........................................................................................................689
24.7 Security Settings ...................................................................................................................... 691
24.8 Processing Time of Each Command When Using PG-FP4 or PG-FP5 (Reference Values) 693
24.9 Flash Memory Programming by Self-Programming ............................................................. 694
24.9.1 Boot swap function........................................................................................................................696
24.9.2 Flash shield window function ........................................................................................................698
CHAPTER 25 ON-CHIP DEBUG FUNCTION ..................................................................................... 699
25.1 Connecting QB-MINI2 to 78K0R/KF3...................................................................................... 699
25.2 On-Chip Debug Security ID ..................................................................................................... 700
25.3 Securing of user resources..................................................................................................... 700
CHAPTER 26 BCD CORRECTION CIRCUIT ..................................................................................... 702
26.1 BCD Correction Circuit Function............................................................................................ 702
26.2 Registers Used by BCD Correction Circuit ........................................................................... 702
26.3 BCD Correction Circuit Operation.......................................................................................... 703