Download RL78,78K0R Coding - Renesas Electronics

Transcript
CubeSuite+ V2.01.00
CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICATIONS
(3) ES and CS registers
The ES and CS registers were added for the RL78 family, 78K0R microcontrollers. The ES register specifies the
high-order address byte for data instructions, and the CS register specifies the high-order address byte for branch
instructions. See "(2) Addressing of data addresses" for more information about how to use the ES register, and
see "(1) Addressing of instruction addresses" for more information about how to use the CS register.
On reset, ES is set to 0FH and CS is set to 00H
Figure 4-14. Configurations of ES and CS Registers
ES
CS
7
6
5
4
3
2
1
0
0
0
0
0
ES3
ES2
ES1
ES0
7
6
5
4
3
2
1
0
0
0
0
0
CS3
CP2
CP1
CP0
(4) Special function registers (SFR)
The following table lists the fixed-address SFRs of RL78 family, 78K0R microcontrollers.
Table 4-26. List of Fixed-address SFRs
Address
Register Name
FFFF8H
SPL
FFFF9H
SPH
FFFFAH
PSW
FFFFBH
Reserve
FFFFCH
CS
FFFFDH
ES
FFFFEH
PMC
FFFFFH
MEM
(a) Processor mode control register (PMC)
This is an 8-bit register for control of processor modes. For details, see "(2) Internal program memory space".
On reset, PMC is set to 00H.
Figure 4-15. Configuration of Processor Mode Control Register
Address:FFFFEH On reset:00H R/W
Symbol
7
6
5
4
3
2
1
0
PMC
0
0
0
0
0
0
0
MAA
R20UT2774EJ0100 Rev.1.00
Dec 01, 2013
Page 423 of 872