
User’s Manual U19780EJ2V0UD
8
CONTENTS
CHAPTER 1 OUTLINE ............................................................................................................................ 16
1.1 Features......................................................................................................................................... 16
1.2 Applications .................................................................................................................................. 17
1.3 Ordering Information.................................................................................................................... 17
1.4 Pin Configuration (Top View) ...................................................................................................... 18
1.4.1 78K0/KB2-A .................................................................................................................................... 18
1.4.2 78K0/KC2-A .................................................................................................................................... 20
1.5 Block Diagram .............................................................................................................................. 22
1.5.1 78K0/KB2-A .................................................................................................................................... 22
1.5.2 78K0/KC2-A .................................................................................................................................... 23
1.6 Outline of Functions..................................................................................................................... 24
CHAPTER 2 PIN FUNCTIONS ............................................................................................................... 25
2.1 Pin Function List .......................................................................................................................... 25
2.1.1 78K0/KB2-A .................................................................................................................................... 26
2.1.2 78K0/KC2-A .................................................................................................................................... 29
2.2 Description of Pin Functions ...................................................................................................... 34
2.2.1 P00 to P02 (port 0).......................................................................................................................... 34
2.2.2 P10 to P13 (port 1).......................................................................................................................... 35
2.2.3 P20 to P27 (port 2).......................................................................................................................... 36
2.2.4 P31 to P35 (port 3).......................................................................................................................... 37
2.2.5 P40 to P42 (port 4).......................................................................................................................... 38
2.2.6 P60, P61 (Port 6) ............................................................................................................................ 39
2.2.7 P70 to P75 (port 7).......................................................................................................................... 40
2.2.8 P80 to P83 (port 8).......................................................................................................................... 40
2.2.9 P120 to P124 (port 12).................................................................................................................... 41
2.2.10 AV
REF
, AV
REFM
, AV
REFP
, AV
DD
, AV
SS
, V
DD
, V
SS
.............................................................................. 42
2.2.11 RESET .......................................................................................................................................... 43
2.2.12 REGC............................................................................................................................................ 43
2.2.13 FLMD0 .......................................................................................................................................... 43
2.3 Pin I/O Circuits and Recommended Connection of Unused Pins ........................................... 44
CHAPTER 3 CPU ARCHITECTURE ...................................................................................................... 49
3.1 Memory Space .............................................................................................................................. 49
3.1.1 Internal program memory space ..................................................................................................... 52
3.1.2 Internal data memory space............................................................................................................ 54
3.1.3 Special function register (SFR) area ............................................................................................... 54
3.1.4 Data memory addressing ................................................................................................................ 54
3.2 Processor Registers..................................................................................................................... 57
3.2.1 Control registers.............................................................................................................................. 57
3.2.2 General-purpose registers .............................................................................................................. 60
3.2.3 Special function registers (SFRs).................................................................................................... 62
3.3 Instruction Address Addressing................................................................................................. 67