Contents
Contents ............................................................................................................................................................... 7
1.
Overview ..................................................................................................................................................... 28
1.1
Features ............................................................................................................................................................. 28
1.1.1
Applications ............................................................................................................................................. 28
1.1.2
Outline of Specifications .......................................................................................................................... 29
1.2
List of Products ................................................................................................................................................. 32
1.3
Block Diagram .................................................................................................................................................. 34
1.4
Pin Assignments ................................................................................................................................................ 35
1.5
Pin Functions..................................................................................................................................................... 49
2.
CPU ............................................................................................................................................................ 54
2.1
Features ............................................................................................................................................................. 54
2.2
Register Set of the CPU .................................................................................................................................... 55
2.2.1
General-Purpose Registers (R0 to R15) ................................................................................................... 56
2.2.2
Control Registers ...................................................................................................................................... 56
2.2.2.1
Interrupt Stack Pointer (ISP)/User Stack Pointer (USP) ..................................................................... 57
2.2.2.2
Interrupt Table Register (INTB) .......................................................................................................... 57
2.2.2.3
Program Counter (PC) ......................................................................................................................... 57
2.2.2.4
Processor Status Word (PSW) ............................................................................................................. 58
2.2.2.5
Backup PC (BPC) ................................................................................................................................ 60
2.2.2.6
Backup PSW (BPSW) ......................................................................................................................... 60
2.2.2.7
Fast Interrupt Vector Register (FINTV) .............................................................................................. 60
2.2.2.8
Floating-Point Status Word (FPSW) ................................................................................................... 61
2.2.2.9
Accumulator (ACC) ............................................................................................................................ 64
2.3
Processor Mode ................................................................................................................................................. 65
2.3.1
Supervisor Mode ...................................................................................................................................... 65
2.3.2
User Mode ................................................................................................................................................ 65
2.3.3
Privileged Instruction ............................................................................................................................... 65
2.3.4
Switching Between Processor Modes ...................................................................................................... 65
2.4
Data Types ........................................................................................................................................................ 66
2.4.1
Integer ...................................................................................................................................................... 66
2.4.2
Floating-Point........................................................................................................................................... 66
2.4.3
Bitwise Operations ................................................................................................................................... 67
2.4.4
Strings ...................................................................................................................................................... 67
2.5
Endian ............................................................................................................................................................... 68
2.5.1
Switching the Endian ............................................................................................................................... 68
2.5.2
Access to I/O Registers ............................................................................................................................ 72
2.5.3
Notes on Access to I/O Registers ............................................................................................................. 72
2.5.4
Data Arrangement .................................................................................................................................... 73