User’s Manual U16898EJ3V0UD
9
CONTENTS
CHAPTER 1 OVERVIEW.........................................................................................................................15
1.1 Features ......................................................................................................................................15
1.2 Application Fields ......................................................................................................................15
1.3 Ordering
Information .................................................................................................................16
1.4 Pin
Configuration (Top View) ...................................................................................................17
1.5 78K0S/Kx1+
Product Lineup.....................................................................................................18
1.6 Block
Diagram............................................................................................................................19
1.7 Functional
Outline .....................................................................................................................20
CHAPTER 2 PIN FUNCTIONS...............................................................................................................21
2.1 Pin
Function List........................................................................................................................21
2.2 Pin
Functions .............................................................................................................................23
2.2.1 P20
to
P23 (Port 2)...................................................................................................................... 23
2.2.2 P30,
P31,
and P34 (Port 3) ......................................................................................................... 23
2.2.3
P40 to P45 (Port 4)...................................................................................................................... 24
2.2.4 P121
to
P123 (Port 12)................................................................................................................ 24
2.2.5 P130
(Port 13)............................................................................................................................. 24
2.2.6
RESET ........................................................................................................................................ 24
2.2.7 X1 and X2 ................................................................................................................................... 25
2.2.8 AV
REF
........................................................................................................................................... 25
2.2.9 V
DD
.............................................................................................................................................. 25
2.2.10 V
SS
............................................................................................................................................... 25
2.3 Pin I/O Circuits and Connection of Unused Pins ...................................................................25
CHAPTER 3 CPU ARCHITECTURE......................................................................................................27
3.1
Memory Space............................................................................................................................27
3.1.1 Internal
program memory space.................................................................................................. 29
3.1.2 Internal
data memory space ........................................................................................................ 29
3.1.3 Special
function
register (SFR) area ........................................................................................... 30
3.1.4 Data
memory addressing ............................................................................................................ 30
3.2
Processor Registers ..................................................................................................................32
3.2.1 Control
registers .......................................................................................................................... 32
3.2.2 General-purpose registers........................................................................................................... 34
3.2.3 Special
function registers (SFRs) ................................................................................................ 35
3.3 Instruction
Address Addressing ..............................................................................................38
3.3.1 Relative addressing..................................................................................................................... 38
3.3.2 Immediate addressing ................................................................................................................. 39
3.3.3 Table
indirect addressing ............................................................................................................ 39
3.3.4 Register addressing .................................................................................................................... 40
3.4
Operand Address Addressing..................................................................................................41
3.4.1 Direct
addressing ........................................................................................................................ 41
3.4.2 Short
direct addressing ............................................................................................................... 42
3.4.3
Special function register (SFR) addressing ................................................................................. 43
3.4.4 Register addressing .................................................................................................................... 44
3.4.5 Register
indirect addressing ........................................................................................................ 45