The µPD784224 and 784225 are products of the µPD784225 Subseries in the 78K/IV Series. Besides a highspeed and high performance CPU, these controllers have ROM, RAM, I/O ports, 8-bit resolution A/D and D/A
converters, timers, serial interfaces, a real-time output port, interrupt functions, and various other peripheral
hardware.
µ
PD784224Y and 784225Y are based on the µPD784225 Subseries with the addition of a multimaster-
The
supporting I2C bus interface.
Flash memory versions, the µPD78F4225 and 78F4225Y, which replace the internal ROM of the mask ROM
version with flash memory, and various development tools are also available.
The functions are explained in detail in the following user’s manuals. Be sure to read this manual when
designing your system.
6.1Memory Space ...................................................................................................................................... 2 0
8.4Macro Service ....................................................................................................................................... 49
8.5Application Example of Macro Service............................................................................................. 50
Data Sheet U12376EJ1V0DS00
5
µ
PD784224, 784225, 784224Y, 784225Y
9.LOCAL BUS INTERFACE ............................................................................................................. 51
APPENDIX A. DEVELOPMENT TOOLS ............................................................................................ 85
APPENDIX B. RELATED DOCUMENTS ............................................................................................ 88
6
Data Sheet U12376EJ1V0DS00
µ
PD784224, 784225, 784224Y, 784225Y
1. DIFFERENCES AMONG MODELS IN µPD784225, 784225Y SUBSERIES
The only difference among the µPD784224 and 784225 lies in the internal memory capacity.
The µPD784224Y and 784225Y are based on the µPD784224 and 784225 respectively, with the addition of an
I2C bus control function.
µ
PD78F4225 and 78F4225Y are provided with a 128-Kbyte flash memory instead of the mask ROM of the
The
above models. These differences are summarized in Table 1-1.
Supply voltageVDD = 1.8 to 5.5 VVDD = 1.9 to 5.5 V
ElectricalRefer to the data sheet for each device.
specifications
Recommended
soldering
conditions
TEST pinProvidedNone
VPP pinNoneProvided
Note
µ
PD784224,
µ
PD784224Y
µ
PD784225,
µ
PD784225Y
µ
PD78F4225,
µ
PD78F4225Y
Note The internal flash memory capacity and internal RAM capacity can be changed using the internal memory
size switching register (IMS).
CautionThere are differences in noise immunity and noise radiation between the flash memory and mask
ROM versions. When pre-producing an application set with the flash memory version and then
mass-producing it with the mask ROM version, be sure to conduct sufficient evaluations on the
commercial samples (not engineering samples) of the mask ROM version.
Data Sheet U12376EJ1V0DS00
7
µ
PD784224, 784225, 784224Y, 784225Y
2. MAJOR DIFFERENCES BETWEEN µPD784216Y SUBSERIES AND µPD780058Y SUBSERIES
Series Name
ItemSubseries
CPU16-bit CPU8-bit CPU
MinimumWith main system160 ns (at 12.5 MHz)400 ns (at 5.0 MHz)
Notes 1. The SCL0 and SDA0 pins are available in µPD784225Y Subseries only.
2. Connect the TEST pin to V
SS0 directly or via a pull-down resistor. For the pull-down connection, use
of a resistor with a resistance ranging from 470 Ω to 10 kΩ is recommended.
Caution Connect the AV
SS pin to VSS0.
Remark When using in applications where noise from inside the microcomputer has to be reduced, it is
recommended to take countermeasures against noise such as supplying power to V
DD0 and VDD1
independently, and connecting VSS0 and VSS1 to different ground lines.
Data Sheet U12376EJ1V0DS00
9
µ
PD784224, 784225, 784224Y, 784225Y
A8 to A19: Address Bus
AD0 to AD7: Address/Data Bus
ANI0 to ANI7: Analog Input
ANO0, ANO1: Analog Output
ASCK1, ASCK2: Asynchronous Serial Clock
ASTB: Address Strobe
DD: Analog Power Supply
AV
AVREF1: Analog Reference Voltage
SS: Analog Ground
AV
BUZ: Buzzer Clock
EXA: External Access Status Output
INTP0 to INTP5: Interrupt from Peripherals
NMI: Non-maskable Interrupt
P00 to P05: Port0
P10 to P17: Port1
P20 to P27: Port2
P30 to P37: Port3
P40 to P47: Port4
P50 to P57: Port5
P60 to P67: Port6
P70 to P72: Port7
P120 to P127: Port12
P130, P131: Port13
PCL: Programmable Clock
RD: Read Strobe
RESET: Reset
RTP0 to RTP7: Real-time Output Port
RxD1, RxD2: Receive Data
SCK0 to SCK2: Serial Clock
SCL0
SDA0
Note
Note
: Serial Clock
: Serial Data
SI0 to SI2: Serial Input
SO0 to SO2: Serial Output
TEST: Test
TI00, TI01, TI1, TI2 : Timer Input
TO0 to TO2: Timer Output
TxD1, TxD2: Transmit Data
DD0, VDD1: Power Supply
V
VSS0, VSS1: Ground
WAIT: Wait
WR: Write Strobe
X1, X2: Crystal (Main System Clock)
XT1, XT2: Crystal (Subsystem Clock)
Note The SCL0 and SDA0 pins are available in
µ
PD784225Y Subseries only.
10
Data Sheet U12376EJ1V0DS00
4. BLOCK DIAGRAM
µ
PD784224, 784225, 784224Y, 784225Y
INTP2/NMI
INTP0, INTP1,
INTP3 to INTP5
TI00
TI01
TO0
TI1
TO1
TI2
TO2
RTP0 to RTP7
NMI/INTP2
ANO0
ANO1
AV
REF1
AV
ANI0 to ANI7
AV
AV
P03/INTP3
PCL
BUZ
PROGRAMMABLE
INTERRUPT
CONTROLLER
TIMER/EVENT
COUNTER
(16 BITS)
TIMER/EVENT
COUNTER1
(8 BITS)
TIMER/EVENT
COUNTER2
(8 BITS)
TIMER/COUNTER5
(8 BITS)
TIMER/COUNTER6
(8 BITS)
78K/IV
CPU CORE
UART/IOE1
BAUD-RATE
GENERATOR
UART/IOE2
BAUD-RATE
GENERATOR
CLOCKED
SERIAL
INTERFACE
BUS I/F
ROM
PORT0
RxD1/SI1
TxD1/SO1
ASCK1/SCK1
RxD2/SI2
TxD2/SO2
ASCK2/SCK2
SI0/SDA0
Note
SO0
SCK0/SCL0
AD0 to AD7
A8 to A15
A16 to A19
RD
WR
WAIT
ASTB
EXA
P00 to P05
Note
WATCH TIMER
PORT1
PORT2
WATCHDOG TIMER
RAM
REAL-TIME
OUTPUT PORT
PORT3
PORT4
PORT5
PORT6
D/A
CONVERTER
SS
DD
SS
A/D
CONVERTER
PORT7
PORT12
PORT13
CLOCK OUTPUT
CONTROL
SYSTEM CONTROL
P10 to P17
P20 to P27
P30 to P37
P40 to P47
P50 to P57
P60 to P67
P70 to P72
P120 to P127
P130, P131
RESET
X1
X2
XT1
BUZZER OUTPUT
XT2
V
DD0
V
SS0
, V
, V
DD1
SS1
TEST
Note This function supports the I2C bus interface and is available in µPD784225Y Subseries only.
Remark The internal ROM and RAM capacities differ depending on the model.
Data Sheet U12376EJ1V0DS00
11
µ
PD784224, 784225, 784224Y, 784225Y
5. PIN FUNCTION
5.1 Port Pins (1/2)
Pin NameI/OAlternate FunctionFunction
P00I/OINTP0
P01INTP1
P02INTP2/NM1
P03INTP3
P04INTP4
P05INTP5
P10 to P17InputANI0 to ANI7
Port 0 (P0):
• 6-bit I/O port
• Can be set in input or output mode bit-wise.
• Pins set in input mode can be connected to internal pull-up
resistors by software bit-wise.
• All pins set in input mode can be connected to internal pull-up
resistors by software.
Port 7 (P7):
• 3-bit I/O port
• Can be set in input or output mode bit-wise.
• Pins set in input mode can be connected to internal pull-up
resistor by software bit-wise.
P120 to P127I/ORTP0 to RTP7Port 12 (P12):
• 8-bit I/O port
• Can be set in input or output mode bit-wise.
• Pins set in input mode can be connected to internal pull-up
resistor by software bit-wise.
P130, P131I/OANO0, ANO1Port 13 (P13):
• 2-bit I/O port
• Can be set in input or output mode bit-wise.
Data Sheet U12376EJ1V0DS00
13
µ
PD784224, 784225, 784224Y, 784225Y
5.2 Pins Other Than Port Pins (1/2)
Pin NameI/OAlternate FunctionFunction
TI00InputP35External count clock input to 16-bit timer register
TI01P36Capture trigger signal input to capture/compare register 00
TI1P33External count clock input to 8-bit timer register 1
TI2P34External count clock input to 8-bit timer register 2
TO0OutputP3016-bit timer output (shared by 14-bit PWM output)
TO1P318-bit timer output (shared by 8-bit PWM output)
TO2P32
RxD1InputP20/SI1Serial data input (UART1)
RxD2P70/SI2Serial data input (UART2)
TxD1OutputP21/SO1Serial data output (UART1)
TxD2P71/SO2Serial data output (UART2)
ASCK1IntputP22/SCK1Baud rate clock input (UART1)
ASCK2P72/SCK2Baud rate clock input (UART2)
SI0InputP25/SDA0
SI1P20/RxD1Serial data input (3-wire serial clock I/O1)
SI2P70/RxD2Serial data input (3-wire serial clock I/O2)
SO0OutputP26Serial data output (3-wire serial I/O0)
SO1P21/TxD1Serial data output (3-wire serial I/O1)
SO2P71/TxD2Serial data output (3-wire serial I/O2)
Note
SDA0
SCK0I/OP27/SCL0
SCK1P22/ASCK1Serial clock input/output (3-wire serial I/O1)
SCK2P72/ASCK2Serial clock input/output (3-wire serial I/O2)
Note
SCL0
NMIInputP02/INTP2Non-maskable interrupt request input
INTP0P00External interrupt request input
INTP1P01
INTP2P02/NMI
INTP3P03
INTP4P04
INTP5P05
PCLOutputP23Clock output (for trimming main system clock and subsystem clock)
BUZOutputP24Buzzer output
RTP0 to RTP7
AD0 to AD7I/OP40 to P47Low-order address/data bus when external memory is connected
A8 to A15OutputP50 to P57Middle-order address bus when external memory is connected
A16 to A19P60 to P63High-order address bus when external memory is connected
I/OP25/SI0Serial data input/output (I2C bus)
P27/SCK0Serial clock input/output (I2C bus)
OutputP120 to P127Real-time output port that outputs data in synchronization with
Note
Note
Serial data input (3-wire serial clock I/O0)
Serial clock input/output (3-wire serial I/O0)
trigger
Note This function is available in µPD784255Y Subseries only.
14
Data Sheet U12376EJ1V0DS00
µ
PD784224, 784225, 784224Y, 784225Y
5.2 Pins Other Than Port Pins (2/2)
Pin NameI/OAlternate FunctionFunction
RDOutputP64Strobe signal output for read operation of external memory
WRP65Strobe signal output for write operation of external memory
WAITInputP66To insert wait state(s) when external memory is accessed
ASTBOutputP67Strobe output to externally latch address information output to ports
4 to 6 to access external memory
EXAOutputP37External access status output
RESETInput−System reset input
X1Input−To connect main system clock oscillation crystal
X2−
XT1Input−To connect subsystem clock oscillation crystal
XT2−
ANI0 to ANI7InputP10 to P17Analog voltage input for A/D converter
ANO0, ANO1OutputP130, P131Analog voltage output for D/A converter
AVREF1−−To apply reference voltage for D/A converter
AVDDPositive power supply for A/D converter. Connected to VDD0.
AVSSGND for A/D converter and D/A converter. Connected to VSS0.
VDD0Positive power supply for port block
VSS0GND potential for port block
VDD1Positive power supply (except port block)
VSS1GND potential (except port block)
TESTConnect this pin to VSS0 directly or via pull-down resistor. For the
pull-down connection, use of a resistor with a resistance ranging
from 470 Ω to 10 kΩ is recommended.
Data Sheet U12376EJ1V0DS00
15
µ
PD784224, 784225, 784224Y, 784225Y
5.3 I/O Circuit Type of Respective Pins and Recommended Connections of Unused Pins
Table 5-1 shows symbols indicating the I/O circuit types of the respective pins and the recommended connection
of unused pins.
For the circuit diagram of each type of I/O circuit, refer to Figure 5-1.
Table 5-1. I/O Circuit Type of Respective Pins and Recommended Connections of Unused Pins (1/2)
Pin NameI/O Circuit TypeI/ORecommended Connections of Unused Pins
P00/INTP08-KI/OInput : Individually connected to VSS0 via resistor
P01/INTP1
P02/INTP2/NMI
P03/INTP3 to P05/INTP5
P10/ANI0 to P17/ANI79InputConnected to VSS0 or VDD0
P20/RxD1/SI110-II/OInput : Individually connected to VSS0 via resistor
P21/TxD1/SO110-J
P22/ASCK1/SCK110-I
P23/PCL10-J
P24/BUZ
P25/SDA0
P26/SO010-J
P27/SCL0
P30/TO0 to P32/TO28-M
P33/TI1, P34/TI28-K
P35/TI00, P36/TI018-L
P37/EXA8-M
P40/AD0 to P47/AD75-H
P50/A8 to P57/A15
P60/A16 to P63/A19
P64/RD
P65/WR
P66/WAIT
P67/ASTB
P70/RxD2/SI28-K
P71/TxD2/SO28-L
P72/ASCK2/SCK28-K
Note
/SI010-I
Note
/SCK010-I
Output: Open
Output: Open
Note This function is available in µPD784255Y Subseries only.
Remark Because the circuit type numbers are standardized among the 78K Series products, they are not
sequential in some models (i.e., some circuits are not provided).
16
Data Sheet U12376EJ1V0DS00
µ
PD784224, 784225, 784224Y, 784225Y
Table 5-1. I/O Circuit Type of Respective Pins and Recommended Connections of Unused Pins (2/2)
Pin NameI/O Circuit TypeI/ORecommended Connections of Unused Pins
P120/RTP0 to P127/RTP78-KI/OInput : Individually connected to VSS0 via resistor
P130/ANO0, P131/ANO112-D
RESET2-GInput−
XT116Connected to VSS0
XT2−Open
AVREF1−Connected to VDD0
AVDD
AVSSConnected to VSS0
TEST/VPP
Note
Output: Open
Directly connected to VSS0
Note VPP pin is available in µPD78F4225, 78F4255Y only.
Remark Because the circuit type numbers are standardized among the 78K Series products, they are not
sequential in some models (i.e., some circuits are not provided).
Data Sheet U12376EJ1V0DS00
17
µ
PD784224, 784225, 784224Y, 784225Y
Figure 5-1. Types of Pin I/O Circuits (1/2)
Type 2-G
IN
Schmitt trigger input with hysteresis characteristics
V
Type 5-H
pullup
enable
data
output
disable
V
SS0
DD0
P-ch
DD0
V
P-ch
N-ch
input
enable
IN/OUT
Type 8-M
pullup
enable
data
output
disable
input
enable
Type 9
IN
P-ch
N-ch
V
V
DD0
P-ch
N-ch
V
SS0
Comparator
+
−
V
REF
(threshold voltage)
DD0
P-ch
IN/OUT
input
enable
Type 8-K
pullup
enable
data
output
disable
Type 8-L
pullup
enable
data
open drain
output disable
V
DD0
Type 10-I
pullup
P-ch
DD0
V
P-ch
IN/OUT
N-ch
V
SS0
V
DD0
P-ch
DD0
V
P-ch
enable
data
open drain
output disable
Type 10-J
pullup
enable
data
V
IN/OUT
N-ch
V
SS0
open drain
output disable
V
SS0
SS0
V
DD0
P-ch
DD0
V
P-ch
IN/OUT
N-ch
V
DD0
P-ch
DD0
V
P-ch
IN/OUT
N-ch
18
Data Sheet U12376EJ1V0DS00
Type 12-D
data
output
disable
input
enable
Type 16
Analog output
voltage
feedback
cut-off
P-ch
VSS0
P-ch
N-ch
µ
PD784224, 784225, 784224Y, 784225Y
Figure 5-1. Types of Pin I/O Circuits (2/2)
V
DD0
P-ch
IN/OUT
N-ch
VSS0
XT1XT2
Data Sheet U12376EJ1V0DS00
19
µ
PD784224, 784225, 784224Y, 784225Y
6. CPU ARCHITECTURE
6.1 Memory Space
A memory space of 1 Mbyte can be accessed. Mapping of the internal data area (special function registers and
internal RAM) can be specified the LOCATION instruction. The LOCATION instruction must be always executed
after RESET cancellation, and must not be used more than once.
(1) When LOCATION 0H instruction is executed
• Internal memory
The internal data area and internal ROM area are mapped as follows:
Part NumberInternal Data AreaInternal ROM Area
µ
PD784224,0F100H to 0FFFFH00000H to 0F0FFH
µ
PD784224Y10000H to 17FFFH
µ
PD784225,0EE00H to 0FFFFH00000H to 0EDFFH
µ
PD784225Y10000H to 1FFFFH
CautionThe following areas that overlap the internal data area of the internal ROM cannot be used when
the LOCATION 0H instruction is executed.
Part NumberUnusable Area
µ
PD784224,0F100H to 0FFFFH (3,840 bytes)
µ
PD784224Y
µ
PD784225,0EE00H to 0FFFFH (4,608 bytes)
µ
PD784225Y
• External memory
The external memory is accessed in external memory expansion mode.
(2) When LOCATION 0FH instruction is executed
• Internal memory
The internal data area and internal ROM area are mapped as follows:
Part NumberInternal Data AreaInternal ROM Area
µ
PD784224,FF100H to FFFFFH00000H to 17FFFH
µ
PD784224Y
µ
PD784225,FEE00H to FFFFFH00000H to 1FFFFH
µ
PD784225Y
20
• External memory
The external memory is accessed in external memory expansion mode.
Data Sheet U12376EJ1V0DS00
(256 bytes)
Internal RAM
On execution of
Note 1
Special function registers (SFR)
LOCATION 0FH instruction
HFFFFF
HFDFFF
H0DFFF
H00FFF
(3,584 bytes)
HFFEFF
µ
PD784224, 784225, 784224Y, 784225Y
Note 4
Note 1
Internal ROM
External memory
(980,736 bytes)
HFFF71
HFF0FF
H001FF
H00081
(96 Kbytes)
H00000
HFFEFF
PD784224, 784224Y
µ
HFFEF0
H08EFF
HF7EFF
General-purpose
registers (128 bytes)
H08EF0
Figure 6-1. Memory Map of
Note 1
On execution of
LOCATION 0H instruction
HFFFFF
External memory
(928 Kbytes)
HF7EF0
Internal ROM
H00081
HFFF71
H93EFF
H60EFF
H00DFF
HFFCFF
H007FF
Program/data area
H00DF0
HFFCF0
(3,072 bytes)
H001F0
Data area (512 bytes)
Macro service control word
area (52 bytes)
H93EF0
H60EF0
(256 bytes)
(32,768 bytes)
Internal RAM
(3,584 bytes)
Note 1
Special function registers (SFR)
H00001
HFFFF0
HFDFF0
H0DFF0
H00FF0
HFFEF0
H001F0
HFFF71
Note 3
Note 2
CALLF entry
H00010
HFFF00
area (2 Kbytes)
H00800
HFF700
Internal ROM
(61,696 bytes)
CALLT table
area (64 bytes)
H08000
HF7000
H04000
Vector table area
(64 bytes)
HF3000
H00000
H00000
Program/data area
HFF0F0
H00001
HFFF71
Note 4
HFF0F0
Data Sheet U12376EJ1V0DS00
2. This 3,840-byte area can be used as an internal ROM only when the LOCATION 0FH instruction is executed.
3. On execution of LOCATION 0H instruction: 94,464 bytes, on execution of LOCATION 0FH instruction: 98,304 bytes
4. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
Notes 1. Accessed in external memory expansion mode.
21
(256 bytes)
Internal RAM
On execution of
Note 1
Special function registers (SFR)
LOCATION 0FH instruction
HFFFFF
HFDFFF
H0DFFF
H00FFF
(4,352 bytes)
HFFEFF
µ
PD784224, 784225, 784224Y, 784225Y
Note 4
Note 1
Internal ROM
External memory
(912,896 bytes)
HFFFF1
HFFDEF
H00EEF
H00002
(128 Kbytes)
H00000
HFFEFF
PD784225, 784225Y
µ
HFFEF0
H08EFF
HF7EFF
General-purpose
registers (128 bytes)
H08EF0
HF7EF0
Figure 6-2. Memory Map of
Note 1
On execution of
LOCATION 0H instruction
HFFFFF
External memory
(896 Kbytes)
H00002
H93EFF
H60EFF
H00DFF
HFFCFF
Macro service control word
H93EF0
Internal ROM
(65,536 bytes)
Data area (512 bytes)
area (52 bytes)
H00DF0
H60EF0
HFFCF0
(256 bytes)
Internal RAM
Note 1
Special function registers (SFR)
H00001
HFFFF1
HFFFF0
HFDFF0
H0DFF0
H00FF0
HFFEF0
HFFFF1
H00EEF
Note 2
Program/data area
(3,840 bytes)
H00001
HFFFF1
H00EE0
(4,352 bytes)
H00EE0
HFFDE0
Note 3
CALLF entry
H00010
HFFF00
Internal ROM
area (2 Kbytes)
(60,928 bytes)
Program/data area
HFFDE0
Note 4
CALLT table
area (64 bytes)
Vector table area
H00800
HFF700
H08000
HF7000
H04000
HF3000
(64 bytes)
H00000
H00000
22
Data Sheet U12376EJ1V0DS00
2. This 4,608-byte area can be used as an internal ROM only when the LOCATION 0FH instruction is executed.
3. On execution of LOCATION 0H instruction: 126,464 bytes, on execution of LOCATION 0FH instruction: 131,072 bytes
4. Base area and entry area for reset or interrupt. However, the internal RAM area is not used as a reset entry area.
Notes 1. Accessed in external memory expansion mode.
µ
(
PD784224, 784225, 784224Y, 784225Y
6.2 CPU Registers
6.2.1 General-purpose registers
Sixteen 8-bit general-purpose registers are available. Two 8-bit registers can be also used in pairs as a 16-bit
register. Of the 16-bit registers, four can be used in combination with an 8-bit register for address expansion as
24-bit address specification registers.
Eight banks of these registers are available which can be selected by using software or the context switching
function.
The general-purpose registers except V, U, T, and W registers for address expansion are mapped to the internal
RAM.
Figure 6-3. General-Purpose Register Format
V
VVP (RG4)
U
UUP (RG5)
T
TDE (RG6)
W
WHL (RG7)
Parentheses
A (R1)
AX (RP0)
B (R3)
BC (RP1)
R5
R7
R9
VP (RP4)
R11
UP (RP5)
D (R13)
DE (RP6)
H (R15)
HL (RP7)
) indicate an absolute name.
X (R0)
C (R2)
R4
RP2
R6
RP3
R8
R10
E (R12)
L (R14)
8 banks
CautionRegisters R4, R5, R6, R7, RP2, and RP3 can be used as X, A, C, B, AX, and BC registers,
respectively, by setting the RSS bit of the PSW to 1. However, use this function only for recycling
the program of the 78K/III Series.
Data Sheet U12376EJ1V0DS00
23
µ
PD784224, 784225, 784224Y, 784225Y
6.2.2 Control registers
(1) Program counter (PC)
The program counter is a 20-bit register whose contents are automatically updated when the program is
executed.
Figure 6-4. Program Counter (PC) Format
190
PC
(2) Program status word (PSW)
This register holds the statuses of the CPU. Its contents are automatically updated when the program is
executed.
Figure 6-5. Program Status Word (PSW) Format
15141312111098
UFRBS2RBS1RBS0––––PSWH
PSW
76543210
SZRSS
Note
ACIEP/V0CYPSWL
Note This flag is provided to maintain compatibility with the 78K/III Series. Be sure to clear this flag to 0, except
when the software for the 78K/III Series is used.
(3) Stack pointer (SP)
This is a 24-bit pointer that holds the first address of the stack. Be sure to write 0 to the higher 4 bits of this
pointer.
Figure 6-6. Stack Pointer (SP) Format
230
PC
20
0000
24
Data Sheet U12376EJ1V0DS00
µ
PD784224, 784225, 784224Y, 784225Y
6.2.3 Special function registers (SFRs)
The special function registers, such as the mode registers and control registers of the internal peripheral
hardware, are registers to which special functions are allocated. These registers are mapped to a 256-byte space
Note
of addresses 0FF00H to 0FFFFH
Note On execution of the LOCATION 0H instruction. FFF00H to FFFFFH on execution of the LOCATION 0FH
instruction.
CautionDo not access an address in this area to which no SFR is allocated. If such an address is accessed
µ
by mistake, the
only by inputting the RESET signal.
Table 6-1 lists the special function registers (SFRs). The meanings of the symbols in this table are as follows:
• Symbol ............................... Symbol indicating an SFR. This symbol is reserved for NEC’s assembler
PD784225 may be in the deadlock status. This deadlock status can be cleared
.
(RA78K4). It can be used an sfr variable by the #pragma sfr directive with the
C compiler (CC78K4).
• R/ W .................................... Indicates whether the SFR is read-only, write-only, or read/write.
R/W : Read/write
R: Read-only
W: Write-only
• Bit units for manipulation.. Bit units in which the value of the SFR can be manipulated.
SFRs that can be manipulated in 16-bit units can be described as the operand
sfrp of an instruction. To specify the address of this SFR, describe an even
address.
SFRs that can be manipulated in 1-bit units can be described as the operand of
a bit manipulation instruction.
• At reset .............................. Indicates the status of the register when the RESET signal has been input.
Data Sheet U12376EJ1V0DS00
25
µ
PD784224, 784225, 784224Y, 784225Y
Table 6-1. Special Function Register (SFR) List (1/4)
Special Function Register (SFR) NameSymbolR/WBit Units for ManipulationAt Reset
1 Bit8 Bits 16 Bits
TM1TM1W
TM2
CR10 CR1W
CR20
TMC1
TMC2
PRM1
PRM2
CR50 CR5W
CR60
TMC5
TMC6
PRM5
PRM6
Asynchronous serial interface mode register 1
Asynchronous serial interface mode register 2
Asynchronous serial interface status register 1
Asynchronous serial interface status register 2
Receive buffer register 1RXB1R——
Receive buffer register 2RXB2R——
ASIM1—00H
ASIM2—
ASIS1R—
ASIS2—
R—0000H
—
R/W—
—
TMC1W
PRM1W
TM5W
R—
R/W—
—
TMC5W
PRM5W
Note When the LOCATION 0H instruction is executed. Add “F0000H” to this value when the LOCATION 0FH
instruction is executed.
Data Sheet U12376EJ1V0DS00
27
µ
PD784224, 784225, 784224Y, 784225Y
Table 6-1. Special Function Register (SFR) List (3/4)
Address
Note 1
0FF88HROM correction control registerCORCR/W—00H
0FF89HROM correction address pointer HCORAH——
0FF8AHROM correction address pointer LCORAL——0000H
0FF8BH
0FF8DHExternal access status enable registerEXAE—00H
0FF90HSerial operation mode register 0CSIM0—
0FF91HSerial operation mode register 1CSIM1—
0FF92HSerial operation mode register 2CSIM2—
0FF94HSerial I/O shift register 0SIO0——
0FF95HSerial I/O shift register 1SIO1——
0FF96HSerial I/O shift register 2SIO2——
0FF98HReal-time output buffer register LRTBL——
0FF99HReal-time output buffer register HRTBH——
0FF9AHReal-time output port mode registerRTPM—
0FF9BHReal-time output port control registerRTPC—
0FF9CHWatch timer mode control registerWTM—
0FFA0H
0FFA2H
0FFA8HIn-service priority registerISPRR—
0FFA9HInterrupt select control registerSNMIR/W—
0FFAAHInterrupt mode control registerIMC—80H
0FFACHInterrupt mask flag register 0L
0FFADHInterrupt mask flag register 0H
0FFAEHInterrupt mask flag register 1L
0FFAFHInterrupt mask flag register 1H
0FFB0HI2C bus control register
0FFB2HPrescaler mode register for serial clockSPRM0—
0FFB4HSlave address registerSVA0—
0FFB6HI2C bus status register
0FFB8HSerial shift registerIIC0R/W—
0FFC0HStandby control registerSTBC——30H
0FFC2HWatchdog timer mode registerWDM——00H
0FFC4HMemory expansion mode registerMM—20H
0FFC7HProgrammable wait control register 1PWC1—AAH
0FFC8HProgrammable wait control register 2PWC2W——AAAAH
00FFCEHClock status registerPCSR—32H
0FFCFH
0FFD0H toExternal SFR area—— —
0FFDFH
Special Function Register (SFR) NameSymbolR/WBit Units for ManipulationAt Reset