The M32000D4BFP-80 is a new generation microcomputer with a
32-bit CPU and built-in high capacity DRAM. Using this device it is
possible to implement the complex applications of the multimedia
age with high performance and low power consumption.
The M32000D4BFP-80 contains 2M bytes of DRAM and 4K bytes of
cache memory. The CPU is implemented with a RISC architecture
and has a high performance figure of 62.9 MIPS (at an internal clock
rate of 80 MHz). Memory for main storage is provided internally to
the device eliminating external memory and associated control circuits thus reducing overall system noise and power consumption.
The CPU, internal DRAM and cache memory are connected by a
128-bit, 12.5 ns/cycle (at internal 80MHz) internal bus which virtually
eliminates transfer bottlenecks in between the CPU and the memory.
The M32000D4BFP-80 internally multiplies the frequency of the input clock signals by four. For an internal operating frequency of 80
MHz the input clock frequency is 20 MHz.
A 16-bit data and 24-bit address bus are the M32000D4BFP-80's
external bus and the interface to external peripheral controllers. When
the hold state is set, the internal DRAM can be accessed from an
external device.
A 3-chip basic system configuration using the M32000D4BFP-80 is
the device itself plus an ASIC as a peripheral controller and a program ROM. Execution starts from the reset vector entry on the external ROM after power on, a program requiring high speed execution
is then transferred to internal DRAM and this is then executed. The
M32000D4BFP-80 also has a slave mode additional to its master
mode. When set to slave mode the M32000D4BFP-80 can be used
as a coprocessor. In this mode it does not access its external bus
immediatly after reset, but waits for the master to start its operation.
FEATURES
CPU ..........................................................M32R family CPU core
• instruction set
16-bit/32-bit instruction format
83 instructions/6 addressing modes
• multiply-accumulate operation built in
• internal DRAM control, refresh control
• power management function (standby mode, CPU sleep mode selection control)
____ ____
4
PIN FUNCTION DIAGRAM
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
clock
system control
address bus
data bus
CLKIN
PLLCAP
PLLVCC
PLLVSS
RST
M/S
WKUP
STBY
A8 - A30
D0 - D15
23
16
SID
BCL
BCH
BS
ST
R/W
BURST
DC
HREQ
HACK
CS
M32000D4BFP-80
INT
SBI
PP0
PP1
bus control
interrupt input
programmable I/O port
1615
VCC VSS
5
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION (1/3)
typepin namenameI/Ofunction
powerVCCpower source–All power source pins should be connected to VCC.
sourceVSSground–All ground pins should be connected to VSS.
clockCLKINclock inputinputClock input pin. The M32000D4BFP-80 has an internal PLL
PLLCAPC connection–Connects a capacitor for the internal PLL.
for PLL
PLLVCCpower source–Power source for the internal PLL.
for PLL
PLLVSSground–Ground for the internal PLL.
system
controlfrom standby mode and CPU sleep mode.
____
RSTresetinputInternally resets the M32000D4BFP-80. It is also used to return
_
M/Smaster/slaveinputSets the M32000D4BFP-80 default operation to either system
______
WKUPwakeupinputInput pin to request return from standby mode.
_____
STBYstandbyoutputIndicates that the M32000D4BFP-80 has switched to standby
for PLL
addressA8 to A30address busI/OThe M32000D4BFP-80 has a 24-bit address (A8 to A31) bus for
bus(Hi-Z)*a 16 MB address space. A31 is not output. During the write
data busD0 to D15data busI/O16-bit data bus for connecting to external devices.
(Hi-Z)*
* (Hi-Z): This pin goes to high-impedance in the hold state.
multiplier circuit, and an input clock which is 1/4 of the internal
operating frequency (when the internal operating frequency is
80 MHz, the CLKIN input is 20 MHz).
bus master (M/S = "H") or bus slave (M/S = "L").
__
When the M32000D4BFP-80 is set to bus slave, it does not carry
out a reset vector entry fetch after a reset.
The setting of M/S cannot be changed during operation.
_
Keep at either an "H" or an "L" level.
This is only accepted when STBY is "L" level.
_____
It generates the wakeup interrupt.
mode. An "L" level is output while the device is in standby
mode.
cycle, the valid byte positions on the 16-bit data bus are output
____ ____
as BCH or BCL. During the read cycle, the 16-bit data bus is
read, however,only data in the valid byte positions is transferred
to the M32000D4BFP-80.
Address bus pins are bidirectional. When accessing the internal
DRAM from an external bus master while the M32000D4BFP-80
is in the hold state, input the address from the system bus side.
6
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION (2/3)
typepin namenameI/Ofunction
busSIDspaceoutputSpace identifier between user space and I/O space.
controlidentifier(Hi-Z)*SID = "L": user space
____ ____
BCH, BCLbyte controlI/OIndicates the valid byte positions of transferred data.
(Hi-Z)*
__
BSbus startoutput__When the M32000D4BFP-80 drives an external bus cycle, BS
(Hi-Z)*
STbus statusoutputIndicates whether the bus cycle that the M32000D4BFP-80 drives
(Hi-Z)*
__
R/Wread/writeI/O
(Hi-Z)*
______
BURSTburstoutputThe M32000D4BFP-80 drives two consecutive bus cycles to access
(Hi-Z)*
* (Hi-Z): This pin goes to high-impedance in the hold state.
SID = "H": I/O space
SID = undefined: when idle
________
BCH corresponds to the MSB side (D0 to D7), and BCL corresponds
to the LSB side (D8 to D15). During a read bus cycle, both BCH
____
and BCL are an "L" level.
________
During a write bus cycle, either BCH and/or BCL is an "L" level
depending on the byte(s) to be written.
When accessing the internal DRAM from an external bus master,
the byte control signal is input from the system bus side.
goes to an "L" level at the start of the bus cycle.
In burst transfer, BS goes to the "L" level for each transfer
cycle. When accessing internal resources such as an internal
DRAM or internal I/O register, BS is not output.
__
__
is an instruction fetch access cycle or an operand access cycle.
ST = "L": for instruction fetch access
ST = "H": for operand access
ST = undefined: when idle
__
Outputs R/W to identify whether the external bus cycle a read or
a write cycle. When accessing the internal DRAM from an external
__
bus master, R/W is input from the external bus.
32-bit data allocated on the 32-bit word boundary.
For instruction fetches, it drives 8 (max.) consecutive cycles
(8 cycles in instruction cache mode) to data on the 128-bit boundary.
______
During these consecutive bus cycles, BURST goes to "L" level.
When accessing 32-bit data, an "L" level followed by an "H" level
is output from address A30, because the MSB-side 16 bits are
accessed prior to the LSB-side 16 bits.
When accessing 128-bit data, the addresses are output from an
arbitrary 16-bit aligned address and wraparound within a 128-bit
aligned boundary.
____
7
MITSUBISHI MICROCOMPUTERS
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION (3/3)
type pin name name I/O function
bus
control
(cont.) device in the system bus.
interrupt
controller
programm- PP0, PP1 port I/O Two programmable I/O ports.
able I/O port
* This pin goes to high-impedance in the hold state.
__ __
The DC pin becomes an output pin when the CS signal is input to the M32000D4BFP-80.
__
DC* data complete I/O When the M32000D4BFP-80 drives an external bus cycle, it
(Hi-Z)
automatically inserts wait cycles until DC is input by the slave
When the M32000D4BFP-80 is in the hold state and the internal
DRAM is accessed from an external bus master,the
M32000D4BFP-80 outputs DC to notify to the external bus master
______
HREQ hold input
_____
HACK hold output Indicates that the M32000D4BFP-80 has switched to the hold
__
CS chip input Signal input to the M32000D4BFP-80 when it is in the hold state
acknowledge state and releases the bus right of the system bus to the requestor.
that the bus cycle to the internal DRAM has been completed.
Bus right request input pin of the system bus. When HREQ is an
"L" level, the M32000D4BFP-80 switches to the hold state.
select to request access to the internal DRAM from an external bus
master. When an "L"level is input to CS, the M32000D4
BFP-80 accesses the internal DRAM at the address input via
___
SBI system input
break
___
INT external input External interrupt request input pin. It is also used to return from
interrupt
the address pins.
System break interrupt input pin. The SBI is not masked by the
IE bit in the PSW register. It is also used to return from CPU
sleep mode and to request the start of operation in slave mode.
interrupt CPU sleep mode and to request the start of operation the slave
mode.
M32000D4BFP-80
__
__
______
__
___
8
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
FUNCTIONAL DESCRIPTION
CPU
The M32R CPU has 16 general-purpose registers, 5 control registers, an accumulator and a program counter. The accumulator is of
64-bit width. The registers and program counter are of 32-bit width.
General-purpose registers
The 16 general-purpose registers (R0 - R15) are of 32-bit width and
are used to retain data and base addresses. R14 is used as the link
register and R15 as the stack pointer (SPI or SPU). The link register
is used to store the return address when executing a subroutine call
instruction. The interrupt stack pointer (SPI) and the user stack pointer
(SPU) are alternatively represented by R15 depending on the value
of the stack mode bit (SM) in the processor status word register (PSW).
R0
R1
R2
R3
R4
R5
R6
R7
310
R8
R9
R10
R11
R12
R13
R14 (link register)
R15 (stack pointer)
310
(see note)
Control registers
There are 5 control registers which are the processor status word
register (PSW), the condition bit register (CBR), the interrupt stack
pointer (SPI), the user stack pointer (SPU) and the backup PC (BPC).
The MVTC and MVFC instructions are used for writing and reading
these control registers.
SPI
SPU
BPC
310
processor status word register
condition bit register
interrupt stack pointer
user stack pointer
backup PC
(see notes)
CRn
CR0
CR1
CR2
CR3
CR6
Notes 1: CRn (n = 0 - 3, 6) denotes the control register number.
2: The MVTC and MVFC instructions are used for writing
and reading these control registers.
Fig. 2 Control registers
PSW
CBR
Note: The interrupt stack pointer (SPI) and the user stack pointer (SPU) are
alternatively represented by R15 depending on the value of the stack
mode bit (SM) in the PSW.
Fig. 1 General-purpose registers
9
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Processor status word register
The processor status word register (PSW) shows the M32R CPU
status. It consists of the current PSW field, and the BPSW field where
a copy of the PSW field is saved when EIT occurs.
The PSW field is made up of the stack mode bit (SM), the interrupt
enable bit (IE) and the condition bit (C). The BPSW field is made up
of the backup stack mode bit (BSM), the backup interrupt enable bit
(BIE) and the backup condition bit (BC).
BPSW fieldPSW field
16 1723 24 253115870
SMIECBCBSMBIE
Dbit namefunctioninit.RW
16BSM (backup SM)saves value of SM bit when EIT occursundefined
17BIE (backup IE)saves value of IE bit when EIT occursundefined
23BC (backup C)saves value of C bit when EIT occursundefined
00000000000000000000000000PSW
24SM (stack mode)0: uses R15 as the interrupt stack pointer0
25IE (interrupt enable)0: does not accept interrupt0
31C (condition bit)indicates carry, borrow and overflow resulting0
Note: "init." ...initial state immediately after reset
"R" .... : read enabled
"W" .... : write enabled
Fig. 3 Processor status word register
1: uses R15 as the user stack pointer
1: accepts interrupt
from operations (instruction dependent)
10
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Condition bit register
The condition bit register (CBR) is a separate read-only register which
contains a copy of the current value of the condition bit (C) in the
PSW. An attempt to write to the CBR with the MVTC instruction is
ignored.
Interrupt stack pointer, User stack pointer
The interrupt stack pointer (SPI) and the user stack pointer (SPU)
retain the current stack address. The SPI and SPU can be accessed
as the general-purpose register R15. R15 switches between representing the SPI and SPU depending on the value of the stack mode
bit (SM) in the PSW.
SPI
SPUSPU
Backup PC
The backup PC (BPC) is the register where a copy of the PC value is
saved when EIT occurs. Bit 31 is fixed at "0". When EIT occurs, the
PC value immediately before EIT occurrence or that of the next instruction is set. The value of the BPC is reloaded to the PC when the
RTE instruction is executed. However, the values of the lower 2 bits
of the PC become "00" on returning (It always returns to the word
boundary).
310
00000000000000000000000000CBRC00000
310
SPI
310
310
BPCBPC0
Fig. 4 Condition bit register, interrupt stack pointer, user stack pointer and backup PC
11
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Accumulator
The accumulator (ACC) is a 64-bit register used for DSP type functions. Use the MVTACHI and MVTACLO instructions for writing to
the accumulator. The high-order 32 bits (bit 0 - bit 31) can be set with
the MVTACHI instruction and the low-order 32 bits (bit 32 - bit 63)
can be set with the MVTACLO instruction. Use the MVFACHI,
MVFACLO and MVFACMI instructions for reading from the accumu-
lator. The high-order 32 bits (bit 0 - bit 31) are read with the MVFACHI
instruction, the low order 32 bits (bit 32 - bit 63) with the MVFACLO
instruction and the middle 32 bits (bit 16 - bit 47) with the MVFACMI
instruction.
(see note)
ACC
read/write range with
MVTACHI or MVFACHI instruction
Note: Bits 0 - 7 are always read as the sign-extended value of bit 8.
An attempt to write to this area is ignored.
read range with MVFACMI instruction
Program counter
The program counter (PC) is a 32-bit counter that retains the address of the instruction being executed. Since the M32R CPU instruction starts with even-numbered addresses, the LSB (bit 31) is
always "0".
32486331161504778
read/write range with
MVTACLO or MVFACLO instruction
Fig. 5 Accumulator
Fig. 6 Program counter
310
PCPC0
12
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Data types
Signed and unsigned integers of byte (8 bits), halfword (16 bits), and
word (32 bits) types are supported as data in the M32R CPU instruction set. A signed integer is represented in a 2's complement format.
signed byte
(8-bit) integer
unsigned byte
(8-bit) integer
signed halfword
(16-bit) integer
unsigned halfword
(16-bit) integer
signed word
(32-bit) integer
unsigned word
(32-bit) integer
Fig. 7 Data type
0
S
0
0
S
0
0
S
0
7
7
15
15
31
31
S: sign bit
Data formats
Data size of a register of the M32R CPU is always a word (32 bits).
Byte (8 bits) and halfword (16 bits) data in memory are sign-extended
(the LDB and LDH instructions) or zero-extended (the LDUB and
LDUH instructions) to 32 bits, and loaded into the register.
Word (32 bits) data in a register is stored to memory by the ST instruction. Halfword (16 bits) data in the LSB side of a register is stored
to memory by the STH instruction. Byte (8 bits) data in the LSB side
of a register is stored to memory by the STB instruction.
Data stored in memory can be one of these types: byte (8 bits),
halfword (16 bits) or word (32 bits).
Although the byte data can be located at any address, the halfword
data and the word data can only be located on the halfword boundary and the word boundary, respectively. If an attempt is made to
access data in memory which is not located on the correct boundary,
an address exception occurs.
<data format in a register>
< load >
Rn
Rn
Rn
< store >
Rn
Rn
Rn
sign-extention (LDB instruction) or
zero-extention (LDUB instruction)
031
sign-extention (LDH instruction) or
zero-extention (LDUH instruction)
031
from memory (LD instruction)
031
031
031
031
from memory (LDH, LDUH instruction)
16
halfword
word
16
halfword
to memory (STH instruction)
word
from memory
(LDB, LDUB instruction)
24
byte
24
byte
to memory (STB instruction)
<data format in memory>
+ 0+ 1+ 2+ 3
031
byte
halfword
word
7 815 1623 24
byte
halfword
address
byte
byte
byte
halfword
word
Fig. 8 Data format
to memory (ST instruction)
13
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Address space
The M32000D4BFP-80 logical address is 32-bit wide and offers 4
GB linear space. The M32000D4BFP-80 has address spaces allocated as shown below.
The user space is specified by SID = 0 (H'0000 0000 to H'7FFF FFFF).
The area available to the user is 16 MB from address H'0000 0000
to address H'00FF FFFF.
The I/O space is specified by SID = 1 (H'8000 0000 to H'FFFF FFFF).
The area available to the user is 16 MB from address H'FF00 0000
to address H'FFFF FFFF. The I/O space cannot be cached.
< logical space >
(except for reset interrupt)
logical address
H'0000 0000
(16M bytes)
These areas below are allocated in each space.
• User space
internal DRAM area
external area
• I/O space
user I/O area
system area
internal I/O area
< physical space >
EIT vector entry
logical address
H'0000 0000
H'001F FFFF
H'0020 0000
internal DRAM
area (2M bytes)
SID
0 : H'00 0000
0 : H'1F FFFF
0 : H'20 0000
physical address
(24 bits)
user space
(SID = 0)
H'7FFF FFFF
H'8000 0000
I/O space
(SID = 1)
H'FFFF FFFF
(16M bytes)
H'00FF FFFF
EIT vector entry
(reset interrupt)
logical address
H'FF00 0000
H'FF7F FFFF
H'FF80 0000
H'FFBF FFFF
H'FFC0 0000
H'FFFF FFFF
external area
(14M bytes)
user I/O area
(8M bytes)
system area
(4M bytes)
internal I/O area
(4M bytes)
0 : H'FF FFFF
physical address
SID
(24 bits)
1 : H'00 0000
1 : H'7F FFFF
1 : H'80 0000
1 : H'BF FFFF
1 : H'C0 0000
1 : H'FF FFFF
Fig. 9 Address space
14
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
The internal DRAM (2 MB) is allocated from address H'0000 0000 to
address H'001F FFFF. The EIT vector entry (other than the reset
interrupt) is allocated in the address H'0000 0000 to address H'0000
008F of this area.
The internal DRAM is connected to the M32R CPU via a 4 KB cache
memory with a 128-bit bus. When the M32000D4BFP-80 is in the
hold state, the internal DRAM can be accessed from an external bus
master by inputting control signals.
The external area consists of 14 MB from address H'0020 0000 to
address H'00FF FFFF. When this space is accessed, the control signals to access external devices are output. The bottom 16 bytes in
this area (H'00FF FFF0 to H'00FF FFFF) are the reset interrupt EIT
vector entry.
logical address
031
H'FFC0 0000
H'FFFF FFE0
H'FFFF FFE4
H'FFFF FFE8
H'FFFF FFEC
The user I/O area is 8 MB from address H'FF00 0000 to address
H'FF7F FFFF. When this space is accessed, the control signals to
access external devices are output. The system area is 4 MB from
address H'FF80 0000 to address H'FFBF FFFF. This area is reserved
for development tools such as in-circuit emulators or debug monitors. The user cannot use this area.
The internal I/O area is 4 MB from address H'FFC0 0000 to address
H'FFFF FFFF. The memory controller and programmable I/O port
registers are allocated in this area.
+2 address+1 address+0 address
(reserved)
+3 address
PPCR0
PPCR1
PPDR0
PPDR1
programmable I/O port
H'FFFF FFF4
H'FFFF FFF8
H'FFFF FFFC
PPCR0: programmable I/O port direction control register 0
PPCR1: programmable I/O port direction control register 1
PPDR0: programmable port data register 0
PPDR1: programmable port data register 1
Fig. 10 Internal I/O space memory map
(reserved)
MLCR
MPMR
MCCR
MLCR: lock control register
MPMR: power management control register
MCCR: cache control register
memory controller
15
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
EIT
While the CPU is executing a program, sometimes it is necessary to
suspend execution, because a certain event occurs, and execute
another program. These kinds of events are referred to as EIT (Exception, Interrupt, Trap).
• Exception
The event is related to the context being executed. It is generated by
errors or violations that occur during instruction execution. With the
M32000D4BFP-80, the address exception (AE) and reserved instruction exception (RIE) are of this type.
• Interrupt
The event is not related to the context being executed. It is generated by an external hardware signal. With the M32000D4BFP-80,
the external interrupt (EI), system break interrupt (SBI), wakeup interrupt (WI) and reset interrupt (RI) are of this type.
• Trap
This is a software interrupt which is generated by executing the TRAP
instruction. It is intentionally added to the program by the programmer, as a system call.
EIT
ExceptionReserved Instruction
Exception (RIE)
Address Exception (AE)
InterruptReset Interrupt (RI)
Wakeup Interrupt (WI)
System Break Interrupt (SBI)
External Interrupt (EI)
EIT events are shown below.
• Reserved instruction exception (RIE)
The reserved instruction exception (RIE) occurs when execution of a
reserved instruction (unimplemented instruction) is detected.
• Address exception (AE)
The address exception (AE) occurs if an attempt is made to access
an unaligned address with either a load instruction or a store instruction.
• Reset interrupt (RI)
The reset interrupt (RI) is always accepted when the RST signal is
___
input. It has the highest priority.
• Wakeup interrupt (WI)
The wakeup interrupt (WI) is accepted when the WKUP signal is
______
input while the M32000D4BFP-80 is in standby mode. It is only used
to return from standby mode.
• System break interrupt (SBI)
The system break interrupt (SBI) is an interrupt request from the SBI
___
pin. It is used when a break in power source or an error from an
external watchdog timer is detected. It is also used to return from
CPU sleep mode and to start an M32000D4BFP-80 set to slave mode.
• External interrupt (EI)
The external interrupt (EI) is an interrupt request from the INT pin. It
___
is used by an interrupt from the external peripheral I/O and can be
masked by the IE bit in the PSW register. It is also used to return
from CPU sleep mode and to start an M32000D4BFP-80 set to slave
mode.
• Trap
The trap (TRAP) is a software interrupt which is generated by executing the TRAP instruction. A total of 16 EIT vector entries are
available for operands 0 to 15 of the TRAP instruction.
Trap
Fig. 11 EIT events
Trap (TRAP)
16
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Internal memory system
The memory system built into the M32000D4BFP-80 has the following characteristics.
• internal 16M-bit (2M-byte) DRAM
• internal 4K-byte cache memory
• CPU, cache and internal DRAM are connected by a 128-bit bus
R = 0 ... "0" when reading R = ... read enabled
W = ... write enabledW = : write disabled
✕
Fig. 12 Cache control register
CM0CM1
<at reset: H'01>
When the internal instruction/data cache mode is selected, the cache
memory functions as a cache for both instruction and data from the
internal DRAM, and caches all bus access to the DRAM. This mode
is for a system which uses the internal DRAM as main memory. Transfer between the M32R CPU, cache memory and internal DRAM is
always carried out in blocks of 128 bits. Caching is carried out by the
direct map method. Writing is by the copy back method.
When the M32000D4BFP-80 access destination is an external space,
data transfer between the M32R CPU and the external device is carried out via the bus interface unit (BIU). The BIU has a 128-bit data
buffer which converts the bus width between the 128-bit bus in the
M32000D4BFP-80 and the external bus. Caching is not applicable in
this case of data transfer.
When accessing the internal DRAM from an external bus master,
and a cache hit occurs (the accessed data is inside the cache), data
transfer between the cache memory and the external bus via the BIU
is carried out. When a cache miss occurs, (the accessed data is not
inside the cache) data transfer is carried out between the internal
DRAM and the external bus via the BIU without cache replacement.
M32000D4BFP-80
DRAM
128
CPU
instruction/
data cache
128
128
external bus
interface
BIU
16
external bus
(16 bits)
Fig. 13 Internal instruction/data cache mode
17
MITSUBISHI MICROCOMPUTERS
AAAAA
AAAAA
AAAAA
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
When the instruction cache mode is selected, the cache functions as
an instruction cache for the internal DRAM or the external memory,
and caching is carried out for instruction fetch access. This mode is
designed for use when an external ROM is used as program memory
and the internal DRAM is used as data memory, or when instructions
are located in the internal DRAM. Caching is carried out by the direct
map method. When instruction codes in the user space are overwritten by the external bus master or another source, instruction code
coherency in the cache memory is not guaranteed. Furthermore,
caching is not applied when accessing the internal DRAM from the
external bus master.
M32000D4BFP-80
DRAM
external bus
interface
BIU
16
external bus
(16 bits)
CPU
128
instruction
cache
128
When the cache-off mode is selected, the M32000D4BFP-80 internal memory system is configured as follows. In this mode, caching is
not applied, and all bus cycles are directly to the internal DRAM or
external bus.
M32000D4BFP-80
DRAM
external bus
interface
128
CPU
128
BIU
16
external bus
(16 bits)
Fig. 15 Cache-off mode
Fig. 14 Instruction cache mode
18
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Bus interface unit (BIU)
The M32000D4BFP-80 has the following signals related to the external bus.
• Address (A8 to A30)
The M32000D4BFP-80 has a 24-bit address bus (A8 to A31) corresponding to a 16 MB address space. Of these, A31 (the LSB) is not
output externally. In write cycles, the validity of the two bytes output
on the 16-bit data bus is indicated by BCH and/or BCL. In read
cycles, the 16-bit data bus is always read, however, only data in the
valid byte position in the M32000D4BFP-80 is transferred. The address pins are bidirectional. If the M32000D4BFP-80 is in the hold
state and the internal DRAM is accessed from an external bus master, the address signal is input from the system bus side.
• Space identifier (SID)
The space identifier is used to specify user space and I/O space.
• Byte control (BCH, BCL)
Byte control signals indicate the byte position of valid data transferred of the external bus cycle. BCH corresponds to the MSB side
(D0 to D7), and BCL corresponds to the LSB side (D8 to D15). During the read bus cycle, both BCH and BCL are an "L" level. During
the write bus cycle, BCH and/or BCL go to an "L" level depending on
________
___ ___
______
the bytes to be written. If the M32000D4BFP-80 is in the hold state
and the internal DRAM is accessed from an external bus master, the
byte control signal is input from the system bus side.
• Data bus (D0 to D15)
The M32000D4BFP-80 has a 16-bit data bus to access external devices. If the M32000D4BFP-80 is in the hold state and the internal
DRAM is accessed from an external bus master, the data bus is
used as a data I/O bus from the system bus side.
• Bus start (BS)
When the M32000D4BFP-80 drives the bus cycle to the system bus,
an "L" level is output to BS at the start of the bus cycle. Also, for a
burst transfer, the BS signal is output for each transfer cycle. The BS
__
__
____
signal is not output when accessing internal resources such as the
internal DRAM or internal I/O registers.
______
___
• Bus status (ST)
The ST signal identifies whether the bus cycle the M32000D4BFP80 is driving is an instruction fetch cycle or an operand access cycle.
instruction fetch access: ST = "L"
operand access: ST = "H"
hold: ST = high-impedance
idle: ST = undefined
• Read/write (R/W)
The M32000D4BFP-80 outputs a R/W signal to identify whether the
external bus cycle is a read or write operation. When accessing the
internal DRAM from an external bus master, a R/W signal is input
from the system bus side.
• Burst (BURST)
__
read bus cycle: R/W = "H"
write bus cycle: R/W = "L"
______
__
__
__
__
The M32000D4BFP-80 drives two consecutive bus cycles to access
32-bit data located on the 32-bit boundary. In instruction fetching, it
drives a maximum of 8 (fixed to 8 cycles in instruction cache mode)
consecutive read cycles to access data located on the 128-bit boundary. While driving these consecutive bus cycles, the M32000D4BFP80 outputs "L" level to BURST. When accessing 32-bit data, the ad-
______
dress of the MSB-side 16 bits are output before the address of the
LSB side 16 bits. When accessing 128-bit data, the addresses are
output for every access cycle from the arbitrary 16-bit aligned addresses to wraparound within the 128-bit boundary.
• Data complete (DC)
When starting an external bus cycle, the M32000D4BFP-80 automatically inserts wait cycles until the DC signal is input from external.
Wait control using the DC signal is effective also for bus cycles during burst transfer. When the M32000D4BFP-80 is in the hold state
and if the CS signal is input, the M32000D4BFP-80 outputs the DC
__
__
__
____
signal to notify the external bus master that internal DRAM access is
complete.
• Hold control (HREQ, HACK)
_____ _____
The hold state is the state when the external bus access stops and
all pins go to a high-impedance state. However, the internal DRAM
can be accessed while the external bus is in the hold state. To put
the M32000D4BFP-80 into the hold state, input an "L" level to HREQ.
When the hold request is accepted and the M32000D4BFP-80 enters the hold state, an "L" level is output from HACK.
_____
_____
19
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
• Internal DRAM access control (CS)
The internal DRAM can be accessed when CS is driven to an "L"
level after the M32000D4BFP-80 enters the hold state (HACK = "L").
__
__
____
To access the internal DRAM from external, the following signals
from the system bus side should be controlled.
• A8 to A30
Input internal DRAM addresses to be read or written.
___
___
• BCH, BCL
Specify the byte position of data to be written into the internal
___
DRAM. BCH corresponds to the MSB side (D0 to D7), and BCL
corresponds to the LSB side (D8 to D15).
__
• R/W
Specify read or write operation. When reading, R/W = "H". When
writing, R/W = "L".
__
___
___
• D0 to D15
16-bit data I/O bus.
_____
• DC
This signal notifies to an external bus master that the internal
DRAM access is complete. When access is complete, an "L"
_____
level is output to DC.
Table 1 Pin condition in hold state
pin namepin condition or operation
A8 - A30, SID,high-impedance
____ ____
BCH, BCL
__ ___ ______
ST, R/W, BS, BURST
D0 - D15output when internal DRAM is read
by an external bus master (CS = "L",
__
__
DCoutput when internal DRAM is
_____
HACKoutput "L"
R/W = "H"), otherwise high-impedance
accessed by an external bus master
__
(CS = "L"), otherwise high-impedance
__
other pinsnormal operation
Read and write operations of the M32000D4BFP-80 are carried out
using the address bus, data bus, and the R/W, BCH, BCL and DC
signals. When reading, the R/W signal goes to an "H" level, and the
______________
___
___ _______ ____________
BCH and BCL signals go to an "L" level. The CPU reads the data in
the valid byte positions. When writing, an "L" level is output from R/
_________________
W, and BCH and BCL are output according to the valid byte positions, so as to specify the byte positions for writing into an external
device.
CLKIN
A8 - A30
SID, ST
R/W
BCH, BCL
BURST
D0 - D15
DC
CLKIN
BS
A8 - A30
SID, ST
R/W
idleread
BS
"H"
"H"
"Hi-Z""Hi-Z"
idlewriteidlewrite
idleread
20
BCH, BCL
BURST
D0 - D15
"H"
"Hi-Z""Hi-Z"
DC
Note: "Hi-Z" means high-impedance, and indicates sampling timing.
Fig. 16 Read/write timing (two no-wait accesses)
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
When an "L" level is input to DC, the next bus cycle is processed and
__
wait cycles are inserted until this point. When a write cycle comes
immediately after a read cycle, the M32000D4BFP-80 inserts an idle
cycle to prevent a collision with data on the system bus. The same
applies to write cycles (burst write access) immediately after a burst
read cycle.
CLKIN
A8 - A30
SID, ST
R/W
BCH, BCL
BURST
D0 - D15
CLKIN
idleread
BS
"H"
"H"
"Hi-Z""Hi-Z""Hi-Z"
DC
idlewriteidlewrite
idleread
CLKIN
A8 - A30
SID, ST
R/W
BCH, BCL
BURST
D0 - D15
idle
BS
"H"
"Hi-Z""Hi-Z""Hi-Z"
DC
idlereadwriteidle
Note: "Hi-Z" means high-impedance, and indicates sampling timing.
Fig. 18 Automatic idle cycle insertion between consecutive read
and write cycles
BS
A8 - A30
SID, ST
R/W
BCH, BCL
BURST
"H"
D0 - D15
"Hi-Z""Hi-Z"
DC
Note: "Hi-Z" means high-impedance, and indicates sampling timing.
Keep DC signal at the "H" level when waits are inserted.
Fig. 17 Read/write timing (two one-wait accesses)
21
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
The M32000D4BFP-80 outputs the BURST signal and carries out a
______
burst transfer when reading "the word-size data aligned on the 32-bit
boundary" or "a maximum 4 words of instructions aligned on the 128bit boundary". The BURST signal is synchronized with the CLKIN
______
falling edge of the first bus access cycle and output "L" level. It returns to an "H" level synchronized with the first CLKIN falling edge of
the last bus access cycle. Addresses A8 to A30 are output for each
cycle.
When burst reading 32-bit data, the MSB-side 16-bit read bus cycle
is carried out first followed by the LSB-side 16-bit read bus cycle.
When the cache memory operation mode is the instruction cache
mode, and burst reading of the instructions within the 128-bit boundary for cache replacement occurs, the bus cycle is driven a fixed 8
times from an arbitrary 32-bit boundary address and to wraparound
within the 128-bit boundary. When other than the instruction cache
mode is selected and burst reading a set of instructions of less than
128 bits, consecutive bus cycles are driven from an arbitrary 32-bit
boundary address as the top to the 128-bit line (A28 to A30 = "111").
idle
CLKIN
BS
A8 - A30
SID, ST
"H"
R/W
BCH, BCL
BURST
D0 - D15
Note: "Hi-Z" means high-impedance, and indicates sampling timing.
"Hi-Z""Hi-Z"
DC
Wait cycles can be inserted even when burst transferring by setting
DC = "H".
When writing word-size data aligned on the 32-bit boundary, the
M32000D4BFP-80 carries out a burst-transfer by outputting the
______
BURST signal. When burst-writing 32-bit data, the MSB-side 16-bit
write bus cycle is driven first, followed by the LSB-side 16-bit write
bus cycle. The BURST signal is synchronized with the CLKIN falling
______
edge of the first bus access cycle, and "L" level is output. It returns to
"H" level in synchronization with the CLKIN falling edge of the last
bus access cycle. Addresses A8 to A30 are output for each cycle.
idle
CLKIN
BS
A8 - A30
SID,ST
R/W
BCH, BCL
BURST
D0 - D15
"Hi-Z""Hi-Z"
DC
Note: "Hi-Z" means high-impedance, and indicates sampling timing.
Wait cycles can be inserted even when burst transferring by
setting DC = "H".
burst write (1 word)idle
When an "L" level is input to HREQ, the M32000D4BFP-80 switches
to the hold state and outputs an "L" level to HACK. While the
_____
_____
M32000D4BFP-80 is in the hold state, bus related pins go to a high
impedance state, and data transfer is carried out on the system bus.
To return to normal operation mode from the hold state, the HREQ
_____
signal should be changed to an "H" level.
(see note 1)(see note 1)
write
CLKIN
HREQ
HACK
BS
A8 - A30
SID, ST
R/W
BCH, BCL
BURST
D0 - D15
DC
Notes 1: Before switching to the hold state, an idle cycle of 1 CLKIN clock period is always
inserted.
After returning from the hold state, an idle cycle of 1 to 5 CLKIN clock periods is
always inserted.
2: "Hi-Z" means high impedance, and indicates sampling timing.3: While the M32000D4BFP-80 is in the hold state, the DC signal is driven and output
When the M32000D4BFP-80 is in the hold state and an "L" level is
__
input to CS, the M32000D4BFP-80 interprets it as a bus access request to the internal DRAM. In this case, when the R/W signal is an
__
"H" level, the memory controller drives a read cycle to the internal
DRAM. In the read cycle, the 16-bit data for the address specified
with A8 to A30, is output from D0 to D15 regardless of the BCH and
_____
BCL settings. Also the DC signal is output.
____
The M32000D4BFP-80 reads 128 bits of data from the block on the
128-bit boundary including the requested address into the 128-bit
buffer of the bus interface unit. 3 to 7 CLKIN clock periods are necessary for the first bus access, however, when reading consecutive
address within the 128-bit boundary, the subsequent read bus cycles
are completed in 1 CLKIN clock period because a read from the internal DRAM does not take place.
Once the external bus master read cycle has been driven, it cannot
be aborted. When an "L" level is input to CS and an access has
started, the values of this and other control signals should be held
during the wait cycles (that is while DC = "H"). After DC outputs an
"L" level (access complete), return CS to the "H" level between the
CLKIN falling edge corresponding to the last read cycle and the following CLKIN falling edge. Return HREQ to the "H" level to return
______
the M32000D4BFP-80 to the normal operation mode from the hold
state either at the same time as or after CS is returned to the "H"
__
____
__
__
level.
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
hold shift
readread read read
CLKIN
HREQ
HACK
CS
A8 - A30
R/W
BCH, BCL
D0 - D15
DC
Note: "Hi-Z" means high impedance, and indicates sampling timing.
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
"Hi-Z"
"Hi-Z""Hi-Z"
The value of the R/W signal that controls the data direction of the bus interface
cannot be changed during CS="L". Hold this value while CS="L".
Also, where marked above with ✽, 3 to 7 CLKIN clock periods are necessary for
the first read operation (also when reading crosses an 128-bit boundary) when
reading from the internal DRAM. Hold the input value of the address or other control
signals during these wait cycle periods (DC = "H"). Consecutive read operations
within an 128-bit boundary are completed in 1 CLKIN clock period.
During these wait cycle period, CS cannot be returned to an "H" level (the access
cannot be aborted). CS can only be returned to an "H" level after DC is driven to "L".
hold
("L" output)
✽
return
"Hi-Z"
Fig. 23 Read bus cycle to internal DRAM
24
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
When the M32000D4BFP-80 is in the hold state and an "L" level is
__
input to CS, the M32000D4BFP-80 interprets it as a bus access request to the internal DRAM. In this case, when the R/W signal is at
an "L" level, the memory controller drives a write cycle to the internal
DRAM. Byte data control is specified by the BCH and BCL signals.
Only data in the byte positions for which an "L" level is input to BCH
_____
or BCL are written. When writing is complete, an "L" level DC signal
____ ___
__
____
is output. The M32000D4BFP-80 stores the requested data in the
128-bit data buffer of the BIU, before writing to the internal DRAM.
This reduces the number of accesses to the internal DRAM when a
request to writing to consecutive addresses is made, and improves
bus cycle throughput. Consecutive write cycles within an 128-bit
boundary are completed in 1 CLKIN clock period. 3 to 7 CLKIN clock
periods are necessary for a write access crossing an 128-bit boundary when writing to the internal DRAM. Once the external bus master
write cycle has been driven, it cannot be aborted. When an "L" level
is input to CS and an access has started, the values of this and other
control signals should be held during the wait cycles (that is while DC
= "H"). After DC outputs an "L" level (access complete), return CS to
the "H" level between the CLKIN falling edge corresponding to the
last write cycle and the following CLKIN falling edge. Return HREQ
to the "H" level to return the M32000D4BFP-80 to the normal operation mode from the hold state either at the same time as or after CS
__
__
____
______
__
is returned to the "H" level.
hold shift
write writewritewrite
CLKIN
HREQ
holdreturn
When the external bus master makes an access, the value of the
__
R/W signal that controls the data direction of the bus interface cannot be changed during CS="L". Therefore, read cycles and write cycles
cannot be mixed while CS = "L". When starting a write cycle following after a read cycle and starting a read cycle following a write cycle,
keep the CS signal at an "H" level for at least 1 CLKIN.
__
CLKIN
HREQ
HACK
CS
A8 - A30
R/W
BCH, BCL
"Hi-Z"
D0 - D15
DC
Note: "Hi-Z" means high-impedance, and indicates sampling timing.
Also, where marked above with ✽, keep CS signal to "H" at least 1 CLKIN when
starting a write bus cycle after a read bus cycle or a read bus cycle after a write
bus cycle.
__
__
hold shift
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
holdreturn
readCS = "H"
"Hi-Z"
"Hi-Z"
("L" output)
✽
write
("L" output)
"Hi-Z""Hi-Z"
"Hi-Z"
HACK
CS
A8 - A30
R/W
BCH, BCL
D0 - D15
Note: "Hi-Z" means high impedance, and indicates sampling timing.
The value of the R/W signal that controls the data direction of the bus interface
cannot be changed during CS="L". Hold this value while CS="L".
Also, where marked above with ✽, 3 to 7 CLKIN clock periods are necessary for writing
operation to internal DRAM crossing an 128-bit boundary. Hold the input value of the
address or other control signals during these wait cycle periods (DC = "H"). Consecutive
writing operations within an 128-bit boundary are completed in 1 CLKIN clock period.
During these wait cycle period, CS cannot be returned to "H" level (the access
cannot be aborted). CS can only be returned to a "H" level after DC is driven to "L".
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
"Hi-Z""Hi-Z"
DC
("L" output)
✽
Fig. 24 Write bus cycle to internal DRAM
Fig. 25 Read/write bus cycle to internal DRAM
("L" output)
25
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Master/slave mode
The M32000D4BFP-80 has an M/S (master/slave) pin for multiprocessor configuration use.
• master mode (M/S = "H")
This is normal operation mode. Set the M/S pin to an "H" level. It is
_
_
_
used when the M32000D4BFP-80 is used as the main CPU in a
system.
• slave mode (M/S = "L")
This operation mode is for when the M32000D4BFP-80 is used as a
coprocessor. Set the M/S pin to an "L" level. When set to slave mode,
_
_
the M32000D4BFP-80 does not start operation even after a reset,
until an interrupt request or the SBI is input. Processing is carried out
by communicating with the master M32000D4BFP-80, using the two
programmable I/O ports and the external interrupt signal.
lock control register (MLCR) < address: H'FFFF FFF7>
D24D25D26D27D28D29D30D31
LM
<at reset: H'00>
Dbit namefunctionRW
24 - 30Not0✕
assigned.
31LM
(lock mode)
______
0: HREQ
exclusive
lock mode
___
1: CS exclusive
lock mode
R = 0 ... "0" when reading R = ... read enabled
W = ... write enabledW = : write disabled
✕
• Coprocessor only configuration example
The slave M32000D4BFP-80 accesses only the internal DRAM and
never the external bus. M/S and HREQ are fixed at the "L" level. The
_ _____
slave M32000D4BFP-80 executes the instructions that the master
M32000D4BFP-80 downloads to the internal DRAM. The data transfer request (processing complete) from the slave M32000D4BFP-80
is notified to the master M32000D4BFP-80 by inputting the interrupt
request via the programmable I/O port. The data transaction is carried out when the master M32000D4BFP-80 accesses the internal
DRAM in the slave M32000D4BFP-80.
• Common bus coprocessor configuration example
In this configuration, the slave M32000D4BFP-80 can also access
the external bus. Communications between the master and slave
CPUs is carried out using the programmable I/O ports and the interrupt request input.
<coprocessor only configuration>
no access to
external bus
M/SM/SHREQ
M32000D4BFP-80
(master)
INTPP0
ROM
ASIC
INT
M32000D4BFP-80
(slave)
<common bus coprocessor configuration>
Fig. 26 Lock control register
26
M/SM/S
HREQ
HACK
INT
ROM
M32000D4BFP-80
(master)
ASIC
bus
arbiter
INT
M32000D4BFP-80
(slave)
Fig. 27 Master/slave system configuration example
HREQ
HACK
PP0
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Power management function
The M32000D4BFP-80 has the following two low-power consumption modes.
R = 0 ... "0" when reading R = ... read enabled
W = ... write enabledW = : write disabled
✕
D30
PM1
PM0
<at reset: H'00>
✕
In standby mode, all clock supply stops and only the contents of the
internal DRAM are retained. The power requirement is only that which
the internal DRAM needs for refreshing itself. When set to standby
mode, the M32000D4BFP-80 waits for the current bus operation to
be completed. It then purges the cache memory and switches the
internal DRAM to self-refresh mode. After that, the PLL and all clock
supplies stop and the STBY signal goes to an "L" level to indicate the
completion of the switch to standby mode. Input an "L" level to WKUP
___
or RST to return from standby mode to normal operation mode. The
contents of the internal DRAM are retained upon return using the
_____
WKUP signal.
_____
_____
In CPU sleep mode, clock supply to the M32R CPU stops. In this
mode, the internal DRAM, cache memory, memory controller and
external bus interface continue to operate and the internal DRAM
can be accessed from the external bus. Input an "L" level to INT, SBI
___
or RST to return to normal operation mode from CPU sleep mode.
___ ___
The contents of the cache memory, internal DRAM, general-purpose
registers and programmable I/O control register are retained upon
return using the INT or SBI signals.
___ ___
Fig. 28 Power management control register
set to standby mode
(H'03 is written to
MPMR register)
standby mode
operation mode
WKUP, RST
input
reset
normal
set to CPU sleep mode
(H'02 is written to
MPMR register)
INT, SBI, RST
input
CPU sleep
mode
Fig. 29 State transition for low power consumption mode
27
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Programmable I/O port
The M32000D4BFP-80 has two programmable I/O ports (PP0, PP1).
Each port can be set as input or output.
programmable I/O port direction control register 0 (PPCR0)
D24D25D26D27D28D29D30D31
programmable I/O port direction control register 1 (PPCR1)
D24D25D26D27D28D29D30D31
Dbit namefunctionRW
24 - 30Not assigned.0
31PP0C, PP1C0: input port
(port I/O direction)1: output port
R = 0 ... "0" when reading R = ... read enabled
W = ... write enabledW = : write disabled
Fig. 30 Programmable I/O port direction control register
programmable I/O port data register 0 (PPDR0)
D24D25D26D27D28D29D30D31
< address: H'FFFF FFE3>
PP0C
< address: H'FFFF FFE7>
PP1C
<at reset: H'00>
✕
✕
< address: H'FFFF FFEB>
PP0D
Reset
When an "L" level is input to RST, the M32000D4BFP-80 switches to
the reset state. The reset state is released when an "H" level is input
____
to RST, and the program is executed from the EIT vector entry of the
____
reset interrupt. All internal resources including the internal PLL (4x
clock generator) are initialized. In order to stabilize PLL oscillation,
the "L" input to RST should last a minimum of 2 ms after the clock
____
input to CLKIN stabilizes and VCC stabilizes to the specified voltage
level.
R = 0 ... "0" when reading R = ... read enabled
W = ... write enabledW = : write disabled
✕
Fig. 31 Programmable I/O port data register
28
✕
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Clock generating circuit
The M32000D4BFP-80 has a clock multiplier circuit and operates at
four times the input frequency. The internal operation frequency becomes 80 MHz when a 20 MHz clock is input to CLKIN. A capacitor
(C) should be connected to the PLLCAP pin, and the clock is input to
the CLKIN pin. The PLLVCC and PLLVSS pins should be connected
to the power source or the ground, respectively.
M32000D4BFP-80
PLL clock
generating
circuit
recommended values in circuit
14 (PLLVCC)
18 (CLKIN)
16 (PLLCAP)
15 (PLLVSS)
C: 1000 pF
VCC
clock input
C
ADDRESSING MODE
M32R family supports the following addressing modes.
< register direct >
The general-purpose register or the control register to be processed
is specified.
< register indirect >
The contents of the register specify the address in memory to be
accessed. This mode can be used by all load/store instructions.
< register relative indirect >
(The contents of the register) + (16-bit immediate value which is signextended to 32 bits) specify the address in memory to be accessed.
< register indirect and register update >
• 4 is added to the register contents
(the contents of the register before update specify
the address in memory to be accessed) [LD instruction]
• 4 is added to the register contents
(the contents of the register after update specify
the address in memory to be accessed) [ST instruction]
• 4 is subtracted from the register contents
(the contents of the register after update specify
the address in memory to be accessed) [ST instruction]
< immediate >
The 4-, 5-, 8-, 16- or 24-bit immediate value.
< PC relative >
(The contents of PC) + (8, 16, or 24-bit displacement which is signextended to 32 bits and 2 bits left-shifted) specify the address in
memory to be accessed.
Fig. 32 Oscillation circuit
29
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
INSTRUCTION FORMAT
There are two major instruction formats: two 16-bit instructions packed
together within a word boundary, and a single 32-bit instruction.
< 16-bit instruction >
R
1
op1 R
1
op1 R
1
op1 condc
< 32-bit instruction >
op1 R
1
op1 R
1
op1 R
1
op1 condc
R
2
op2
c
R
2
op2c
R
2
op2c
Fig. 33 Instruction format
= R1 op R
R1 = R1 op c
Branch (Short Displacement)
c
2
R
1
= R2 op c
Compare and Branch
1
= R1 op c
R
Branch
INSTRUCTION SET
A total of 83 instructions are implemented.
<Load/store instructions>
The load/store instructions carry out data transfers between a register and a memory.
SLLShift left logical
SLL3Shift left logical 3-operand
SLLIShift left logical immediate
SRAShift right arithmetic
SRA3Shift right arithmetic 3-operand
SRAIShift right arithmetic immediate
SRLShift right logical
SRL3Shift right logical 3-operand
SRLIShift right logical immediate
<Branch instructions>
The branch instructions are used to change the program flow.
BCBranch on C-bit
BEQBranch on equal
BEQZBranch on equal zero
BGEZBranch on greater than or equal zero
BGTZBranch on greater than zero
BLBranch and link
BLEZBranch on less than or equal zero
BLTZBranch on less than zero
BNCBranch on not C-bit
BNEBranch on not equal
BNEZBranch on not equal zero
BRABranch
JLJump and link
JMPJump
NOPNo operation
<EIT-related instructions>
The EIT-related instructions carry out the EIT events (Exception, Interrupt and Trap). Trap initiation and return from EIT are EIT-related
instructions.
TRAPTrap
RTEReturn from EIT
<DSP function instructions>
The DSP function instructions carry out multiplication of 32 bits ✕ 16
bits and 16 bits ✕ 16 bits or multiply and add operation; there are
also instructions to round off data in the accumulator and carry out
transfer of data between the accumulator and a general-purpose register.
MACHIMultiply-accumulate high-order halfwords
MACLOMultiply-accumulate low-order halfwords
MACWHIMultiply-accumulate word and high-order halfword
MACWLOMultiply-accumulate word and low-order halfword
MULHIMultiply high-order halfwords
MULLOMultiply low-order halfwords
MULWHIMultiply word and high-order halfword
MULWLOMultiply word and low-order halfword
MVFACHIMove from accumulator high-order word
MVFACLO Move from accumulator low-order word
MVFACMIMove from accumulator middle-order word
MVTACHIMove to accumulator high-order word
MVTACLO Move to accumulator low-order word
RACRound accumulator
RACHRound accumulator halfword
31
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
ABSOLUTE MAXIMUM RATINGS
Symbol
VCC
VI
VO
PD
TOPR
TSTG
Power source voltage
Input voltage
Output voltage
Power consumption
Operating temperature
Storage temperature
Parameter
Conditions
TOPR = 25 °C
RECOMMENDED OPERATING CONDITIONS (VCC = 3.3 V ± 0.3 V, TOPR= 0 to 70 °C unless otherwise noted)
SymbolParameterUnit
VCC
VIH
VIL
IOH
(see note)
IOL
(see note)
CL
Note: IOH and IOL represent the maximum values of DC current load. Intermittent current that is generated during output need not to be
considered as long as the output load capacity is within the specified range.
Power source voltage
"H" input voltageAll inputs except following
"L" input voltageAll inputs except following
"H" output current
"L" output current
output load capacity
____
RST pin
____
RST pin
Min.
3.0
2.0
0.8VCC
–0.3
–0.3
Min.
–0.5
–0.5
–0.5
0
–65
Ratings
Ratings
Typ.
Max.
4.6
4.6
4.6
1000
70
150
Max.
3.6
VCC+0.3
VCC+0.3
0.8
0.2VCC
2
2
50
Unit
V
V
V
mW
°C
°C
V
V
V
V
V
mA
mA
pF
32
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
DC CHARACTERISTICS
ELECTRICAL CHARACTERISTICS
SymbolParameterUnit
VOH
VOL
IOZ
IIH
IIL
ICC
C
"H" output voltage
"L" output voltage
Output current in off state
"H" input current
"L" input current
Power source current
Pin capacitance
(VCC = 3.3 V ± 0.3 V, TOPR = 0 to 70 °C unless otherwise noted)
Test conditions
IOH = –2 mA
IOL = 2 mA
VO = 0 to VCC
VIH = 0 to VCC +0.3 V
VIH = 0 to VCC +0.3 V
Average in normal operation
mode VCC = 3.3 V (see note 1)
Average in CPU sleep mode
VCC = 3.3 V
Average in standby mode
VCC = 3.3 V (see note 2)
All pins
Min.
2.4
–10.0
Ratings
Typ.
165
120
Max.
0.4
10.0
10.0
–10.0
260
205
2000
15
V
V
µA
µA
µA
mA
mA
µA
pF
Note 1:all pin outputs are in no-load condition.
2:TOPR = 25°C
CS input hold time after CLKIN
Address input set-up time before CLKIN
Address input hold time after CLKIN
Data input set-up time before CLKIN
Data input hold time after CLKIN
Parameter
Test conditions
(5) Interrupt input timing
SymbolParameter
tw(INT)
tw(SBI)
Note: Both INT and SBI are level-sense inputs. Keep them at an "L" level until the interrupt is accepted.
___
INT input pulse width (see note)
___
SBI input pulse width (see note)
______
Test conditions
Min.
5
2
5
2
5
2
5
2
Min.
tc(CLKIN)
tc(CLKIN)
Limits
Max.
Limits
Max.
Unit
ns
ns
ns
ns
ns
ns
ns
ns
Unit
ns
ns
Reference
number
40
41
48
49
50
51
52
53
Reference
number
63
64
(6) I/O port timing
SymbolParameter
tw(PORTINL)
tw(PORTINH)
Port input "L" pulse width
Port input "H" pulse width
BS = "H" delay time after CLKIN
Address delay time after CLKIN
Address effective time after CLKIN
_______
BCH, BCL delay time after CLKIN
_______
BCH, BCL effective time after CLKIN
SID delay time after CLKIN
SID effective time after CLKIN
ST delay time after CLKIN
ST effective time after CLKIN
__
R/W delay time after CLKIN
__
R/W effective time after CLKIN
______
BURST = "H" effective time after CLKIN
______
BURST = "L" delay time after CLKIN
______
BURST = "L" effective time after CLKIN
______
BURST = "H" delay time after CLKIN
Data output enable time after CLKIN
Data output delay time after CLKIN
Data output effective time after CLKIN
Data output disable time after CLKIN
HACK = "H" delay time after CLKIN
Address output disable time after CLKIN
Address output enable time after CLKIN
Data output enable time after CLKIN
Data output delay time after CLKIN
Data output disable time after CLKIN
Data output effective time after CLKIN
Fig. 35 Input waveform and timing reference point during characteristic measurement
VCC
0.0 V
timing reference point
CMOS output (when not specified)
"H" → "Z"
CMOS output
(during floating delay time measurement)
"L" → "Z"
Fig. 36 Output timing measurement point during characteristic measurement
0.9VCC
0.1VCC
0.8VCC
0.2VCC
"Z" → "H"
0.6VCC
0.4VCC
"Z" → "L"
38
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
CMOS input
(except for schmitt trigger input and CLKIN input)
schmitt trigger input
(RST)
Fig. 37 Input transition time
Fig. 38 Output transition time
output pin
1
1
34
t
r(OUTPUT)
t
r(INPUT)
t
r(INPUT)
t
f(OUTPUT)
2
t
2
t
0.8VCC
0.2VCC
f(INPUT)
0.8VCC
0.2VCC
f(INPUT)
0.9VCC
0.1VCC
CLKIN
RST
WKUP
Fig. 39 Clock reset and wakeup timing
(input)
(input)
(input)
5
t
c(CLKIN)
6
t
w(CLKINH)tw(CLKINL)
0.5VCC
*1 The WKUP and RST signals can be input asynchronously.
When returning from standby mode, the same timing applies.
7
10
11
89
t
w(RST)
t
w(WKUP)
t
r(CLKIN)
*1
*1
t
f(CLKIN)
0.8VCC
0.2VCC
39
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
CLKIN
BS
A8 to A30
BCH, BCL
SID, ST
R/W
BURST
(input)
12
t
d(CLKIN-BSHX)
13
t
d(CLKIN-BSL)
(output)
(output)
(output)
(output)
(output)
(output)
0.5 VCC
16
18
20
22
24
0.5 VCC
t
d(CLKIN-AV)
t
d(CLKIN-BCV)
t
d(CLKIN-SIDV)
t
d(CLKIN-STV)
t
d(CLKIN-RWV)
14
t
d(CLKIN-BSLX)
t
d(CLKIN-BSH)
15
17
19
26
t
d(CLKIN-BURSTHX)
27
t
d(CLKIN-BURSTL)
*2
*2
t
d(CLKIN-AX)
t
d(CLKIN-BCX)
*2
*2
21
23
25
28
t
d(CLKIN-BURSTLX)
29
t
d(CLKIN-BURSTH)
t
d(CLKIN-SIDX)
t
d(CLKIN-STX)
t
d(CLKIN-RWX)
*2
*2
D0 to D15
D0 to D15
DC
(input)
(output)
36
t
su(DCH-CLKIN)
(input)
*1 The set up/hold of DC = "H" may vary depending on the wait cycle insertion.
*2 All switching characteristics and timing requirements based on the falling edge of CLKIN are calculated according to
the internal CLKIN (duty ratio is 50%) . When designing external peripheral circuits, the correction for the duty cycle of
the actual CLKIN is necessary.
[example]
BS signal transition ("L" –> "H") when inputting 20MHz clock whose duty ratio is 45 - 55% (± 5%) to CLKIN:
• minimum value of td(CLKIN-BSLX) = (value in table) – (correction value) = 12.5 – (50 x 5/100) = 10 [ns]
• maximum value of td(CLKIN-BSH) = (value in table) + (correction value) = (50/4 + 8) + (50 x 5/100) = 23 [ns]
Fig. 40 Read/write timing
*1
32
t
d(CLKIN-DZX)
37
t
h(CLKIN-DCH)
30
t
su(D-CLKIN)
33
t
d(CLKIN-DV)
38
t
su(DCL-CLKIN)
31
t
h(CLKIN-D)
34
t
d(CLKIN-DVX)
35
t
d(CLKIN-DXZ)
*1
39
t
h(CLKIN-DCL)
40
0.5VCC0.5VCC
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
CLKIN
HREQ
HACK
(input)
(input)
(output)
40
t
su(HREQ-CLKIN)
42
t
d(CLKIN-HACKHX)
43
t
d(CLKIN-HACKL)
*1*1
41
t
h(CLKIN-HREQ)
*2
*2
t
d(CLKIN-AZ)
46
44
t
d(CLKIN-HACKLX)
t
d(CLKIN-HACKH)
45
t
d(CLKIN-AZX)
47
*2
*2
A8 to A30, SID, ST,
BS, BCH, BCL,
R/W, BURST
(output)
*1 The HREQ signal can be input asynchronously.
*2 All switching characteristics and timing requirements based on the falling edge of CLKIN are calculated according to
the internal CLKIN (duty ratio is 50%) . When designing external peripheral circuits, the correction for the duty cycle of
the actual CLKIN is necessary.
[example]
HACK signal transition ("H" –> "L") when inputting 20 MHz clock whose duty ratio is 45 - 55% (± 5%) to CLKIN:
• minimum value of td(CLKIN-HACKHX) = (value in table) – (correction value) = 0 – (50 x 5/100) = –2.5 [ns]
• maximum value of td(CLKIN-HACKL) = (value in table) + (correction value) = 8 + (50 x 5/100) = 10.5 [ns]
Fig. 41 Bus arbitration timing
41
CLKIN
(input)
HREQ
(input)
HACK
(output)
0.5 VCC
40
t
su(HREQ-CLKIN)
*1
42
48
t
su(CS-CLKIN)
t
d(CLKIN-HACKHX)
43
t
d(CLKIN-HACKL)
*1
49
t
h(CLKIN-CS)
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
41
t
h(CLKIN-HREQ)
*1
*1
*1
4849
44
t
d(CLKIN-HACKLX)
45
t
d(CLKIN-HACKH)
4849
*1
*1
*1
CS
(input)
R/W
(input)
A8 to A30
BCH, BCL
(input)
D0 to D15
(input)
D0 to D15
(output)
DC
(output)
58
t
d(CS-DCZX)
50
t
su(A-CLKIN)
54
t
d(CLKIN-DZX)
55
t
d(CLKIN-DV)
59
t
d(CLKIN-DCHX)
60
t
d(CLKIN-DCL)
*1*1
51
t
h(CLKIN-A)
50515051
5253
t
su(D-CLKINL)
*1
*1
56
t
d(CLKIN-DXZ)
57
t
d(CLKIN-DVX)
*1
*1
61
t
d(CLKIN-DCXZ)
62
t
d(CLKIN-DCLX)
*1
50
51
*1*1
t
h(CLKINL-D)
*1
*1
58
*1
*1
59
60
61
62
*1 All switching characteristics and timing requirements based on the falling edge of CLKIN are calculated according to
the internal CLKIN (duty ratio is 50%) . When designing external peripheral circuits, the correction for the duty cycle of
the actual CLKIN is necessary.
[example]
CS signal transition ("L" –> "H") when inputting 20 MHz clock whose duty ratio is 45 - 55% (± 5%) to CLKIN:
• minimum value of tsu(CS-CLKIN) = (value in table) + (correction value) = 5 + (50 x 5/100) = 7.5 [ns]
• minimum value of th(CLKIN-CS) = (value in table) + (correction value) = 2 + (50 x 5/100) = 4.5 [ns]
Fig. 42 External bus master read/write timing
42
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
INT
SBI
Fig. 43 Interrupt input timing
CLKIN
internal clock
(80 MHz)
STBY
t
w(INT)
t
w(SBI)
*1 *2
*1
*1
67
t
d(CLKIN-STBYLX)
68
t
d(CLKIN-STBYH)
63
(input)
64
(input)
*1 The INT and SBI signals can be input asynchronously.
When returning from CPU sleep mode, the same timing applies.
This timing value is "a value necessary for sampling the input to pins", however, not "a value
that guarantees the interrupt acceptance".
The interrupt request is a level-sensed input , and should be kept "L" until it is accepted.
(input)
65
t
d(CLKIN-STBYHX)
66
t
d(CLKIN-STBYL)
(output)
*1 *3
Fig. 44 Standby timing
Fig. 45 I/O port timing
*1 The STBY signal is synchronized with the internal clock therefore, its timing changes at 0, 90, 180 and 270
degree phase of CLKIN.
*2 The STBY goes to an "L" level when switched to the standby mode.
*3 When returning from standby mode, the STBY signal goes to an "H" level 1 CLKIN after
sampling that WKUP has returned from "L" to "H", or 3 CLKINs after sampling that RST = "L".
6970
t
[for input]
w(PORTINL)
t
w(PORTINH)
PX
[for output]
7172
t
w(PORTOUTL)
t
w(PORTOUTH)
PX
43
PACKAGE OUTLINE
MITSUBISHI MICROCOMPUTERS
M32000D4BFP-80
SINGLE-CHIP 32-BIT CMOS MICROCOMPUTER
Keep safety first in your circuit designs!
• Mitsubishi Electric Corporation puts the maximum effort into making semiconductor products better and more reliable, but there is always the possibility that trouble may occur with them. Trouble with
semiconductors may lead to personal injury, fire or property damage. Remember to give due consideration to safety when making your circuit designs, with appropriate measures such as (i) placement of
substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention against any malfunction or mishap.
Notes regarding these materials
• These materials are intended as a reference to assist our customers in the selection of the Mitsubishi semiconductor product b est suited to the customer’s application; they do not convey any license under any
intellectual property rights, or any other rights, belonging to Mitsubishi Electric Corporation or a third party.
• Mitsubishi Electric Corporation assumes no responsibility for any damage, or infringement of any third-party’s rights, originating in the use of any product data, diagrams, charts or circuit application examples
contained in these materials.
• All information contained in these materials, including product data, diagrams and charts, represent information on products at the time of publication of these materials, and are subject to change by Mitsubishi
Electric Corporation without notice due to product improvements or other reasons. It is therefore recommended that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor
product distributor for the latest product information before purchasing a product listed herein.
• Mitsubishi Electric Corporation semiconductors are not designed or manufactured for use in a device or system that is used und er circumstances in which human life is potentially at stake. Please contact
Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor when considering the use of a product contained herein for any specific purposes, such as apparatus or systems for
transportation, vehicular, medical, aerospace, nuclear, or undersea repeater use.
• The prior written approval of Mitsubishi Electric Corporation is necessary to reprint or reproduce in whole or in part these m aterials.
• If these products or technologies are subject to the Japanese export control restrictions, they must be exported under a licen se from the Japanese government and cannot be imported into a country other than the
approved destination.
Any diversion or reexport contrary to the export control laws and regulations of Japan and/or the country of destination is prohibited.
• Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi Semiconductor product distributor for further details on these materials or the products contained therein.