Datasheet

CONTENTS
CHAPTER 1 INTRODUCTION....................................................................................................................1
1.1 General .......................................................................................................................................1
1.2 Features......................................................................................................................................3
1.3 Application Fields......................................................................................................................4
1.4 Ordering Information.................................................................................................................4
1.5 Pin Configuration (Top View) ...................................................................................................5
1.6 Function Block Configuration ..................................................................................................7
1.6.1 Internal block diagram..................................................................................................................7
1.6.2 Internal units ................................................................................................................................8
CHAPTER 2 PIN FUNCTIONS ............................................................................................................... 11
2.1 List of Pin Functions .............................................................................................................. 11
2.2 Pin States ................................................................................................................................ 19
2.3 Pin I/O Circuit Types, I/O Buffer Power Supplies, and Connection of Unused Pins ....... 20
2.4 Cautions .................................................................................................................................. 24
CHAPTER 3 CPU FUNCTION ................................................................................................................ 25
3.1 Features................................................................................................................................... 25
3.2 CPU Register Set .................................................................................................................... 26
3.2.1 Program register set ..................................................................................................................27
3.2.2 System register set ....................................................................................................................28
3.3 Operation Modes .................................................................................................................... 34
3.3.1 Specifying operation mode.........................................................................................................34
3.4 Address Space........................................................................................................................ 35
3.4.1 CPU address space ...................................................................................................................35
3.4.2 Wraparound of CPU address space ..........................................................................................36
3.4.3 Memory map..............................................................................................................................37
3.4.4 Areas .........................................................................................................................................39
3.4.5 Recommended use of address space........................................................................................44
3.4.6 Peripheral I/O registers ..............................................................................................................47
3.4.7 Special registers ........................................................................................................................57
3.4.8 Cautions.....................................................................................................................................61
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 64
4.1 Features................................................................................................................................... 64
4.2 Basic Port Configuration ....................................................................................................... 64
4.3 Port Configuration .................................................................................................................. 65
4.3.1 Port 0 .........................................................................................................................................70
4.3.2 Port 1 .........................................................................................................................................73
4.3.3 Port 3 .........................................................................................................................................74
4.3.4 Port 4 .........................................................................................................................................80
4.3.5 Port 5 .........................................................................................................................................83
4.3.6 Port 7 .........................................................................................................................................87
4.3.7 Port 9 .........................................................................................................................................89
4.3.8 Port CM......................................................................................................................................97
4.3.9 Port CT ......................................................................................................................................99