38
CHAPTER 2 CPU
■
General-purpose Registers
The F
2
MC-16LX general-purpose registers are located from addresses "000180
H
" to "00037F
H
" (maximum
configuration) of main storage. The register bank pointer (RP) indicates which of the above addresses are
currently being used as a register bank. Each bank has the following three types of registers. These registers
are mutually dependent as described in Figure 2.7-2.
•
R0 to R7:
8-bit general-purpose register
•
RW0 to RW7: 16-bit general-purpose register
•
RL0 to RL3:
32-bit general-purpose register
Figure 2.7-2 General-purpose Registers
The relationship between the high-order and low-order bytes of a byte or word register is expressed as
follows:
RW
(i+4)
= R
(i
×
2+1)
×
256+R
(i
×
2)
[i=0 to 3]
The relationship between the high-order and low-order bytes of RLi and RWi can be expressed as follows:
RL
(i)
= RW
(i
×
2+1)
×
65536+RW
(i
×
2)
[i=0 to 3]
000180 H + RP
*
10 H
MSB
LSB
RW0
RW1
RW2
RW3
R1 R0
R3
R5
R7
R2
R4
R6
RW4
RW5
RW6
RW7
RL0
RL1
RL2
RL3
16bits
First address of
Low-order
High-order
general-purpose register
Содержание MB90390 Series
Страница 2: ......
Страница 4: ......
Страница 17: ...xiii APPENDIX D List of Interrupt Vectors 690 INDEX 695 ...
Страница 18: ...xiv ...
Страница 132: ...104 CHAPTER 5 CLOCKS ...
Страница 152: ...124 CHAPTER 6 CLOCK MODULATOR ...
Страница 210: ...182 CHAPTER 11 TIME BASE TIMER ...
Страница 218: ...190 CHAPTER 12 WATCHDOG TIMER ...
Страница 264: ...236 CHAPTER 14 16 BIT RELOAD TIMER WITH EVENT COUNT FUNCTION ...
Страница 274: ...246 CHAPTER 15 WATCH TIMER ...
Страница 306: ...278 CHAPTER 17 DTP EXTERNAL INTERRUPTS ...
Страница 338: ...310 CHAPTER 18 8 10 BIT A D CONVERTER ...
Страница 364: ...336 CHAPTER 19 UART0 UART1 ...
Страница 398: ...370 CHAPTER 20 UART2 UART3 Figure 20 5 2 ORE Set Timing Receive data RDRF ORE ...
Страница 432: ...404 CHAPTER 20 UART2 UART3 ...
Страница 482: ...454 CHAPTER 22 SERIAL I O ...
Страница 560: ...532 CHAPTER 24 STEPPING MOTOR CONTROLLER ...
Страница 582: ...554 CHAPTER 27 ROM MIRRORING MODULE ...
Страница 632: ...604 CHAPTER 29 EXAMPLES OF SERIAL PROGRAMMING CONNECTION ...
Страница 722: ...694 APPENDIX ...
Страница 723: ...695 INDEX The index follows on the next page This is listed in alphabetic order ...
Страница 740: ......