SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
DESCRIPTION
These are single-chip microcomputers designed with high-performance CMOS silicon gate technology, including the internal flash
memory. These are housed in 100-pin plastic molded QFP. These
microcomputers support the 7900 Series instruction set, which are
enhanced and expanded instruction set and are upper-compatible
with the 7700/7751 Series instruction set.
The CPU of these microcomputers is a 16-bit parallel processor that
can also be switched to perform 8-bit parallel processing. Also, the
bus interface unit of these microcomputers enhances the memory
access efficiency to execute instructions fast. These microcomputers
include the 4-channel DMA controller and the DRAM controller.
Therefore, these microcomputers are suitable for office, business,
and industrial equipment controller that require fast processing of
large data.
For the internal flash memory, single-power-supply programming
and erasure, using a PROM programmer or the control by the central processing unit (CPU), is supported. Also, each of these microcomputers has the memory area dedicated for storing a certain
software which controls programming and erasure (reprogramming
control software). Therefore, on these microcomputers, the program
can easily be changed even after they are mounted on the board.
DISTINCTIVE FEATURES
<Microcomputer mode>
Number of basic machine instructions .................................... 203
•
Memory
•
[M37920FCCGP, M37920FCCHP]
Flash memory (User ROM area) ................................. 120 Kbytes
Maximum number of reprograms ............................................ 100
•
(Data protection per block is enabled.)
Block erase or Total erase
APPLICATION
Control devices for personal computer peripheral equipment such as
CD-ROM drives, DVD-ROM drives, hard disk drives, high density
FDD, printers
Control devices for office equipment such as copiers and facsimiles
Control devices for industrial equipment such as communication and
measuring instruments
<Flash memory mode>
Power supply voltage .................................................. 5 V ± 0.5 V
•
Programming/Erase voltage........................................ 5 V ± 0.5 V
•
Programming method............ Programming in a unit of 256 bytes
can be set to a priority level within the range of 0–7 by software.
Built-in (externally connected to a ceramic resonator or quartz
crystal resonator).
5 V±0.5 V
125 mW (at f(XIN) = 20 MHz)
5 V
5 mA
Up to 16 Mbytes. Note that bank FF16 is a reserved area.
–20 to 85 °C
CMOS high-performance silicon gate process
100-pin plastic molded QFP
5
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
FUNCTIONS (Flash memory mode)
Power supply voltage
Programming/Erase voltage
Flash memory mode
Block division for erasure
Programming method
Erase method
Programming/Erase control
Data protection method
Number of commands
Maximum number of reprograms
User ROM area
Boot ROM area
Flash memory parallel I/O mode
Flash memory serial I/O mode
Flash memory CPU reprogramming mode
Flash memory parallel I/O mode
Flash memory serial I/O mode
Flash memory CPU reprogramming mode
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
FunctionsParameter
5 V±0.5 V (in the flash memory parallel I/O mode, 3.3 V±0.3 V)
5 V±0.5 V (in the flash memory parallel I/O mode, 3.3 V±0.3 V)
3 modes: parallel I/O, serial I/O, and CPU reprogramming modes
(Note 1)
1 block (16 Kbytes ✕ 1) (Note 2)
Programmed per page (in a unit of 256 Kbytes)
User ROM area + Boot ROM area
User ROM area
User ROM area
Total erase/Block erase
User ROM area + Boot ROM area
User ROM area
User ROM area
Programming/Erase control by software commands
Protected per block, by using a lock bit.
8 commands
100
Notes 1:
User ROM area
2:
On shipment, our reprogramming control firmware for the flash memory serial I/O mode has been stored into the boot ROM area.
Note that the boot ROM area can be erased/programmed only in the flash memory parallel I/O mode.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Input/
Output
—
Apply 5 V±0.5 V to Vcc, and 0 V to Vss.
Input
Input
Input
Input
Output
Input
Input
This pin controls the processor mode. Connect this pin to VSS for the single-chip
mode or memory expansion mode, and VCC for the microprocessor mode.
Connect this pin to Vss.
The microcomputer is reset when “L” level is applies to this pin.
These are input and output pins of the internal clock generating circuit. Connect a
ceramic or quartz- crystal resonator between the XIN and XOUT pins. When an
external clock is used, the clock source should be connected to the XIN pin, and the
XOUT pin should be left open.
This pin determines whether the external data bus has an 8-bit width or 16-bit width
for the memory expansion mode or microprocessor mode. The width is 16 bits when
“L” signal is input, and 8 bits when “H” signal is input.
—
Power supply input pin for the A-D converter. Connect AVcc to Vcc, and AVss to Vss
externally.
This is the reference voltage input pin for the A-D converter.
I/O
■ In single-chip mode
Port P0 is an 8-bit I/O port. This port has an I/O direction register, and each pin
can be programmed for input or output. These pins enter the input mode at
reset.
■ In memory expansion and microprocessor modes
Address (A16–A23) is output. In DRAM space is accessed, Multiplexed address
(MA8–MA11) is output.
■ In single-chip mode
I/O
I/O
I/O
I/O
These pins have the same functions as port P0.
■ In memory expansion and microprocessor modes
The low-order 8 bits of data (D0–D7) are input/output.
■ In single-chip mode or when 8-bit external data bus is used with “H” level applied
to pin BYTE in memory expansion or microprocessor mode
These pins have the same functions as port P0.
■ When the 16-bit external data bus is used with “L” level applied to pin BYTE in
memory expansion or microprocessor mode
The high-order 8 bits of data (D8–D15) are input or output.
■ In single-chip mode
These pins have the same functions as port P0.
■ In memory expansion mode
P30 functions as an I/O port pin. According to the register setting, this pin funtions
as an output pin of RDY. P31, P32, P33 funtion as output pins of RD, BLW, BHW,
respectively.
■ In microprocessor mode
P30 functions as an input pin of RDY; and P31, P32, P33 function as output pins of
RD, BLW, BHW, respectively.
■ In single-chip mode
These pins have the same functions as port P0. P42 also funtions as pin TC.
■ In memory expansion mode
P40–P44 function as I/O port pins. According to the register setting, these pins
function as output pins or input pins of ALE, φ1, TC, HOLD, HLDA, respectively.
■ In microprocessor mode
P40 and P41 function as outpout pins of ALE, φ1. According to the register setting,
these pins also funtion as I/O port pins. P42 funtions as an I/O port pin. According to the register setting, this pin also funtions as pin TC. P43 functions as an input pin of HOLD, and P44 functions as an output pin of HLDA.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
Functions
7
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
P50–P57
P60–P66
P70–P73
P80–P86
P90–P96
P100–P107
P110–P117
P120–P122
NMI
NamePin
I/O port P5
I/O port P6
I/O port P7
I/O port P8
I/O port P9
I/O port P10
I/O port P11
I/O port P12
Non-maskable interrupt
Input/
Output
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
Input
Functions
In addition to having the same functions as port P0 in the single-chip mode, these
pins also function as I/O pins for timers A0, A2, and output pins for the real-time output.
In addition to having the same functions as port P0 in the single-chip mode, these
pins also function as I/O pins for timers A1, A3, A4, input pins for DMA requests,
and output pins for DMA acknowledge signals.
In addition to having the same functions as port P0 in the single-chip mode, these
pins also function as input pins for the A-D converter. P72 and P73 also function as
input pins for INT3 and INT4.
In addition to having the same functions as port P0 in the single-chip mode, these
pins also function as I/O pins for UART0, UART1.
■ In single-chip mode
These pins have the same function as port P0.
■ In memory expansion or microprocessor mode
According to the software setting, P90–P93 also funtion as chip select output
pins. While DRAM space is selected, P94–P96 function as output pins for DRAM
control signals. Some pins of P91–P93, coressponding to the selected DRAM
space, function as pins RAS.
■ In single-chip mode
These pins have the same functions as port P0.
■ In memory expansion and microprocessor modes
Address (A0–A7) is output.
■ In single-chip mode
These pins have the same functions as port P0.
■ In memory expansion or microprocessor mode
Address (A8–A15) is output. While DRAM space is accessed, Multiplexed address
(MA0–MA7) is output.
In addition to having the same functions as port P0 in the single-ship mode, these
pins also function as input pins for timers B0–B2.
This pin is for a non-maskable interrupt.
8
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
BASIC FUNCTION BLOCKS
These microcomputers contain the following devices on the single
chip: the flash memory, RAM, CPU, bus interface unit, and peripheral devices such as the interrupt control circuit, timers, serial I/O,
A-D converter, I/O ports, clock generating circuit, etc.
MEMORY
Figures 1 and 2 show the memory maps. The address space is 16
Mbytes from addresses 016 to FFFFFF16. The address space is divided into 64-Kbyte units called banks. The banks are numbered
from 016 to FF16. Bank FF16 is a reserved area for the development
support tool. Therefore, do not use bank FF16.
000000
Bank 0
Bank 1
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Bank FE
Bank FF
00FFFF
010000
01FFFF
FE0000
FEFFFF
FF0000
FFFFFF
16
16
16
16
16
16
16
16
Reserved area
for development
support tool
16
16
16
16
000000
0000FF
000800
0017FF
001800
001FFF
002000
00FFC0
00FFFF
Internal flash memory and internal RAM are assigned as shown in
Figures 1 and 2.
Addresses FFC016 to FFFF16 contain the RESET and the interrupt
vector addresses, and the interrupt vectors are stored there.
For details, refer to the section on interrupts.
Assigned to addresses 016 to FF16 are peripheral devices such as
I/O ports, A-D converter, UART, timers, interrupt control registers,
DMA controoler, DRAM controller, etc.
For the flash memory in the boot ROM area, refer to the section on
the flash memory mode.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
CENTRAL PROCESSING UNIT (CPU)
The CPU has 13 registers, and they are shown in Figure 6. Each of
these registers is described below.
ACCUMULATOR A (A)
Accumulator A is the main register of the microcomputer. It consists
of 16 bits and the low-order 8 bits can be used separately. Data
length flag m determines whether the register is used as 16-bit register or as 8-bit register. It is used as a 16-bit register when flag m is
“0” and as an 8-bit register when flag m is “1”. Flag m is a part of the
processor status register (PS) which is described later.
Data operations such as calculations, data transfer, input/output,
etc., are executed mainly through accumulator A.
ACCUMULATOR B (B)
Accumulator B has the same functions as accumulator A, but the use
of accumulator B requires more instruction bytes and execution
cycles than accumulator A.
ACCUMULATOR E
Accumulator E is a 32-bit register and consists of accumulator A
(low-order 16 bits) and accumulator B (high-order 16 bits). It is used
for 32-bit data processing.
INDEX REGISTER X (X)
Index register X consists of 16 bits and the low-order 8 bits can be
used separately. Index register length flag x determines whether the
register is used as 16-bit register or as 8-bit register. It is used as a
16-bit register when flag x is “0” and as an 8-bit register when flag x
is “1”. Flag x is a part of the processor status register (PS) which is
described later.
In index addressing modes in which register X is used as the index
register, the contents of this address are added to obtain the real address.
Index register X functions as a pointer register which indicates an
address of data table in instructions MVP, MVN, RMPA (Repeat
MultiPly and Accumulate).
INDEX REGISTER Y (Y)
Index register Y consists of 16 bits and the low-order 8 bits can be
used separately. The index register length flag x determines whether
the register is used as 16-bit register or as 8-bit register. It is used as
a 16-bit register when flag x is “0” and as an 8-bit register when flag
x is “1”. Flag x is a part of the processor status register (PS) which is
described later.
In index addressing modes in which register Y is used as the index
register, the contents of this address are added to obtain the real address.
Index register Y functions as a pointer register which indicates an
address of data table in instructions MVP, MVN, RMPA (Repeat
MultiPly and Accumulate).
1570
31
70
PGProgram bank register PG
70
Fig. 6 Register structure
B
H
Accumulator B
Data bank register DTDT
B
L
Accumulator A
1570
Accumulator E
1570
1570
15
1570
150
150
150
15
00000
A
H
A
H
B
H
X
H
H
Y
IPL2IPL1IPL
7
S
PC
DPR0 to DPR3
7
0
NVmxD I ZC
A
L
A
L
B
L
X
L
Y
L
0
0
Index register X
Index register Y
Stack pointer S
Program counter PC
Direct page registers DPR0 to DPR3
0
Processor status register PS
Carry flag
Zero flag
Interrupt disable flag
Decimal mode flag
Index register length flag
Data length flag
Overflow flag
Negative flag
Processor interrupt priority level IPL
13
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
STACK POINTER (S)
Stack pointer (S) is a 16-bit register. It is used during a subroutine
call or interrupts. It is also used during stack, stack pointer relative,
or stack pointer relative indirect indexed Y addressing mode.
PROGRAM COUNTER (PC)
Program counter (PC) is a 16-bit counter that indicates the low-order
16 bits of the next program memory address to be executed. There
is a bus interface unit between the program memory and the CPU,
so that the program memory is accessed through bus interface unit.
This is described later.
PROGRAM BANK REGISTER (PG)
Program bank register is an 8-bit register that indicates the high-order 8 bits of the next program memory address to be executed.
When a carry occurs by incrementing the contents of the program
counter, the contents of the program bank register (PG) is increased
by 1. Also, when a carry or borrow occurs after adding or subtracting
the offset value to or from the contents of the program counter (PC)
using the branch instruction, the contents of the program bank register (PG) is increased or decreased by 1, so that programs can be
written without worrying about bank boundaries.
DATA BANK REGISTER (DT)
Data bank register (DT) is an 8-bit register. With some addressing
modes, the data bank register (DT) is used to specify a part of the
memory address. The contents of data bank register (DT) is used as
the high-order 8 bits of a 24-bit address. Addressing modes that use
the data bank register (DT) are direct indirect, direct indexed X indirect, direct indirect indexed Y, absolute, absolute bit, absolute indexed X, absolute indexed Y, absolute bit relative, and stack pointer
relative indirect indexed Y.
DIRECT PAGE REGISTERS 0 to 3 (DPR0 to DPR3)
The direct page register is a 16-bit register. An addressing mode of
which name includes ‘direct’ generates an address of data to be accessed, regarding the contents of this register as the base address.
The 7900 Series has been expanded direct page registers up to 4
(DPR0 to DPR3), in comparison to the 7700 Series which has the
single direct page register. Accordingly, the 7900 Series’s direct addressing method which uses direct page registers differs from that of
the 7700 Series. However, the conventional direct addressing
method, using only DPR0, is still be selectable, in order to make use
of the 7700 Series software property. For more details, refer to the
section on the direct page.
PROCESSOR STATUS REGISTER (PS)
Processor status register (PS) is an 11-bit register. It consists of
flags to indicate the result of operation and CPU interrupt levels.
Branch operations can be performed by testing the flags C, Z, V , and
N.
The details of each bit of the processor status register are described
below.
1. Carry flag (C)
The carry flag contains the carry or borrow generated by the ALU after an arithmetic operation. This flag is also affected by shift and rotate instructions. This flag can be set and reset directly with the SEC
and CLC instructions or with the SEP and CLP instructions.
2. Zero flag (Z)
The zero flag is set if the result of an arithmetic operation or data
transfer is zero and reset if it is not. This flag can be set and reset
directly with the SEP and CLP instructions.
3. Interrupt disable flag (I)
When the interrupt disable flag is set to “1”, all interrupts except
watchdog timer, NMI, and software interrupt are disabled. This flag
is set to “1” automatically when an interrupt is accepted. It can be set
and reset directly with the SEI and CLI instructions or SEP and CLP
instructions.
___
4. Decimal mode flag (D)
The decimal mode flag determines whether addition and subtraction
are performed as binary or decimal. Binary arithmetic is performed
when this flag is “0”. If it is “1”, decimal arithmetic is performed with
each word treated as 2- or 4- digit decimal. Arithmetic operation is
performed using four digits when data length flag m is “0” and with
two digits when it is “1”. Decimal adjust is automatically performed.
(Decimal operation is possible only with the ADC and SBC instructions.) This flag can be set and reset with the SEP and CLP instructions.
14
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
5. Index register length flag (x)
The index register length flag determines whether index register X
and index register Y are used as 16-bit registers or as 8-bit registers.
The registers are used as 16-bit registers when flag x is “0” and as 8bit registers when it is “1”.
This flag can be set and reset with the SEP and CLP instructions.
6. Data length flag (m)
The data length flag determines whether the data length is 16-bit or
8-bit. The data length is 16 bits when flag m is “0” and 8 bits when it
is “1”. This flag can be set and reset with the SEM and CLM instructions or with the SEP and CLP instructions.
7. Overflow flag (V)
The overflow flag is valid when addition or subtraction is performed
with a word treated as a signed binary number. If data length flag m
is “0”, the overflow flag is set when the result of addition or subtraction is outside the range between –32768 and +32767. If data length
flag m is “1”, the overflow flag is set when the result of addition or
subtraction is outside the range between –128 and +127. It is reset
in all other cases. The overflow flag can also be set and reset directly
with the SEP, and CLV or CLP instructions.
Additionally, the overflow flag is set when a result of unsigned/signed
division exceeds the length of the register where the result is to be
stored; the flag is also set when the addition result is outside range
of –2147483648 to +2147483647 in the RMPA operation.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
8. Negative flag (N)
The negative flag is set when the result of arithmetic operation or
data transfer is negative (If data length flag m is “0”, data’s bit 15 is
“1”. If data length flag m is “1”, data’s bit 7 is “1”.) It is reset in all other
cases. It can also be set and reset with the SEP and CLP instructions.
9. Processor interrupt priority level (IPL)
The processor interrupt priority level (IPL) consists of 3 bits and determines the priority of processor interrupts from level 0 to level 7.
Interrupt is enabled when the interrupt priority of the device requesting interrupt (set using the interrupt control register) is higher than
the processor interrupt priority . When an interrupt is enabled, the current processor interrupt priority level is saved in a stack and the processor interrupt priority level is replaced by the interrupt priority level
of the device requesting the interrupt. Refer to the section on interrupts for more details.
Note: Fix bits 11 to 15 of the processor status register (PS) to “0”.
15
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
BANK
In order to effectively use the integrated hardware on the chip, this
CPU core uses an address generating method with a 24-bit address
split into high-order 8 bits and low-order 16 bits. In other words, the
64 Kbytes specified by the low-order 16 bits are one unit (referred to
as “bank”), and the address space is divided into 256 banks (016 to
FF16) specified by the high-order 8 bits.
In the program area on the address space, the bank is specified by
the program bank register (PG), and the address in the bank is
specified by the program counter (PC).
As for each bank boundary, when an overflow has occurred in PC,
the contents of PG are incremented by 1. When a borrow has occurred in PC, the contents of PG are decremented by 1. Under the
normal conditions, therefore, programming without concern for the
bank boundaries is possible. Furthermore, as for the data area on
the address space, the bank is specified by the data bank register
(DT), and the address in the bank is specified by the operation result
by using the various addressing modes (Note).
Note: Some addressing modes directly specify a bank.
DIRECT PAGE
The internal memory and control registers for internal peripheral devices, etc. are assigned to bank 016 (addresses 016 to FFFF16). The
direct page and direct addressing modes have been provided for the
effective access to bank 016. In the 7900 Series, two types of direct
addressing modes are available: the conventional direct addressing
mode which uses only DPR0, as in the 7700 Series, and the expanded direct addressing mode, which uses up to 4 direct page registers as selected by the user. The addressing mode is selected
according to the contents of bit 1 of the processor mode register 1.
This bit 1 is cleared to “0” at reset. (In other words, the conventional
direct addressing mode is selected.) However, once this bit 1 has
been set to “1” by software, this bit cannot be cleared to “0” again,
except by reset. That is to say , when one of these two direct addressing modes has been selected just after reset, the selected addressing mode cannot be switched to another one while the program is
running.
Refer to “7900 Series Software Manual” for details concerning the
various addressing modes which use the direct page area.
Instruction Set
The CPU core of the 7900 Series has an expanded instruction set
based on the existing 7700/7751 Series’ CPU core. In addition, its
source code (mnemonic) has the complete upper compatibility with
the 7700 Series instruction set.
For details concerning addressing modes and instruction set, refer to
“7900 Series Software Manual”.
■ Conventional direct addressing mode
The direct page area consists of 256-byte space. Its bank address is
“0016”, and the base address of its low-order 16-bit address is specified by the contents of the direct page register 0 (DPR0). In this conventional direct addressing modes, a value (1 byte) just after an
instruction code is regarded as an offset value for the DPR0 contents, and the CPU accesses each address in the direct page area.
■ Expanded direct addressing mode
The direct page area consists of four 64-byte spaces. Their bank
address is “0016”, and the four base addresses of their low-order 16bit addresses are respectively specified by the contents of four direct
page registers. In this expanded direct addressing mode, a value (1
byte) just after an instruction code is regarded as follows:
• High-order 2 bits: regarded as a selection field for DPR0 to DPR3.
• Low-order 6 bits: regarded as an offset value for the selected direct
page register.
Then, the CPU accesses each address in each direct page area:
16
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
BUS INTERFACE UNIT
Data transfer shown below is always performed via the bus interface
unit (BIU), which is located between the CPU and the internal buses:
• Between the CPU and the internal memory, internal peripheral devices, external areas
• Between the DMA controller (DMAC) and the internal memory, internal peripheral devices, external areas
Figure 7 shows the BIU and the bus structure. The CPU and BIU, or
DMAC and BIU are connected by a dedicated bus respectivery, and
any transfer between the CPU and BIU, or DMAC and BIU is controlled by this dedicated bus.
On the other hand, data transfer between the BIU and internal peripheral devices uses the following internal common buses: 32-bit
code bus, 16-bit data bus, 24-bit address bus, and control signals.
The bus control method where the code bus and the data bus separate out (hereafter, this method is referred to as the separate code/
data bus method) is employed in order to improve data transfer ca-
Central
Processing
Unit
(CPU)
CPU bus
Bus
Interface
Unit
(BIU)
Internal code bus (CB0 to CB31)
Internal data bus (DB0 to DB15)
Internal address bus (AD0 to AD23)
Internal control signal
pabilities. As a result, the internal memory is connected to both the
code bus and the data bus, and registers of all other internal peripheral devices are connected only to the data bus.
Each width of external buses are as follows: a 24-bit address bus,
16-bit data bus.
The external data bus transfers instruction codes and data. When
the code or data access occurs for the external, the external access
is performed via the bus conversion circuit.
When the DRAM is selected in external devices, the internal DMAC
controller (DRAMC) is operated, and access for DRAM and DRAM
refresh operation become enabled. For details, refer to the section
on the chip select wait controller and DRAMC described later.
When accessing the external devices, it is possible to insert the recovery cycles. Refer to the section on the processor modes and chip
select wait controller described later.
When the burst ROM is used as an external device, refer to the section on the chip select wait controller described later.
Internal bus
Internal
memory
DMA
controller
(DMAC)
SFR : Special Function Register
❈ The CPU bus, DMAC bus, internal bus, and external bus separate out independently.
DMAC bus
Refresh request
Hold request
Fig. 7 BIU and bus structure
Internal
peripheral
devices
(SFR)
DRAM
controller
(DRAMC)
conversion
circuit
Bus
External bus
DRAM control signal
A0 to A23 (MA0 to MA11)
D
0
to D
7
D8 to D
15
Control signal
HOLD
HLDA
External
devices
17
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
BIU structure
The BIU consists of four registers shown in Figure 8. Table 1 lists the
functions of each register.
Table 1. Functions of each register
Name
Program address register
Instruction queue buffer
Data address register
Data buffer
Indicates a storage address for an instruction to be next taken into an instruction queue buffer.
Temporarily stores an instruction which has been taken from a memory. Consists of 10 bytes.
Indicates an address where data will be next read from or written to.
Temporarily stores data which has been read from internal memory, internal peripheral devices, and
external areas by the BIU; or temporarily stores data which is to be written to internal memory, internal
peripheral devices, and external areas by the CPU or DMAC. Consists of 32 bits.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
Functions
Fig. 8 Register structure of BIU
b23
PA
b23b0
DA
b31b0
DQ
b0
b7b0
Q0
Q9
Program address register
Instruction queue buffer
Data address register
Data buffer
18
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
BIU Functions
(1) Instruction prefetch
The BIU has ten instruction queue buffers; each buffer consists of 1
byte. When there is an opening in the bus and the instruction queue
buffer, an instruction code is read from the program memory (in other
words, the memory where a program is stored) and prefetched into
an instruction queue buffer. The prefetched instruction code is transferred from the BIU to the CPU, in response to a request from the
CPU, via a dedicated bus.
When a branch occurs as a result of a branch instruction (JMP, BRA,
etc.), subroutine call, or interrupt, the contents of the instruction
queue buffer are initialized and the BIU reads a new instruction from
the branch destination address.
Note that the operations of the BIU instruction prefetch also differ depending on the store addresses for instructions. The store addresses
for instructions to be prefetched are categorized as listed in Table 2.
(2) Data read operation
When executing an instruction for reading data from the internal
memory, internal peripheral devices, or external areas, at first, the
CPU informs the BIU’s data address register of the address where
the data has been located.
Next, the BIU reads the above data from the specified address,
passes it to the data buffer, and then, transfers it to the CPU.
(3) Data write operation
When executing an instruction for writing data into the internal
memory, internal peripheral devices, or external area, at first, the
CPU informs the BIU’s data address register of the address where
the data has been located.
Next, the BIU passes the above data to the data buffer register, and
then, writes it into the specified address.
(4) Bus cycle
In order for the BIU to execute the above operations (1) through (3),
the 24-bit address bus, 32-bit code bus, 16-bit data bus and internal
control signals must be appropriately controlled during data transfer
between the BIU and internal memory, internal peripheral devices,
external areas. This operation is called “bus cycle”. The bus cycle is
affected by the following conditions at instruction prefetch and data
access.
[Instruction prefetch]
• Whether the address area locates in the internal area or the external area.
• When the address area locates in the external area
➀ Whether the bus width of external devices = 16 bits or 8 bits:
(a) When the external bus width = 16 bits:
whether the start address for access locates at a 4byte boundary or at an 8-byte boundary.
(b) When the external bus width = 8 bits:
whether the start address for access locates at an
even-numbered address, a 4-byte boundary or at the 8byte bound ary.
➁ Whether the prefetch operation is generated by a branch, or
not.
➂ Number of waits
➃ Others: Whether any the burst ROM access and the DRAM
space is specified or not. (For details, refer to the section on
the chip select wait controller and DRAM controller described
later.)
Table 2. Store addresses for instructions to be prefetched
• Whether the address area locates in the internal area or the external area.
• Length of data to be transferred: byte, word, double word
• When the address area locates in the external area:
➀ Whether the bus width of external devices = 16 bits or 8 bits:
➁ Number of waits
➂ Others: Whether the DRAM space is specified or not. (For
details, refer to the section on the chip select wait controller
and DRAM controller described later.)
The BIU controls the bus cycle depending on the above conditions.
Instruction prefetch and data access are performed as shown in
Tables 3 to 10.
X
X
0
AD1 (A1)
X
0
0
AD0 (A0)
0
0
0
19
PRELIMINARY
Access to internal area
Access to external area
When address locates at 4-byte boundary or when branched:
double consecutive access
When branched or at instruction
prefetch
When external data bus width = 16 bitsWhen external data bus width = 8 bits
φ
BIU
Internal address bus
Internal code bus
CB
31
to CB
0
Code
φ
1
A
23
to A
0
D
7
to D
0
D
15
to D
8
ALE
RD
BLW
BHW
D
7
to D
0
D
7
to D
0
D
15
to D
8
D
15
to D
8
AddressAddress + 2
When address of instruction to be prefetched locates at 8-byte boundary:
quadruple consecutive access
φ
1
A
23
to A
0
D
7
to D
0
D
15
to D
8
ALE
RD
BLW
BHW
D
7
to D
0
D
7
to D
0
D
7
to D
0
D
7
to D
0
D
15
to D
8
D
15
to D
8
D
15
to D
8
D
15
to D
8
AddressAddress + 2
Address + 4Address + 6
When address is even-numbered address or when branched:
double consecutive access
φ
1
A
23
to A
0
D
7
to D
0
ALE
RD
BLW
BHW
D
7
to D
0
D
7
to D
0
AddressAddress + 1
When address of instruction to be prefetched locates at 4-byte boundary or
8-byte boundary: quadruple consecutive access
φ
1
A
23
to A
0
D
7
to D
0
ALE
RD
BLW
BHW
D
7
to D
0
D
7
to D
0
D
7
to D
0
D
7
to D
0
AddressAddress + 1
Address + 2Address + 3
Internal RAM
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
20
Table 3. Instruction prefetch
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 4. Data access (1)
Access starting from even-numbered addressAccess starting from odd-numbered address
φ
1
A23 to A
0
D7 to D
Byte
data
read
D15 to D
ALE
BLW
BHW
0
8
RD
Address
D7 to D
Invalid
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
φ
1
A23 to A
0
D7 to D
D15 to D
ALE
BLW
BHW
0
8
RD
0
Address
Invalid
D15 to D
8
φ
1
A23 to A
0
D7 to D
Byte
data
written
Word
External data bus width = 16 bits
data
read
D15 to D
ALE
BLW
BHW
φ
1
A23 to A
D7 to D
D15 to D
ALE
BLW
BHW
0
8
RD
0
0
8
RD
Address
D7 to D
Address
D7 to D
D15 to D
φ
1
A23 to A
0
D7 to D
D15 to D
ALE
BLW
BHW
φ
1
A23 to A
D7 to D
D15 to D
ALE
BLW
BHW
0
8
RD
0
0
8
RD
0
0
8
Address
D15 to D
8
AddressAddress + 1
Invalid
D15 to D
8
D7 to D
Invalid
0
Word
data
written
φ
1
A23 to A
D7 to D
D15 to D
ALE
BLW
BHW
RD
φ
1
0
0
8
Address
D7 to D
D15 to D
A23 to A
0
D7 to D
D15 to D
ALE
BLW
BHW
0
8
RD
0
8
AddressAddress + 1
D7 to D
D15 to D
8
0
21
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 5. Data access (2)
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Access starting from even-numbered address
φ
1
A23 to A
0
D7 to D
D15 to D
ALE
BLW
BHW
φ
1
A23 to A
D7 to D
D15 to D
ALE
BLW
BHW
0
8
RD
0
0
8
RD
Double
word
data
read
Double
External data bus width = 16 bits
word
data
written
AddressAddress + 1
D7 to D
D15 to D
AddressAddress + 1
D7 to D
D15 to D
Access starting from odd-numbered address
φ
1
A23 to A
0
D7 to D
D15 to D
ALE
BLW
BHW
φ
1
A23 to A
D7 to D
D15 to D
ALE
BLW
BHW
0
8
RD
0
0
8
RD
D7 to D
D15 to D
D7 to D
D15 to D
0
8
0
8
0
8
0
8
AddressAddress + 1Address + 2
Invalid
D15 to D
8
D7 to D
D15 to D
0
8
D7 to D
Invalid
AddressAddress + 1Address + 2
D7 to D
D15 to D
0
8
D15 to D
8
D7 to D
0
0
22
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 6. Data access (3)
Access starting from even- or odd-numbered address
φ
1
A23 to A0
D7 to D0
D15 to D8
Byte
data
read
ALE
RD
BLW
BHW
(Note)
(Note)
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Address
D7 to D0
φ
1
A23 to A0
D7 to D0
D15 to D8
Byte
data
written
External data bus width = 8 bits
Word
data
read
Word
data
written
ALE
BLW
BHW
φ
A23 to A0
D7 to D0
D15 to D8
ALE
BLW
BHW
φ
A23 to A0
D7 to D0
D15 to D8
ALE
BLW
BHW
(Note)
RD
(Note)
1
(Note)
RD
(Note)
1
(Note)
RD
(Note)
Address
AddressAddress + 1
AddressAddress + 1
D7 to D0
D7 to D0D7 to D0
D7 to D0D7 to D0
Note: When the voltage level at pin BYTE = “L”, functions as pins D15 to D8 are valid.
However, when 8-bit width is selected as the external bus width by the chip select
15
wait controller, the functions as pins D
to D8 and BHW become invalid.
When the voltage level at pin BYTE = “H”, these pins function as programmable
I/O port (P2) pins.
23
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 7. Data access (4)
Access starting from even- or odd-numbered address
φ
1
A23 to A
0
D7 to D
Double
word
data
read
0
D15 to D8(Note)
ALE
RD
BLW
BHW
(Note)
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
AddressAddress + 1Address + 2Address + 3
D7 to D
D7 to D
0
0
D7 to D
0
D7 to D
MITSUBISHI MICROCOMPUTERS
0
φ
1
A23 to A
0
D7 to D
Double
word
External data bus width = 8 bits
data
written
0
D15 to D8(Note)
ALE
RD
BLW
BHW
(Note)
AddressAddress + 1Address + 2Address + 3
D7 to D
D7 to D
0
0
D7 to D
0
D7 to D
0
Note: When the voltage level at pin BYTE = “L”, functions as pins D15 to D8 are valid. However, when 8-bit width is selected as
the external bus width by the chip select wait controller, the functions as pins D15 to D8 and BHW become invalid. When
the voltage level at pin BYTE = “H”, these pins function as programmable I/O port (P2) pins.
24
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 8. Wait number (Instruction prefetch or data access)
Access to internal areaAccess to external area
φ
BIU
Internal address bus
Internal code bus
CB
31
to CB
0
φ
BIU
Internal address bus
Internal data bus
DB
15
to DB
0
Code
Data
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
A23 to A
External data bus
0-wait access
φ
1
0
ALE
RD,
BLW,
BHW
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
Data
1-wait access
φ
1
A23 to A
External data bus
ALE
RD,
BLW,
BHW
2-wait access
φ
1
A23 to A
External data bus
ALE
RD,
BLW,
BHW
0
Data
0
Data
ALE expansion wait access
φ
1
A23 to A
0
External data bus
ALE
RD,
BLW,
BHW
Data
25
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
At double consecutive access (when address locates at 4-byte boundary or when branched)
φ
1
A23 to A0
ALE
RD
At quadruple consecutive access (when address locates at 8-byte boundary)
Instruction prefetch
Address
Address + 2
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Recovery
cycle
Next access cycle
Address
φ
1
A23 to A0
ALE
RD
AddressAddress + 4
Note: External data bus width = 16 bits and at 0 wait.
Fig. 9 Recovery cycle (at instruction prefetch)
Access
cycle
φ1
A23 to A0
ALE
RD,
BLW, BHW
Recovery
cycle
Address
Instruction prefetch
Address + 2
Next access cycle
Address + 6
Next access cycle
Address
Note: At 0 wait.
Fig. 10 Recovery cycle (at data access)
26
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Selection of processor mode
Figures 11, 12 show the bit configurations of the processor mode
registers 0, 1.
Any of the three processor modes (single-chip mode, memory expansion mode, microprocessor mode) can be selected with the following:
• Processor mode bits of the processor mode register 0 (bits 1 and 0
at address 5E16; Figure 11)
Table 9 lists the selection method of a processor mode.
The memory map which the CPU can access depends on the selected processor mode. Figure 13 shows the memory maps in three
processor modes.
Also, the functions of ports P0 to P4, P10, P11, and part of port P9
depend on the selected processor mode. For details, see Table 10.
In the single-chip mode, ports P0 to P4, P10, P11, and P9 function
as I/O ports. In this mode, only the internal area (SFRs, internal
RAM, internal ROM) is accessible.
In the memory expansion and microprocessor modes, external devices assigned in the external memory area can be connected via
buses. Therefore, ports P0 to P4, P10, P1 1, and part of port P9 function as I/O pins for the address bus, data bus, bus control signals.
(Some of port functions are selectable.)
In the memory expansion mode, all of the internal area (SFRs, internal RAM, internal ROM) and external area are accessible. In the microprocessor mode, the internal area except for the internal ROM (in
other words, SFRs and internal RAM) and the external area are accessible.
Note that, when the external devices are located to an area where
the internal area and external area overlap, only the internal area
can be read/written; the external area cannot be read/written.
Table 11 lists each bus control signal’s function.
Address
16
5E
Fig. 11 Bit configuration of processor mode register 0
0 0 : 7 cycles of φ
0 1 : 4 cycles of φ
1 0 : 2 cycles of φ
1 1 : Do not select.
Software reset bit
By a write of “1” to this bit, the microcomputer will be reset, and then, restarted.
1
output select bit
Clock φ
1
output is disabled. (P41 functions as an programmable I/O port pin.)
0 : φ
1
output is enabled. (P41 functions as the clock φ1 output pin.)
1 : φ
27
PRELIMINARY
g
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
76543210
00
Notes 1: After reset, this bit’s contents can be switched only once. During the software execution, be sure not to switch this bit’s contents.
2: In the single-chip mode, these bits’ functions are disabled regardless of these bits’ contents.
SS
3: While V
4: In the memory expansion or microprocessor mode, if this bit’s contents is switched from “1” to “0”, this bit will be cleared to “0”.
5: In the microprocessor mode, this bit is invalid.
level voltage is applied to pin MD0, each of these bits is “0” at reset. While VCC level voltage is applied to pin MD0,
on the other hand, each of these bits is “1” at reset.
After this clearance, this bit cannot return to “1”. If it is necessary to set this bit to “1”, be sure to reset the microcomputer.
When the internal flash memory is repro
Processor mode register 1
Fix this bit to “0”.
Direct page register switch bit (Note 1)
0 : Only DPR0 is used.
1 : DPR0 to DPR3 are used.
RDY input select bit (Notes 2 to 4)
0 : RDY input is disabled. (P3
1 : RDY input is enabled. (P3
ALE output select bit (Notes 2 and 3)
0 : ALE output is disabled. (P4
1 : ALE output is enabled. (P4
Recovery cycle insert select bit (Notes 2 and 3)
0 : No recovery cycle is inserted at access to the external area.
1 : Recovery cycle is inserted at access to the external area.
HOLD input, HLDA output select bit (Notes 2 to 4)
0 : HOLD input and HLDA output are disabled.
3
and P44 function as programmable I/O port pins.)
(P4
1 : HOLD input and HLDA output are enabled.
3
and P44 function as pins HOLD and HLDA, respectively.)
(P4
“0” at read.
Internal ROM access wait bit (Note 5)
0 : 1 wait
1 : 0 wait
rammed in the CPU reprogramming mode, be sure to clear this bit to “0”.
Address
16
5F
0
functions as a programmable I/O port pin.)
0
functions as pin RDY.)
0
functions as a programmable I/O port pin.)
0
functions as pin ALE.)
Fig. 12 Bit configuration of processor mode register 1
Table 9. Selection method of processor mode
MD0
• Single-chip mode
•
VSS
• Microprocessor mode
Mode
Memory expansion mode
Description
After reset is removed, the
single-chip mode is selected.
By changing the processor
mode bits’ contents by software, the single-chip mode,
memory expansion mode or
microprocessor mode can be
selected.
• Microprocessor mode
VCC
After reset is removed, the microprocessor mode is selected.
Single-chip
mode
0
16
SFR
FF
16
Unused area
RAM
Unused area
ROM
FEFFFF
FFFFFF
: External memory area.
Note: Do not access this area.
Memory expansion
mode
SFR
RAM
ROM
16
FF0000
16
Reserved area
(Note)
16
Microprocessor
mode
SFR
RAM
Reserved area
(Note)
28
Fig. 13 Memory maps in three processor modes
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 10. Relationship between processor modes, memory area, and port function
Single-chip mode
Mode
(Note 1)
Pin MD0
Processor mode
bits (Note 2)
SFR area
Internal RAM area
Internal ROM area
Other area
Memory area
Port pins P100 to P107
Port pins P110 to P1 17
Port pins P00 to P07
External data bus
Port pins
P10 to P17
width = 16 bits
External data bus
VSS level voltage is applied
00
SFR area
Internal RAM area
Internal ROM area
(Do not access.)
I/O port pins P100 to P107
I/O port pins P110 to P117
I/O port pins P00 to P07
I/O port pins P10 to P17
width = 8 bits
I/O port pins P20 to P27
I/O port pin P30
I/O port pin P31
I/O port pin P32
Port pins
P20 to P27
Port pin P30
Port pin P31
Port pin
P32
External data bus
width = 16 bits
External data bus
width = 8 bits
External data bus
width = 16 bits
External data bus
width = 8 bits
Port pin
P33
External data bus
width = 16 bits
External data bus
I/O port pin P33
width = 8 bits
Port pin P40
Port pin P41
Port pin P42
Port pin P43
Port pin P90
Port pins P91 to P93
Notes 1: For details of the processor mode setting, see Table 9.
2: Processor mode bits = bits 1 and 0 of the processor mode register 0 (address 5E
3: While DRAM space is accessed, the multiplexed address is output.
4: In the memory expansion mode, by the corresponding select bits of the processor mode register 0 and 1 (addresses 5E
3 can operate as pins for RDY input, ALE output, φ1 output, HLDA output, HOLD input, respectively.
P4
In the microprocessor mode, by the above select bits, the above pins (RDY, ALE,
tively.
5: In the memory expansion mode, port pin P9
6: In the memory expansion and microprocessor modes, port pins P91 to P93 can operate as the CS1/CS2/CS3 output pins by the CSi output select bits (i =
1 to 3) (bit 7s at addresses 82
I/O port pin P40
I/O port pin P41
Clock
φ
1 is output (Note 4).
I/O port pin P42
I/O port pin P43
I/O port pin P90
I/O port pins P91 to P93
16, 8416, 8616).
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Memory expansion mode
VSS level voltage is applied
01
SFR area
Internal RAM area
Internal ROM area
External memory area
Low-order address (A0 to A7) is output.
Middle-order address (A8 to A15) is output.
Multiplexed address (MA0 to MA7) is output
(Note 3)
High-order address (A16 to A23) is output.
Multiplexed address (MA8 to MA11) is out-
put(Note 3)
Low-order data (D0 to D7, data at even-
numbered address) is input/output.
Low-order data (D0 to D7, data at even-/
odd-numbered address) is input/output.
Low-order data (D0 to D7, data at odd-num-
bered address) is input/output.
I/O port pins P20 to P27
I/O port pin P30
Ready signal RDY is input (Note 5).
Read signal RD is output.
Write signal BLW (write to even-numbered
address) is output.
Write signal BLW (write to even-/odd-num-
bered address) is output.
Write signal BHW (write to odd-numbered
address) is output.
I/O port pin P33
I/O port pin P40
Address latch enable signal ALE is output (Note 4).
I/O port pin P41
Clock
φ
1 is output (Note 4).
I/O port pin P42
Hold acknowledge signa HLDA is output (Note 4).
I/O port pin P43
Hold request signal HOLD is input (Note 4).
I/O port pin P90
Chip select signal CS0 is output (Note 5).
I/O port pins P91 to P93
C
hip select signals CS1 to CS3 are output (Note 6).
16).
φ
1, HLDA, HOLD) can operate as port pins P30, P40 to P43, respec-
0 can operate as the CS0 output pin by the CS0 output select bit of the CS0 control register L (bit 7 at address 8016).
Microprocessor mode
VCC level voltage is applied
10
SFR area
Internal RAM area
External memory area
External memory area
Low-order address (A0 to A7) is output.
Middle-order address (A8 to A15) is output.
Multiplexed address (MA0 to MA7) is
output(Note 3)
High-order address (A16 to A23) is output.
Multiplexed address (MA8 to MA11) is
output(Note 3)
Low-order data (D0 to D7, data at even-
numbered address) is input/output.
Low-order data (D0 to D7, data at even-/
odd-numbered address) is input/output.
Low-order data (D0 to D7, data at odd-
numbered address) is input/output.
I/O port pins P20 to P27
Ready signal RDY is input.
I/O port pin P30 (Note 5)
Read signal RD is output
Write signal BLW (write to even-num-
bered address) is output.
Write signal BLW (write to even-/odd-
numbered address) is output.
Write signal BHW (write to odd-num-
bered address) is output.
I/O port pin P33
Address latch enable signal ALE is output.
I/O port pin P40(Note 4)
Clock
φ
1 is output.
I/O port pin P41(Note 4)
Hold acknowledge signal HLDA is output.
I/O port pin P42(Note 4)
Hold request signal HOLD is input.
I/O port pin P43(Note 4)
Chip select signal CS0 is output.
I/O port pin P91 to P93
Chip select signals CS1 to CS3 are output (Note 6).
16, 5F16), port pins P30, P40 to
29
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
Table 11. Each bus control signal’s function
Signal
RD
I/O
Output
Read signal. Outputs “L” at read from the external area.
MITSUBISHI MICROCOMPUTERS
M37920FCCGP, M37920FCCHP
M37920FGCGP, M37920FGCHP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER FLASH MEMORY VERSION
Function
Remarks
BLW
BHW
ALE
φ
1
RDY
HOLD
HDLA
CS0–CS3
BYTE
Output
Write signal. Outputs “L” at write to the external area.
Output
Address latch enable signal. Outputs “H” level pulse in the
period just before signals RD, BLW, BHW become “L”.
This is used to latch an address in the external.
Output
Internal standard clock’s output. Outputs system clock
(fsys).
Input
Ready signal. The “L” level period of the last
cess cycle for the external area (in other words, “L” level
period of RD, BLW, BHW) will be extended while “L” level
voltage is applied to this pin.
Input
Hold request signal. Appliance of “L” level voltage will generate a hold request; appliance of “H” level voltage will request to terminate the hold state.
Output
Hold acknowledge signal. Outputs “L” in the hold state.
Output
Chip select signal. Outputs “L” in access to the specified
chip select area.
Input
Input signal to select the external data bus width. When
this pin’s level = Vss, 16-bit width will be selected; and
when Vcc, 8-bit width will be selected.
φ
1 in the ac-
For operation differences between BLW and BHW depending on the external data bus width, see Table 5.
In order to latch an address with signal ALE, do as follows:
• While ALE = “H”, be sure to open a latch, so the address
will pass it.
• While ALE = “L”, be sure to hold the address.
Acceptance and termination of a hold request is performed
at completion of the bus cycle while the BIU operates.
In the hold state, A
CS0–CS3 enter the floating state. At termination of the hold
state, simultaneously with the timing when HLDA becomes
“H” level, the above floating state is terminated. Then, bus
access will be restarted 1 cycle of
In the hold state, also, the CPU operates with access to
the internal area. If the CPU accesses the external area, in
the hold state, the CPU stops its operation.
For details, refer to the section on the chip select wait controller.
When BYTE = Vss level, by the register setting, each chip
select area (CS1 to CS3) can have the 8-bit data bus, independently.
For details, refer to the section on the chip select wait controller.
0–A23, D0–D15, RD, BLW, BHW, ALE,
φ
1 after.
30
Loading...
+ 128 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.