NEC UPD70433R-12, UPD70433R-16, UPD70433GJ-16-3EB, UPD70433GJ-12-3EB, UPD70433GD-16-5BB, UPD70433GD-12-5BB Datasheet
DATA SHEET
MOS INTEGRATED CIRCUIT
µ
PD70433
V55PI
TM
16-BIT MICROPROCESSOR
DESCRIPTION
The µPD70433 (V55PI) is a microprocessor in which a 16-bit CPU, RAM, serial interface, parallel interface, A/D
converter, timers, DMA controller, interrupt controller, etc., are integrated in a single chip.
The V55PI is software-compatible with the µPD70320 and 70330 (V25TM and V35TM) single-chip microcontrollers. The
V55PI provides a migration path from the V25. It offers higher-level functions and higher performance, and is particularly
suitable for control of data processing systems associated with mechanical control, including printer and facsimile.
Detailed functions are described in the following user’s manuals, which should be read when carrying out
design work.
• V55PI User’s Manual Hardware: U10514E
• V55PI User’s Manual Instruction: U10231E
FEATURES
• Internal 16-bit architecture, selectable external data bus width (16/8 bits)
1.1LIST OF PIN FUNCTION .................................................................................................................................... 10
2.1BUS CONTROL UNIT (BCU) ............................................................................................................................. 14
2.2EXECUTION UNIT (EXU)...................................................................................................................................14
2.5UART/CLOCKED SERIAL INTERFACE (UART/CSI)......................................................................................1 4
2.6PARALLEL INTERFACE UNIT (PIU)................................................................................................................14
2.7A/D CONVERTER UNIT (8-BIT A/D) ................................................................................................................ 14
2.8TIMER/COUNTER UNIT (TCU) .........................................................................................................................14
2.9PWM (PULSE WIDTH MODULATION) UNIT (PWM).......................................................................................14
3. CPU FUNCTIONS....................................................................................................................................... 16
3.4PROGRAM STATUS WORDS (PSW) ...............................................................................................................23
3.5MEMORY SPACE ...............................................................................................................................................2 4
3.5.1Basic Memory Space ...........................................................................................................................24
3.6REGISTER FILE SPACE ..................................................................................................................................... 36
3.7I/O SPACE .......................................................................................................................................................... 38
4. BUS CONTROL FUNCTIONS ....................................................................................................................39
4.1WAIT FUNCTION ............................................................................................................................................... 39
4.2REFRESH FUNCTION ........................................................................................................................................ 41
9. TIMER FUNCTION ..................................................................................................................................... 55
9.2TIMER UNIT CONFIGURATION ....................................................................................................................... 55
9.3REAL-TIME OUTPUT PORT FUNCTION .......................................................................................................... 57
9.3.1Real-Time Output Port Configuration................................................................................................ 57
9.3.2Real-Time Output Port Operation ...................................................................................................... 59
10. PWM UNIT .................................................................................................................................................. 61
10.2PWM UNIT CONFIGURATION ......................................................................................................................... 61
11. WATCHDOG TIMER FUNCTION ..............................................................................................................6 3
17.1INSTRUCTIONS NEWLY ADDED TO V20/V30 AND V25/V35..................................................................... 78
17.2INSTRUCTION SET OPERATIONS................................................................................................................... 80
17.3INSTRUCTION SET TABLE ............................................................................................................................. 105
Input/output specifiable bit-wise
8-bit input/output port
Port 1
7-bit input port
Port 2
Input/output specifiable bit-wise
6-bit input/output port
Port 3
Input/output specifiable bit-wise
7-bit input/output port
Port 4
Input/output specifiable bit-wise
8-bit input/output port
P50DATASTB
P51ACK
P52BUSY
P60 to P63ANI0 to ANI3
P70 to P77RTP0 to RTP7
P80DMARQ0
P81DMARQ1
Input
Input/output
Port 5
Input/output specifiable bit-wise
3-bit input/output port
Port 6
Input/output specifiable bit-wise
4-bit input/output port
Port 7
Input/output specifiable bit-wise
8-bit input/output port
Port 8
Input/output specifiable bit-wise
2-bit input/output port
*Unusable as general-purpose port (non-maskable interrupt)
10
1.1.2 Non-Port Pins
(1)Bus control pins
µ
PD70433
Pin NameFunction
ASTBExternal bus cycle address strobe signal output in external bus
RD
WRL
WRH
READYInputExternal bus cycle ready signal input in external bus
DEXExternal bus cycle upper byte data enable signal output
RASDRAM low address latch timing signal output
D8/D16InputExternal bus data bus width selection signal input
BUSLOCKOutputExternal bus bus lock signal output
POLLInput of POLL signal (sampled in POLL instruction execution)
HLDRQExternal bus hold request signal input
HLDAKExternal bus hold acknowledge signal output
REFRQRefresh pulse signal output
Input/Alternate
OutputFunction
External memory cycle data read strobe signal output in
external bus
Output
Output
Input
Output
External memory cycle lower byte data write strobe signal
output in external bus
External memory cycle upper byte data write strobe signal
output in external bus
–––
AD0 to AD15
A16 to A23External bus cycle address signal output in external bus
IORDExternal I/O cycle data read strobe signal output
IOWRExternal I/O cycle data write strobe signal output
DMARQ0DMA request signal input (channel 0)P80
DMARQ1DMA request signal input (channel 1)P81
DMAAK0DMA acknowledge signal output (channel 0)
DMAAK1DMA acknowledge signal output (channel 1)
TCE0DMA termination signal output (channel 0)
TCE1DMA termination signal output (channel 1)
3–stateExternal bus cycle address/data multiplex signal input/output
input/outputin external bus
3–state
output
Output
Input
Output–––
11
(2)Other pins
µ
PD70433
Pin NameFunction
GNDGND potential
VDDPositive power supply
AVSSA/D converter GND potential
AVDDA/D converter analog power supply
AVREFA/D converter reference voltage input
RESETInputSystem reset signal input
X1Connection pins of crystal resonator/ceramic resonator for
X2–––to X1 and leave X2 open.
CLKOUTInternal system clock ø output
WDTOUTWatchdog timer overflow signal output
NMINon-maskable interrupt request input *1P10
INTP0P11
INTP1P12
Input/Alternate
OutputFunction
–––
system clock generation. In case of external clock supply, input
Output
–––
INTP2P13
INTP3P14/TI
INTP4P15
INTP5P16
TIExternal event clock inputP14/INTP3
PWMPWM outputP20
TO00, TO01, TO20,
TO21, TO30
TXD0UART transmission data outputP30/SB0/SO0
RXD0InputUART reception data inputP31/SB1/SI0
TXCOutputUART transmission clock outputP32/SCK0
CTS0P33
CTS1P36/SCK1
SB0P30/TXD0/SO0
SB1P31/RXD0/SI0
InputExternal interrupt request input *2
OutputTimer unit outputP21 to P25
InputUART transmission enable signal input
Input/outputSBI transmission/reception data input/output
*1.Because NMI interrupt is unmaskable, NMI interrupt is always initiated by detecting a valid edge (when reading from
port 1, the pin level is read).
2. By masking or disabling (IE = 0) these interrupts, these pins can be used as general–purpose input/output ports,
respectively.
12
µ
PD70433
Pin NameFunction
SO0P30/TXD0/SB0
SO1P34/TXD1
SI0P31/RXD0/SB1
SI1P35/RXD1
SCK0P32/TXC
SCK1P36/CTS1
PD0 to PD7Parallel interface — Data input/outputP40 to P47
DATASTBParallel interface — Data strobe signalP50
ACKParallel interface — Acknowledge signalP51
BUSYParallel interface — Busy signalP52
ANI0 to ANI3InputAnalog input signal to A/D converterP60 to P63
RTP0 to RTP7OutputReal-time output portP70 to P77
Input/Alternate
OutputFunction
OutputCSI transmission data output
InputCSI reception data input
CSI serial clock input/output
Input/output
13
µ
PD70433
2. BLOCK CONFIGURATION
2.1BUS CONTROL UNIT (BCU)
The BCU performs control of the main bus. The BCU starts the necessary internal/external bus cycle on the basis of
the physical address obtained from the execution unit (EXU).
2.2EXECUTION UNIT (EXU)
The EXU controls address calculation, arithmetic and logical operations, data transfer, etc., by means of a microprogram
(firmware for controlling the microsequencer on the basis of decoded op code). The EXU contains 512 bytes of RAM
(corresponding to the register file space).
2.3 INTERRUPT CONTROLLER (INTC)
The INTC services hardware interrupt requests generated by on-chip peripheral hardware and interrupt requests
generated externally with vectored interrupts, bank switching, or macro service. It can also control the programmable 4level interrupt priority order, and can also perform multiprocessing control for interrupt.
2.4DMA CONTROLLER (DMAC)
The DMAC is a general-purpose DMA controller, capable of handling the 16M-byte memory space in a linear fashion.
Operating modes comprise memory-to-memory transfer mode, intelligent DMA (ring buffer method and counter control
method) mode, next address specification mode, and 2-channel operation.
2.5UART/CLOCKED SERIAL INTERFACE (UART/CSI)
This block supports the asynchronous interface (UART) in which data synchronization is achieved by means of start/
stop bits, and the clocked serial interface (CSI), allowing either to be used.
For the clocked serial interface there is a further choice of serial bus interface mode (SBI) or 3-wire serial I/O mode.
2.6PARALLEL INTERFACE UNIT (PIU)
This performs input/output using strobe signal synchronization in 8-bit units, and supports the Centronics interface and
general-purpose parallel data communication functions.
2.7A/D CONVERTER UNIT (8-BIT A/D)
This is an A/D converter with 4 analog inputs, and provided with 4 A/D conversion result registers.
2.8TIMER/COUNTER UNIT (TCU)
The timer/counter unit incorporates a 16-bit timer/counter, and can be used as an interval timer, free-running counter,
or event counter.
2.9PWM (PULSE WIDTH MODULATION) UNIT (PWM)
An 8-bit precision PWM (pulse width modulation) signal output function.
2.10 WATCHDOG TIMER (WDT)
The WDT incorporates an 8-bit watchdog timer for detection of inadvertent program looping, system errors, etc. The
WDTOUT pin is provided to give external notification of the generation of watchdog timer interrupts.
2.11 PORTS (PORT)
53 port pins are provided, allowing port pin and control pin functions to be selected.
2.12 REAL-TIME OUTPUT PORT (RTOP)
This is a real-time output port which uses an interrupt from timer 0 as a trigger. It can output the contents of the 8-bit
buffer register at programmable intervals in 4-bit or 8-bit units.
14
µ
PD70433
2.13 CLOCK GENERATOR (CG)
The CG generates a clock at a frequency of 1/2, 1/4, 1/8 or 1/16 that of the crystal and oscillator connected to the X1
and X2 pins and supplies it as the CPU operating clock.
2.14 SOFTWARE INTERVAL TIMER (SIT)
The SIT incorporates a 16-bit software interval timer as a software timer function and watch function timer. Interval
interrupts can be set by input clock (count clock) selection and software timer/counter compare register setting.
15
µ
PD70433
3. CPU FUNCTIONS
The CPU of the V55PI is software upword compatible with the V20 and V30 (native mode), and the V25 and V35.
3.1FEATURES
• Software upward compatible with V20 & V30 (native mode) and V25 & V35 (includes additional instructions)
• Address space: 16M bytes1M-byte basic memory (program) space
16M-byte extended memory (data) space
• Register file space (in on-chip RAM): 512 bytes/16 register banks
• I/O space: 64K bytes
• Register configuration (compared with V20/V30 and V25/V35)
ItemV20, V30V25, V35V55PI
Extended segment registerNoneNoneDS2, DS3
Register bankNone8 banks (in memory space)16 banks (in register file space)
Mode flagMDNoneNone
Register bank flagsNoneRB0 to RB2RB0 to RB3
PSW
Special function register areaNone(memory mapping onto(memory mapping onto
Input/output instruction
trap flag
User flagNoneF0, F1None
NoneIBRKIBRK
240 bytes496 bytes
FFF00H to FFFEFH) FFE00H to FFFEFH)
• Internal 16-bit architecture, switchable external data bus width (16/8 bits)
• Automatic wait control with memory divided in variable sizes (max. 6 blocks)
• Programmable wait function
• Wait function using READY pin
• Refresh function
• Automatic generation of refresh cycle (RAS only)
• RAS pin functions
RAS pin→ DRAM RAS timing
RD, WRH, WRL pins→ DRAM CAS timing
ASTB pin→ DRAM row/column address switching timing
16
µ
PD70433
3.2REGISTERS
The V55PI CPU has general register sets compatible with the V20 and V30 (native mode), and the V25 and V35. The
general register sets are mapped onto the register file space. These general register sets are also used as on-chip RAM,
and there can be a maximum of 16 register sets in bank form.
In addition, the V55PI has various special function registers for controlling on-chip peripheral hardware. These special
function registers are mapped onto memory space addresses 0FFE00H to 0FFFEFH.
3.2.1 Register Banks
The general register sets are mapped onto the register file space (in on-chip RAM). The general register sets are used
in a bank arrangement; each bank consists of 32 bytes and up to 16 banks can be set.
The CPU normally uses register bank 15 for program execution, and it is possible to switch to another bank automatically
by means of maskable hardware interrupt or software interrupt (BRKCS instruction). It is possible to return from the switchedto register bank to the original register bank by means of the instruction for returning from an interrupt (RETRBI).
The register bank configuration is shown in Figure 3-1. The general register sets are mapped onto the area with an offset
of (+08H) to (+1FH) from the start address of each register bank. The word address from the start in a register bank is the
extended segment register (DS2) area. The vector PC/DS3 area is used to set the value to be loaded into the PC when
the register bank is switched, that is, the offset value of the start address of the interrupt service routine. This area is also
used as the extended segment register (DS3) area. The PSW save area is used to save the PSW when the register bank
is switched, and the PC save area is used to save the PC when the register bank is switched.
After a reset, register bank 15 is selected automatically. Also, segment register initialization after a reset is performed
for register bank 15 only.
The register file space onto which these general register sets are mapped can also be accessed as data memory by
addition of a special prefix instruction (IRAM:) to a memory manipulation instruction.
Of the 16 set register banks, banks 0 and 1 have macro service channels (parameter and work area for macro service)
allocated in duplicate.
17
000H
020H
040H
060H
080H
0A0H
0C0H
0E0H
100H
120H
140H
160H
180H
1A0H
1C0H
1E0H
1FFH
Register Bank 0
10
11
12
13
14
15
Figure 3-1. Register Bank Configuration
Register File Space (512 bytes)
+00H15870
1
2
3
4
5
6
7
8
9
+02H
+04H
+06H
+08H
+0AH
+0CH
+0EH
+10H
+12H
+14H
+16H
+18H
+1AH
+1CH
+1EH
DS2
Vector PC/DS3
PSW Save
PC Save
DS0
SS
PS
DS1
IY
IX
BP
SP
BW
BH
DW
DH
CW
CH
AW
AH
µ
PD70433
BL
DL
CL
AL
18
(Offset from the starting address of each register bank)
µ
PD70433
3.2.2 General Registers (AW, BW, CW, DW)
There are four 16-bit general registers. In addition to being accessed as 16-bit registers, these registers can also be
accessed as 8-bit registers by dividing each register into upper and lower 8-bit halves (AH, AL, BH, BL, CH, CL, DH, DL).
These registers are used as 8-bit or 16-bit registers with a wide range of instructions including transfer, arithmetic and
logical operation instructions.
Each register is also used as the default register for specific instruction processing, as shown below.
AW : Word multiplication/division, word input/output, data conversion
AL : Byte multiplication/division, byte input/output, BCD rotation, data conversion
AH : Byte multiplication/division
BW : Data conversion
CW : Loop control branch, repeat prefix
CL : Shift instructions, rotate instructions, BCD operations
DW : Word multiplication/division, indirect addressing input/output
These registers are mapped onto the register file space (in on-chip RAM). The address is the value obtained by adding
the offset for each register to (register bank number × 32).
Table 3-1. General Register Offsets
RegisterOffsetRegisterOffset
AW1EH
BW18H
CW1CH
DW1AH
AL1EH
AH1FH
BL18H
BH19H
CL1CH
CH1DH
DL1AH
DH1BH
19
µ
PD70433
3.2.3 Pointers (SP, BP) and Index Registers (IX, IY)
These are 16-bit registers used as base pointers or index registers in memory accesses using based addressing (BP),
indexed addressing (IX, IY), based indexed addressing (BP, IX, IY), etc. The SP is also used as the pointer in stack
operations. As with general registers, these are used with transfer instructions, arithmetic operation instructions, etc., but
in this case they cannot be used as 8-bit registers. Each register is also used as the fixed address pointer for specific
instruction processing, as shown below.
SP : Stack manipulation
IX : Block transfers, BCD operation source side address specification
IY : Block transfers, BCD operation destination side address specification
These registers are mapped onto the register file space (in on-chip RAM). The address is the value obtained by adding
the offset for each register to (register bank number × 32).
Table 3-2. Pointer and Index Register Offsets
RegisterOffset
SP16H
BP14H
IX12H
IY10H
3.2.4 Segment Registers (PS, SS, DS0, DS1)
The CPU manages the 1M-byte basic memory space by dividing it into 64K-byte units. The CPU specifies the start
address of each segment with a segment register, and uses another register or effective address for the specification of
phyiscal address, with the relative address from the start address as the offset.
The physical address is created as shown below.
Segment Register 4-Bit Fixed
xxxx0H
0xxxxH
+
....Segment Start Address
....Offset Value
xxxxxH
There are four segment registers: PS (Program Segment), SS (Stack Segment), DS0 (Data Segment 0), and DS1 (Data
Segment 1). The respective segments are used in the following cases.
PS : Program fetch
SS : Stack manipulation instructions, addressing using BP as base register
DS0 : General variable accesses, source block data accesses such as block transfer instructions, etc.
DS1 : Destination block data accesses such as block transfer instructions, etc.
.....Physical Address (20 Bits)
20
µ
PD70433
However, using a segment override prefix instruction makes it possible for access of general variables to change from
DS0 to another segment register. Also, in addressing which uses BP as the base register, another segment register can
be used instead of SS.
ExampleMOVAW, 1000H
MOVDS1 : AW
MOVBL, DS1, BYTE PTR [IX]; DSI : Byte data read from IX
When a reset is performed, PS of register bank 15 is initialized to FFFFH, and SS, DS0 and DS1 are initialized to 0000H.
These registers are mapped onto the register file space (in on-chip RAM). The address is the value obtained by adding
the offset for each register to (register bank number × 32).
Table 3-3. Segment Register Offsets
RegisterOffset
DS008H
DS10EH
SS0AH
PS0CH
3.2.5 Extended Segment Registers (DS2, DS3)
In addition to the segment registers for accessing the 1M-byte basic memory space, the V55PI is provided with extended
segment registers which specify the start address of each 64K-byte segment of the 16M-byte extended memory space.
There are two extended segment registers, DS2 (Data Segment 2) and DS3 (Data Segment 3), which are used as shown
below.
DS2: Extended memory space general variable accesses (by segment override prefix instructions), source block
data accesses in extended memory space block transfer instructions, etc.
DS3: Extended memory space general variable accesses (by segment override prefix instructions), destination
block data accesses in extended memory space block transfer instructions, etc.
The data access using an extended semgnet register is performed by using the segment override prefix. Especially, in
the block transfer instruction, DS2 and DS3 can be specified simultaneously by segment override prefix. (In this case, the
order for DS2 and DS3 is optional.)
ExampleREP
DS2:
DS3: MOVBKW ; Word memory block transfer from DS2 : IX to DS3 : IY.
The CPU specifies the start address of each segment with an extended segment register, and performs an access by
using another register or effective address for the specification of physical address, with the relative address from the start
address as the offset value.
The physical address is created as shown in the next page.
21
Extended Segment Register 8-Bit Fixed
µ
PD70433
xxxx00H
00xxxxH
+
xxxxxxH
When a reset is performed, DS2 and DS3 of register bank 15 are initialized to 0000H.
These registers are mapped onto the register file space (in on-chip RAM). The address is the value obtained by adding the
offset for each register to (register bank number × 32).
Table 3-4. Extended Segment Register Offsets
RegisterOffset
...Segment Start Address
...Offset Value
...Physical Address (24 Bits)
DS200H
DS302H (Also used as vectored PC)
3.2.6 Special Function Registers (SFR)
The V55PI has a group of registers with the function of controlling on-chip peripheral hardware.
A number of registers are provided according to the type of cotrol for each peripheral hardware unit, and the actual
operation can be set using the individual bits in the registers. These registers are mapped onto the memory space, and
are read and written to using the same method as for ordinary memory (see 3.5.3 "Special Function Register Area").
There are also two instructions, BTCLR and BTCLRL, which are only valid for special function registers. Of these,
BTCLRL is an instruction newly provided in the V25 or V35.
The BTCLR instruction is valid for registers in the upper 240 bytes (0FFF00H to 0FFFEFH) of the special function register
area, and the BTCLRL instruction is valid for registers in the lower 256 bytes (0FFE00H to 0FFEFFH).
22
µ
PD70433
3.3PROGRAM COUNTER (PC)
This is a 16-bit binary counter which holds the offset value of the program memory address on which the CPU is to perform
execution.
The PC is incremented each time an instruction code is fetched from the instruction queue, and is also loaded with the
new location address value when a branch, call, return or break instruction is executed.
When a reset is performed, 0000H is loaded into the PC. Because the PS register is initialized to FFFFH in a reset, after
a reset the CPU begins execution at physical address 0FFFF0H.
3.4PROGRAM STATUS WORDS (PSW)
The PSW consists of 6 status flags and 5 control flags.
• Status flags
•V (Overflow)...Overflow detection flag
•S (Sign)...Sign bit detection flag
•Z (Zero)...All zero detection flag
•AC (Auxiliary Carry)...4-bit carry/borrow detection flag
•P (Parity)...Parity detection flag
•CY (Carry)... Carry/borrow detection flag
• Control flags
•RB0 to RB3 (Register Banks 0 to 3) ...Register bankspecification flags
•DIR (Direction)...Block transfer/input/output instruction direction control flag
•IE (Interrupt Enable)...Interrupt enabled state control flag
•BRK (Break)...Single-step interrupt control flag
•IBRK (I/O Break)...Input/output instruction trap control flag
The status flags are set (1) or reset (0) automatically according to the result (data value) of execution of various kinds
of instructions. The CY flag can be directly set, reset or inverted by an instruction.
The control flags are set or reset by instructions, and control the operation of the CPU. The IE and BRK flags are always
reset when interrupt servicing is initiated.
The contents of the PSW can be saved to and restored from the stack by the PUSH and POP instructions. However,
when the contents are restored by the POP PSW instruction, bits 12 to 15 (RB0 to RB3) are not returned to the PSW.
The low-order 8 bits of the PSW can also be saved to or restored from the AH register by an MOV instruction.
The PSW bit configuration is shown below.
151413121110987654 3210
RB3 RB2 RB1 RB0YDIRIEBRKSZ0AC0PIBRKCY
23
µ
PD70433
3.5MEMORY SPACE
The V55PI has a 16M-byte memory space. Of this, using lowest 1M bytes (000000H to 0FFFFFH) as the basic memory
space, the 16M bytes including the basic memory space (000000H to FFFFFFH) can be accessed as the extended memory
space. The basic memory space can be accessed using the segment registers (PS, SS, DS0, DS1) in the same way as
in the V25 and V35. The extended memory space can be accessed using the extended segment registers (DS2, DS3), and
has the basic memory space mapped onto the lowest 1M bytes. See 3.2.4 "Segment Registers (PS, SS, DS0, DS1)" and
3.2.5 "Extended Segment Registers (DS2, DS3)" for the physical addresses.
The 496-byte space 0FFE00H to 0FFFEFH has mapped onto it a group of registers to which specific functions are
allocated such as on-chip peripheral hardware registers, control registers, etc., and these are manipulated by memory
accesses.
In addition, independent of these, there is a 512-byte register file space (in on-chip RAM). In addition to being accessed
by using register manipulation instructions as in the V25 and V35, the register file space can also be accessed as data
memory by adding a special prefix instruction (IRAM:) to a memory manipulation in.
Figure 3-2. Memory Space
000000H
Vector Area
003FFH
Basic Memory
Space
(1M Bytes)
0FFFFFH
100000H
Special Function
Register Area
(On-Chip Area)
FFFFFFH
FFE00H
FFFEFH
Extended Memory
Space (16M Bytes)
3.5.1 Basic Memory Space
The memory space comprises a 1M-byte basic memory space and 16M-byte extended memory space. The basic memory
space is mapped onto the lowest 1M bytes (000000H to 0FFFFFH) of the extended memory space.
The 1M-byte basic memory space is shown in Figure 3-3.
Conditions for accessing the basic memory space by software are the same as for the V20/V30 and V25/V35.
A basic memory space physical address is specified by the segment start address indicated by the segment register (PS,
SS, DS0, DS1) and the offset value from the segment start position indicated by another register or immediate data.
The basic memory space has the vectored interrupt vector area and special function register area mapped onto it. For
an area in which special function registers are mapped, data accesses cannot be made to external memory (program fetches
are possible.)
24
Figure 3-3. Basic Memory Space
µ
PD70433
000000H
Vector Area
1M Bytes
Spaecial Function Register Area
(Internal Area)
0FFFFFH
0FFF0H to 0FFFFFH is a program area used for the system boot, and PS and PC become 0FFFH and 0H, respectively,
therefore the program execution starts from 0FFFF0H.
3.5.2 Extended Memory Space
The 16M-byte extended memory space is shown in Figure 3-4.
The only accesses that can be performed on the extended memory space are data accesses.
The basic memory space is mapped onto the lowest 1M bytes (000000H to 0FFFFFH) of the extended memory space,
and can be accessed using the segment registers PS, SS, DS0 and DS1.
Data accesses can be performed in the extended memory space using the extended segment registers DS2 and DS3.
With DS2 and DS3 it is possible to use a specification as a segment override prefix instruction added to a memory
manipulation instruction.
An extended memory space physical address is specified by the segment start address indicated by the extended
segment register and the offset value from the segment start position indicated by another register or immediate data. If
the generated address indicates the lowest 1M-byte area (000000H to 0FFFFFH), the basic memory space is accessed.
00000H
003FFH
FFE00H
FFFEFH
25
Figure 3-4. Extended Memory Space
µ
PD70433
000000H
0FFFFFH
100000H
FFFFFFH
16M Bytes
Vector Area
1M Bytes
Spaecial Function
Register Area
(Internal Area)
00000H
003FFH
FFE00H
FFFEFH
3.5.3 Special Function Register Area
The 496-byte space 0FFE00H to 0FFFEFH has mapped onto it a group of registers to which functions such as
on-chip peripheral hardware operation specification, status monitoring, etc., are assigned.
Program fetches cannot be performed from these areas.
Special function register manipulation is performed by accesses by means of memory manipulation instructions.
If the special function register area is accessed, RD, WRH, WRL, IORD, IOWR and other control signals do not become
active.
A list of special function registers is given in Table 3-5. The meaning of the items in the table is explained below.
• Symbol............................ The symbol used to indicate the special function register name. Corresponds to the
operand description format (symbol name) in a memory manipulation instruction.
• R/ W ................................. Indicates whether this special function register is read/write enabled.
R/W : Read/write enabled
R: Read only
W: Write only
• Manipulation Method ..... Indicates which of the following can be used on the register: bit manipulation,
• RESET............................ Indicates the status of the register after RESET input.
NoteAddresses which are not listed are the reserved area, therefore, they should not be accessed by the user
program.
26
Table 3-5. Special Function Registers (1/7)
27
AddressSpecial Function Register NameSymbolR/WAfter Reset
0FFE00HA/D conversion result register 0ADCR0R
0FFE02HA/D conversion result register 1ADCR1R
0FFE04HA/D conversion result register 2ADCR2R
0FFE06HA/D conversion result register 3ADCR3R
0FFE10HParallel interface bufferPADR/W *1
0FFE18HParallel interface control register 0PAC0R/W
0FFE19HParallel interface control register 1PAC1R/W
0FFE1AHParallel interface status registerPASR/W *2
0FFE1CHParallel interface acknowledge interval register 1PAI1W
0FFE1DHParallel interface acknowledge interval register 2PAI2W
0FFE20HA/D converter mode registerADMR/W
0FFEC0HInterrupt mask flag register 0 (low)MK0LR/W
0FFEC1HInterrupt mask flag register 0 (high)MK0HR/W
0FFEC2HInterrupt mask flag register 1 (low)MK1LR/W
0FFEC3HInterrupt mask flag register 1 (high)MK1HR/W
0FFEC4HIn-service priority registerISPRR
0FFEC5HInterrupt mode control registerIMCR/W
0FFEC9HInterrupt request control register 09IC09R/W
0FFECAHInterrupt request control register 10IC10R/W
0FFECBHInterrupt request control register 11IC11R/W
0FFECCHInterrupt request control register 12IC12R/W
0FFECDHInterrupt request control register 13IC13R/W
*1.Varies according to input/output mode.
2. Some bits R, others R/W (possible).
MK0
MK1
Manipulable Bit Units
1 Bit8 Bits 16 Bits 32 Bits
•
•
•
•
•
••
••
•
•
•
••
••
•
••
••
•
••
••
•
••
••
••
••
••
Undefined
Undefined
Undefined
Undefined
Undefined
90H
03H
40H
Undefined
Undefined
00H
FFH
FFH
FFH
FFH
00H
80H
43H
43H
43H
43H
43H
µ
PD70433
28
Table 3-5. Special Function Registers (2/7)
AddressSpecial Function Register NameSymbolR/WAfter Reset
0FFECEHInterrupt request control register 14IC14R/W
0FFED0HInterrupt request control register 16IC16R/W
0FFED1HInterrupt request control register 17IC17R/W
0FFED2HInterrupt request control register 18IC18R/W
0FFED3HInterrupt request control register 19IC19R/W
0FFED4HInterrupt request control register 20IC20R/W
0FFED5HInterrupt request control register 21IC21R/W
0FFED6HInterrupt request control register 22IC22R/W
0FFED7HInterrupt request control register 23IC23R/W
0FFED8HInterrupt request control register 24IC24R/W
0FFED9HInterrupt request control register 25IC25R/W
0FFEDAHInterrupt request control register 26IC26R/W
0FFEDBHInterrupt request control register 27IC27R/W
0FFEDCHInterrupt request control register 28IC28R/W
0FFEDDHInterrupt request control register 29IC29R/W
0FFEDEHInterrupt request control register 30IC30R/W
0FFEDFHInterrupt request control register 31IC31R/W
0FFEE0HInterrupt request control register 32IC32R/W
0FFEE4HInterrupt request control register 36IC36R/W
0FFEE5HInterrupt request control register 37IC37R/W