6
µ
PD17062
CONTENTS
1. PINS ............................................................................................................................................. 11
1.1 PIN FUNCTIONS ............................................................................................................................. 11
1.2 EQUIVALENT CIRCUITS OF THE PINS ........................................................................................ 14
2. PROGRAM MEMORY (ROM) .................................................................................................... 18
2.1 CONFIGURATION OF PROGRAM MEMORY ............................................................................... 18
2.2 FUNCTIONS OF PROGRAM MEMORY ........................................................................................ 19
2.3 PROGRAM FLOW ........................................................................................................................... 19
2.4 BRANCHING A PROGRAM ............................................................................................................ 20
2.6 TABLE REFERENCE ........................................................................................................................ 24
2.7 NOTES ON USING THE BRANCH INSTRUCTION AND
SUBROUTINE CALL INSTRUCTION............................................................................................. 2 4
3. PROGRAM COUNTER (PC) ....................................................................................................... 25
4. STACK.......................................................................................................................................... 26
4.1 COMPONENTS................................................................................................................................26
4.2 STACK POINTER (SP) .................................................................................................................... 26
4.3 ADDRESS STACK REGISTERS (ASRs) ........................................................................................ 27
4.4 INTERRUPT STACK REGISTERS .................................................................................................. 27
5. DATA MEMORY (RAM) ............................................................................................................. 29
5.1 STRUCTURE OF DATA MEMORY ................................................................................................ 29
5.2 FUNCTIONS OF DATA MEMORY ................................................................................................. 34
5.3 NOTES ON USING DATA MEMORY ............................................................................................ 38
6. GENERAL-PURPOSE REGISTER (GR)...................................................................................... 40
6.1 STRUCTURE OF THE GENERAL-PURPOSE REGISTER ............................................................. 40
6.2 FUNCTION OF THE GENERAL-PURPOSE REGISTER ................................................................ 40
6.3 ADDRESS GENERATION FOR GENERAL-PURPOSE REGISTER AND
DATA MEMORY IN INDIVIDUAL INSTRUCTIONS ..................................................................... 42
6.4 NOTES ON USING THE GENERAL-PURPOSE REGISTER ......................................................... 46
7. ARITHMETIC LOGIC UNIT (ALU) BLOCK................................................................................ 4 8
7.1 OVERVIEW ...................................................................................................................................... 48
7.2 CONFIGURATION AND FUNCTIONS OF THE COMPONENTS OF THE ALU BLOCK ............ 4 9
7.3 ALU OPERATIONS ......................................................................................................................... 4 9
7.4 NOTES ON USING THE ALU ........................................................................................................ 53
8. SYSTEM REGISTER (SYSREG)................................................................................................. 54
8.1 ADDRESS REGISTER (AR) ............................................................................................................. 55
8.2 WINDOW REGISTER (WR) ............................................................................................................ 55
8.3 BANK REGISTER (BANK) .............................................................................................................. 5 6
8.4 MEMORY POINTER ENABLE FLAG (MPE) .................................................................................. 56