Datasheet
CHAPTER 25 FLASH MEMORY .......................................................................................................... 699
25.1 Internal Memory Size Switching Register.............................................................................. 699
25.2 Writing with Flash Memory Programmer ............................................................................... 700
25.3 Programming Environment ..................................................................................................... 701
25.4 Connection of Pins on Board.................................................................................................. 702
25.4.1 TOOL pins................................................................................................................................... 702
25.4.2 RESET pin .................................................................................................................................. 703
25.4.3 Port pins ...................................................................................................................................... 703
25.4.4 REGC pin .................................................................................................................................... 703
25.4.5 Other signal pins ......................................................................................................................... 703
25.4.6 Power supply............................................................................................................................... 703
25.4.7 On-board writing when connecting crystal/ceramic resonator ..................................................... 704
25.5 Programming Method .............................................................................................................. 705
25.5.1 Controlling flash memory............................................................................................................. 705
25.5.2 Flash memory programming mode.............................................................................................. 705
25.5.3 Communication commands......................................................................................................... 705
25.6 Security Settings ...................................................................................................................... 707
25.7 Processing Time for Each Command When PG-FP5 Is Used (Reference)......................... 709
25.8 Flash Memory Programming by Self Programming ............................................................. 712
25.8.1 Register controlling self programming mode ............................................................................... 713
25.8.2 Flow of self programming (Rewriting Flash Memory) .................................................................. 713
25.8.3 Boot swap function...................................................................................................................... 715
25.9 Creating ROM Code to Place Order for Previously Written Product .................................. 717
25.9.1 Procedure for using ROM code to place an order ....................................................................... 717
CHAPTER 26 ON-CHIP DEBUG FUNCTION ..................................................................................... 718
26.1 Connecting QB-MINI2 to 78K0/Kx2-L Microcontrollers ........................................................ 718
26.2 On-Chip Debug Security ID ..................................................................................................... 721
26.3 Securing of User Resources ................................................................................................... 722
CHAPTER 27 INSTRUCTION SET....................................................................................................... 723
27.1 Conventions Used in Operation List ...................................................................................... 723
27.1.1 Operand identifiers and specification methods............................................................................ 723
27.1.2 Description of operation column.................................................................................................. 724
27.1.3 Description of flag operation column ........................................................................................... 724
27.2 Operation List ........................................................................................................................... 725
27.3 Instructions Listed by Addressing Type................................................................................ 733
CHAPTER 28 ELECTRICAL SPECIFICATIONS ................................................................................. 736
CHAPTER 29 PACKAGE DRAWINGS ................................................................................................ 769
29.1 78K0/KY2-L................................................................................................................................ 769
29.2 78K0/KA2-L ............................................................................................................................... 770
29.3 78K0/KB2-L ............................................................................................................................... 773
29.4 78K0/KC2-L ............................................................................................................................... 774