User’s Manual U17716EJ2V0UD
8
CONTENTS
CHAPTER 1 INTRODUCTION................................................................................................................. 14
1.1
General .......................................................................................................................................14
1.2
Features .....................................................................................................................................15
1.3
Applications...............................................................................................................................16
1.4
Ordering Information ................................................................................................................16
1.5
Pin Configuration ......................................................................................................................17
1.6
Function Blocks ........................................................................................................................19
CHAPTER 2 PIN FUNCTIONS ............................................................................................................... 22
2.1
List of Pin Functions.................................................................................................................22
2.2
Pin I/O Circuits and Recommended Connection of Unused Pins........................................26
2.3
Pin I/O Circuits...........................................................................................................................28
CHAPTER 3 CPU FUNCTION ................................................................................................................ 29
3.1
Features .....................................................................................................................................29
3.2
CPU Register Set.......................................................................................................................30
3.2.1
Program register set .....................................................................................................................31
3.2.2
System register set .......................................................................................................................32
3.3
Operating Modes .......................................................................................................................38
3.4
Address Space ..........................................................................................................................39
3.4.1
CPU address space ......................................................................................................................39
3.4.2
Wraparound of CPU address space .............................................................................................40
3.4.3
Memory map.................................................................................................................................41
3.4.4
Areas ............................................................................................................................................43
3.4.5
Recommended use of address space...........................................................................................47
3.4.6
On-chip peripheral I/O registers ....................................................................................................50
3.4.7
Special registers ...........................................................................................................................56
3.4.8
System wait control register (VSWC)............................................................................................61
CHAPTER 4 PORT FUNCTIONS ........................................................................................................... 62
4.1
Features .....................................................................................................................................62
4.2
Basic Port Configuration..........................................................................................................62
4.3
Port Configuration.....................................................................................................................63
4.3.1
Port 0 ............................................................................................................................................67
4.3.2
Port 1 ............................................................................................................................................73
4.3.3
Port 2 ............................................................................................................................................85
4.3.4
Port 3 ............................................................................................................................................91
4.3.5
Port 4 ............................................................................................................................................98
4.3.6
Port DL........................................................................................................................................105
4.4
Output Data and Read Value of Port for Each Setting ....................................................... 108
4.5
Port Register Settings When Alternate Function Is Used.................................................. 113
4.6
Noise Eliminator ..................................................................................................................... 117
4.7
Cautions .................................................................................................................................. 119
4.7.1
Cautions on setting port pins ......................................................................................................119