English
Language : 

UPD784044 Datasheet, PDF (48/90 Pages) NEC – 16-BIT SINGLE-CHIP MICROCONTROLLER
µPD784044(A), 784046(A)
9.1 Memory Expansion
The external program memory or data memory can be expanded from 256 bytes up to 1M bytes in seven
steps.
When an external device is connected, the address/data bus and read/write strobe signals are controlled by
using ports 4 through 6 and P90 through P93 pins. The functions of these ports and pins are set by the memory
expansion mode register (MM).
Table 9-1. Setting of Pin Function
Memory Expansion
Pin Function
Mode Register
Port 4
Port 5
Port 6
MM0-MM3
P40-P47
P50-P57
P60-P63
Port mode
General-purpose port
External memory
expansion mode
AD0-AD7
AD8 to AD15 are set stepwise.
Rest of pins can be used as
general-purpose port pins.
A16 through A19 are set
stepwise.
Rest of pins can be used as
general-purpose port pins.
Remark AD8 through AD15 are used as address bus.
P90-P93
P90 : RD
P91 : LWR
P92 : HWR
P93 : ASTB
The number of pins of ports 5 and 6 that are used as address bus pins can be changed according to the size
of the external memory connected (external address space), so that the external memory can be expanded
stepwise. The pins not used as address bus pins can be used as general-purpose I/O port pins (refer to Table
9-2). The external address space can be set in seven steps by MM.
Table 9-2. Operations of Ports 5 and 6 (in external memory expansion mode)
Port 5
P50 P51 P52 P53 P54 P55 P56 P57 P60
General-purpose port
AD8 AD9
AD10 AD11
AD12 AD13
AD14 AD15
A16
Port 6
P61 P62
A17
A18
External address space
P63
256 bytes or lessNote
1K bytes or lessNote
4K bytes or lessNote
16K bytes or lessNote
64K bytes or less
256K bytes or less
A19 1M bytes or less
Note When the external 16-bit bus is specified, do not set MM such that the external address space is of this size.
Caution When the external 16-bit bus is specified, set MM such that all the pins of port 5 (P50 through P57)
are used as AD pins (AD8 through AD15).
48