
User’s Manual U16541EJ4V0UD
10
CONTENTS
CHAPTER 1 INTRODUCTION..................................................................................................................22
1.1
General .....................................................................................................................................22
1.2
Features....................................................................................................................................26
1.3
Application Fields....................................................................................................................27
1.4
Ordering Information...............................................................................................................28
1.5
Pin Configuration (Top View) .................................................................................................30
1.6
Function Block Configuration ................................................................................................35
1.6.1
Internal block diagram................................................................................................................35
1.6.2
Internal units ..............................................................................................................................36
CHAPTER 2 PIN FUNCTIONS ................................................................................................................39
2.1
List of Pin Functions ...............................................................................................................39
2.2
Pin States .................................................................................................................................49
2.3
Pin I/O Circuit Types, I/O Buffer Power Supplies, and Connection of Unused Pins ........50
2.4
Cautions ...................................................................................................................................54
CHAPTER 3 CPU FUNCTION .................................................................................................................55
3.1
Features....................................................................................................................................55
3.2
CPU Register Set .....................................................................................................................56
3.2.1
Program register set ..................................................................................................................57
3.2.2
System register set ....................................................................................................................58
3.3
Operation Modes .....................................................................................................................64
3.3.1
Specifying operation mode ........................................................................................................64
3.4
Address Space.........................................................................................................................65
3.4.1
CPU address space ...................................................................................................................65
3.4.2
Wraparound of CPU address space ..........................................................................................66
3.4.3
Memory map..............................................................................................................................67
3.4.4
Areas .........................................................................................................................................69
3.4.5
Recommended use of address space........................................................................................77
3.4.6
Peripheral I/O registers ..............................................................................................................80
3.4.7
Programmable peripheral I/O registers ......................................................................................91
3.4.8
Special registers ........................................................................................................................92
3.4.9
Cautions.....................................................................................................................................96
CHAPTER 4 PORT FUNCTIONS ......................................................................................................... 101
4.1
Features................................................................................................................................. 101
4.2
Basic Port Configuration ..................................................................................................... 101
4.3
Port Configuration ................................................................................................................ 102
4.3.1
Port 0 .......................................................................................................................................107
4.3.2
Port 1 .......................................................................................................................................110
4.3.3
Port 3 .......................................................................................................................................111
4.3.4
Port 4 .......................................................................................................................................118
4.3.5
Port 5 .......................................................................................................................................121
4.3.6
Port 7 .......................................................................................................................................125