The M37736M4BXXXGP is a single-chip microcomputer using the
7700 Family core. This single-chip microcomputer has a CPU and a
bus interface unit. The CPU is a 16-bit parallel processor that can be
an 8-bit parallel processor, and the bus interface unit enhances the
memory access efficiency to execute instructions fast. This
microcomputer also includes a 32 kHz oscillation circuit, in addition
to the ROM, RAM, multiple-function timers, serial I/O, A-D converter,
and others.
In the M37736M4BXXXGP, as the multiplex method of the external
bus, either of 2 types can be selected.
FEATURES
●Number of basic instructions .................................................. 103
Control devices for general commercial equipment such as office
automation, office equipment, and others.
Control devices for general industrial equipment such as
communication equipment, and others.
P86/RXD1 ↔
5/CLK1 ↔
P8
4/CTS1/RTS1 ↔
P8
P8
P8
P8
0/CTS0/RTS0/CLKS1 ↔
3/TXD0 ↔
2/RXD0/CLKS0 ↔
P8
1/CLK0 ↔
AV
AV
P7
7/AN7/XCIN ↔
P7
6/AN6/XCOUT ↔
P7
5/AN5/ADTRG ↔
4/AN4 ↔
P7
3/AN3 ↔
P7
2/AN2 ↔
P7
1/AN1 ↔
P7
P7
0/AN0 ↔
V
V
REF→
V
CC
CC
SS
SS
↔ P92/RXD2
↔ P87/TXD1
↔ P90/CTS2
↔ P91/CLK2
8079787776
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
123456789
4/INT2 ↔P63/INT1 ↔P62/INT0 ↔
6/TB1IN ↔
P6
P6
P65/TB0IN ↔
7/TB2IN/φSUB ↔
P6
→ P93/TXD2
→ P94
→ P95
7574737271
1/TA4IN ↔
P6
6/A6/A16
→ P96
→ P97
↔ P00/A0/CS0
↔ P01/A1/CS1
↔ P02/A2/CS2
↔ P03/A3/CS3
↔ P04/A4/CS4
↔ P05/A5/RSMP
↔ P07/A7/A17
↔ P10/A8/D8
↔ P11/A9/D9
↔ P12/A10/D10
↔ P13/A11/D11
70696867666564636261605958575655545352
↔ P0
↔ P14/A12/D12
M37736MHBXXXGP
0/TA4OUT ↔
P6
10
7/TA3IN ↔
P5
6/TA3OUT ↔
P5
11
5/TA2IN ↔
P5
1213141516
3/TA1IN ↔
1/TA0IN ↔
4/TA2OUT ↔
2/TA1OUT ↔
P5
P5
P5
P5
0/TA0OUT ↔
P5
171819
7/KI3 ↔
6/KI2 ↔
P10
P10
2021222324
5/KI1 ↔
4/KI0 ↔
P103 ↔
P10
P10
2 ↔
P10
↔ P15/A13/D13
1 ↔
P10
↔ P16/A14/D14
0 ↔
P10
↔ P17/A15/D15
↔ P20/A16/A0/D0
26
25
7 ↔P46 ↔P45 ↔
P4
↔ P21/A17/A1/D1
↔ P22/A18/A2/D2
272829
P44 ↔
↔ P23/A19/A3/D3
↔ P24/A20/A4/D4
51
↔ P25/A21/A5/D5
50
↔ P26/A22/A6/D6
49
↔ P27/A23/A7/D7
48
↔ P30/R/W/WEL
47
↔ P3
46
↔ P3
45
↔ P3
44
→ EVL0
43
42
→ EVL1 VCC
41
40
VSS
39
→ E/RDE
38
→ X
← XIN
37
← RESET
36
← BSEL
35
← CNV
34
← BYTE
33
↔ P4
32
↔ P4
31
30
3 ↔
2/φ1 ↔
P4
P4
1/BHE/WEH
2/ALE
3/HLDA
OUT
SS
0/HOLD
1/RDY
Outline 100P6S-A
1
PRELIMINARY
Clock input
X
IN
Clock output
X
OUT
Clock Generating Circuit
Timer TA4(16)
RAM
2048 bytes
ROM
32 Kbytes
Timer TA3(16)
Timer TA2(16)
Timer TA1(16)
P8(8)
Input/Output
port P8
P7(8)
Input/Output
port P7
X
CIN
X
COUT
P6(8)
Input/Output
port P6
P5(8)
Input/Output
port P5
P4(8)
Input/Output
port P4
P3(4)
Input/Output
port P3
P2(8)
Input/Output
port P2
P1(8)
Input/Output
port P1
P0(8)
Input/Output
port P0
Timer TA0(16)
Watchdog Timer
Timer TB2(16)
Timer TB1(16)
Timer TB0(16)
UART2(9)
UART1(9)
UART0(9)A-D Converter(10)
Instruction Register(8)
Data Buffer DBH(8)
Data Buffer DB
L
(8)
Processor Status Register PS(11)
Direct Page Register DPR(16)
Stack Pointer S(16)
Index Register Y(16)
Index Register X(16)
Accumulator B(16)
Arithmetic Logic
Unit(16)
Accumulator A(16)
Instruction Queue Buffer Q0(8)
Instruction Queue Buffer Q
1
(8)
Incrementer(24)
Program Address Register PA(24)
Data Address Register DA(24)
Instruction Queue Buffer Q
2
(8)
Program Counter PC(16)
Incrementer/Decrementer(24)
Program Bank Register PG(8)
Data Bank Register DT((8)
Input Buffer Register IB(16)
Address Bus
Data Bus(Even)
Data Bus(Odd)
X
CINXCOUT
Enable output
E
Reset input
RESET
(0V)
V
SS
(0V)
AV
SS
CNV
SS
AV
CC
Reference
voltage input
V
REF
Bus method
selection input
BSEL
External data bus width
selection input
BYTE
V
CC
P9(8)
Output
port P9
P10(8)
Input/Output
port P10
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
2
M37736M4BXXXGP BLOCK DIAGRAM
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
FUNCTIONS OF M37736M4BXXXGP
Number of basic instructions103
Instruction execution time160 ns (the fastest instruction at external clock 25 MHz frequency)
Memory size
Input/Output ports
Output portP98-bit ✕ 1
Multi-function timers
Serial I/O(UART or clock synchronous serial I/O) ✕ 3
3 external types, 16 internal types
Each interrupt can be set to the priority level (0 – 7.)
2 circuits built-in (externally connected to a ceramic resonator or a
quartz-crystal oscillator)
Input/Output voltage5 V
Output current5 mA
External bus mode A; maximum 16 Mbytes,
External bus mode B; maximum 1 Mbytes
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
3
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
PIN DESCRIPTION
PinNameInput/OutputFunctions
Vcc,Power sourceApply 5 V ± 10% to Vcc and 0 V to Vss.
Vss
CNVssCNVss inputInputThis pin controls the processor mode. Connect to Vss for the single-chip mode and the memory
_____
RESETReset inputInputWhen “L” level is applied to this pin, the microcomputer enters the reset state.
XINClock inputInput
X
OUTClock outputOutput
_
EEnable outputOutputThis pin functions as the enable signal output pin which indicates the access status in the internal
BYTE
External data
InputIn the memory expansion mode or the microprocessor mode, this pin determines whether the
bus width
selection input
BSELInputIn the memory expansion mode or the microprocessor mode, this pin determines the external bus
Bus method
select input
AVcc,Analog powerPower source input pin for the A-D converter. Externally connect AVcc to Vcc and AVss to Vss.
AVsssource input
REFReference InputThis is reference voltage input pin for the A-D converter.
V
voltage input
0 – P07 I/O port P0I/OIn the single-chip mode, port P0 becomes an 8-bit I/O port. An I/O direction register is available so
P0
0 – P17 I/O port P1I/OIn the single-chip mode, these pins have the same functions as port P0. When the BYTE pin is set
P1
0 – P27 I/O port P2I/OIn the single-chip mode, these pins have the same functions as port P0. In the memory expansion
P2
0 – P33 I/O port P3I/OIn the single-chip mode, these pins have the same function as port P0. In the memory expansion
P3
0 – P47 I/O port P4I/OIn the single-chip mode, these pins have the same functions as port P0. In the memory expansion
P4
0 – P57 I/O port P5I/OIn addition to having the same functions as port P0 in the single-chip mode, these pins also
P5
0 – P67 I/O port P6I/OIn addition to having the same functions as port P0 in the single-chip mode, these pins also
P6
0 – P77 I/O port P7I/OIn addition to having the same functions as port P0 in the single-chip mode, these pins function as
P7
0 – P87 I/O port P8I/OIn addition to having the same functions as port P0 in the single-chip mode, these pins also
P8
0 – P97
P9
P100 – P107
EVL0, EVL1
Output port P9
OutputPort P9 is an 8-bit I/O port. These ports are floating when reset. When writting to the port latch,
I/O port P10I/OIn addition to having the same functions as port P0 in the single-chip mode, P104 – P107 also
––
OutputThese pins should be left open.
expansion mode, and to Vcc for the microprocessor mode.
These are pins of main-clock generating circuit. Connect a ceramic resonator or a quartzcrystal oscillator between X
IN and XOUT. When an external clock is used, the clock source should
be connected to the XIN pin, and the XOUT pin should be left open.
bus. In the external bus mode B and the memory expansion mode or the microprocessor mode,
this pin output signal RDE.
___
external data bus has an 8-bit width or a 16-bit width. The data bus has a 16-bit width when “L”
signal is input and an 8-bit width when “H” signal is input.
mode. The bus mode becomes the external bus mode A when “H” signal is input, and the external
bus mode B when “L” signal is input.
that each pin can be programmed for input or output. These ports are in the input mode when
reset.
In the memory expansion mode or the microprocessor mode, these pins output address (A
at the external bus mode A, and these pins output signals CS0 – CS4 and RSMP, and addresses
(A16, A17) at the external bus mode B.
to “L” in the memory expansion mode or the microprocessor mode and external data bus has a
16-bit width, high-order data (D8 – D15) is input/output or an address (A8 – A15) is output. When
the BYTE pin is “H” and an external data bus has an 8-bit width, only address (A8 – A15) is output.
mode or the microprocessor mode, low-order data (D
output. When using the external bus mode A, the address is A
bus mode B, the address is A0 – A7.
mode or the microprocessor mode, R/W, BHE, ALE, and HLDA signals are output at the external
bus mode A, and WEL, WEH, ALE, and HLDA signals are output at the external bus mode B.
___ _______
mode or the microprocessor mode, P40, P41 and P42 become HOLD and RDY input pins, and a
clock
φ1 output pin, respectively. Functions of the other pins are the same as in the single-chip
mode. However, in the memory expansion mode, P42 can be selected as anI/O port.
function as I/O pins for timers A0 to A3.
function as I/O pins for timer A4, input pins for external interrupt input (INT0 – INT2) and input pins
for timers B0 to B2. P67 also functions as sub-clock φSUB output pin.
input pins for A-D converter. Additionally, P7
and the input pin (X
CIN) of the sub-clock (32 kHz) oscillation circuit, respectively. When P76 and
P77 are used as the XCOUT and XCIN pins, connect a resonator or an oscillator between the both.
function as I/O pins for UART 0 and UART 1.
these ports become the output mode. P90 – P93 also function as I/O port for UART 2.
function as input pins for key input interrupt input (KI0 – KI3).
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
___ ___
0 – D7) is input/output or an address is
16 – A23. When using the external
_______
__
____ ___
6 and P77 have the function as the output pin (XCOUT)
__ __
____
___ ___
0 – A7)
4
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
BASIC FUNCTION BLOCKS
The M37736M4BXXXGP has the same fuanctions as the
M37736MHBXXXGP except for the memory allocation and the ROM
area modification function.
Refer to the section on the M37736MHBXXXGP.
MEMORY
The memory map is shown in Figure 1. The address space has a
capacity of 16 Mbytes and is allocated to addresses from 0
FFFFFF
16. The address space is divided by 64-Kbyte unit called bank.
The banks are numbered from 0
However, banks 10
16 – FF16 cannot be accessed in the external bus
16 to FF16.
mode B.
Built-in ROM, RAM and control registers for internal peripheral devices
are assigned to bank 0
The 32-Kbyte area from addresses 8000
ROM. Addresses FFD6
16.
16 to FFFF16 is the built-in
16 to FFFF16 are the RESET and interrupt
vector addresses and contain the interrupt vectors. Refer to the section
on interrupts for details.
The 2048-byte area allocated to addresses from 80
000000
16
Bank 0
16
00FFFF
16
010000
16
16 to 87F16 is the
16 to
000000
00007F
000080
00087F
built-in RAM. In addition to storing data, the RAM is used as stack
during a subroutine call or interrupts.
Peripheral devices such as I/O ports, A-D converter, serial I/O, timer,
and interrupt control registers are allocated to addresses from 0
7F
16.
Additionally, the internal ROM area can be modified by software. Refer
to the section on ROM area modification function for details.
A 256-byte direct page area can be allocated anywhere in bank 0
by using the direct page register (DPR). In the direct page addressing
mode, the memory in the direct page area can be accessed with two
words. Hence program steps can be reduced.
16
16
16
16
Internal RAM
2048 bytes
000000
00007F
16
Internal peripheral
devices
control registers
refer to Fig. 2 for
detail information
16
16 to
16
Bank 1
16
01FFFF
16
• • • • • • • • • • • • • • • • • • •
008000
16
FE0000
Bank FE
Bank FF
16
16
FEFFFF
16
FF0000
16
16
FFFFFF
16
00FFD6
00FFFF
Internal ROM
32 Kbytes
16
16
Notes 1. Internal ROM area can be modified. (Refer to the section on ROM area modification function.)
2. Banks 10
16
– FF16 cannot be accessed in the external bus mode B.
Port P0 register
Port P1 register
Port P0 direction register
Port P1 direction register
Port P2 register
Port P3 register
Port P2 direction register
Port P3 direction register
Port P4 register
Port P5 register
Port P4 direction register
Port P5 direction register
Port P6 register
Port P7 register
Port P6 direction register
Port P7 direction register
Port P8 register
Port P9 register
Port P8 direction register
UART 2 transmit/receive control register 1
UART 2 receive buffer register
Oscillation circuit control register 0
Port function control register
Serial transmit control register
Oscillation circuit control register 1
A-D/UART 2 trans./rece. interrupt control register
UART 0 transmission interrupt control register
UART 0 receive interrupt control register
UART 1 transmission interrupt control register
UART 1 receive interrupt control register
Timer A0 interrupt control register
Timer A1 interrupt control register
Timer A2 interrupt control register
Timer A3 interrupt control register
Timer A4 interrupt control register
Timer B0 interrupt control register
Timer B1 interrupt control register
Timer B2 interrupt control register
INT0
interrupt control register
INT1
interrupt control register
INT2
/Key input interrupt control register
Note. Do not write to this address.
6
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
ROM AREA MODIFICATION FUNCTION
The internal ROM size and its address area of the M37736M4BXXXGP
can be modified by the memory allocation control register’s bit 0 shown
in Figure 3.
Figure 5 shows the memory allocation in which the internal ROM
size and its address area are modified.
Make sure to write data in the memory allocation control register as
the flow shown in Figure 4.
This ROM area modification function is valid in memory expansion
mode and single-chip mode.
Table 1 shows the relationship between memory allocation selection
76543210
ML
Note. Write to the memory allocation control register as the flow shown in Figure 4.
bits and address corresponding to chip-select signals CS0 and CS1 in
the external bus mode B.
When ordering a mask ROM, Mitsubishi Electric corp. produces the
mask ROM using the data within 32 Kbytes (addresses 008000
00FFFF
16). It is regardless of the selected ROM size (refer to MASK
ROM ORDER CONFIRMATION FORM.) Therefore, program “FF
to the addresses out of the selected ROM area in the EPROM which
you tender when ordering a mask ROM.
Address 00FFFF
16 of this microcomputer corresponds to the lowest
address of the EPROM which you tender.
0
Memory allocation control register
Address
63
16
Memory allocation selection bit
ROM size (ROM area)
0 : 32 Kbytes (addresses 008000
1 : 16 Kbytes (addresses 00C000
16
– 00FFFF16)
16
– 00FFFF16)
___ ___
16 –
16”
Fig. 3 Bit configuration of memory allocation control register
Writing data “5516” (LDM instruction)
Writing data “0016” or “0116” (LDM instruction)
• How to write in memory allocation control register
Fig. 4 How to write data in memory allocation control register
0
selection bit
ML
Next instruction
7
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
0
) = (0)(ML0) = (1)
(ML
ROM size : 32 kbytesROM size : 16 Kbytes
000000
00007F
000080
00087F
008000
16
16
16
16
16
SFR
Internal RAM
2048 bytes
000000
00007F
000080
00087F
16
16
16
16
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
SFR
Internal RAM
2048 bytes
Internal ROM
00C000
00FFFF
010000
FFFFFF
32 Kbytes
16
16
16
00FFFF
010000
FFFFFF
16
16
16
16
Internal ROM
16 Kbytes
: External memory area
16
Note. Banks 10
to FF16 cannot be accessed in the external bus mode B.
Fig. 5 Memory allocation (modification of internal ROM area by memory allocation selection bit)
Table 1. Relationship between memory allocation selection bits and addresses corresponding to chip-select signals CS0 and CS1 in external bus mode B
Memory allocation select bit
ML0
0
1
Internal ROM area
00800016 – 00FFFF16
00C00016 – 00FFFF16
00088016 – 007FFF16
00088016 – 007FFF16
___
CS0
___ ___
Access address
___
CS1
01000016 – 03FFFF16
00800016 – 00BFFF16
01000016 – 03FFFF16
ADDRESSING MODES
The M37736M4BXXXGP has 28 powerful addressing modes. Refer
to the MITSUBISHI SEMICONDUCTORS DATA BOOK SINGLECHIP 16-BIT MICROCOMPUTERS for the details of each addressing
mode.
MACHINE INSTRUCTION LIST
The M37736M4BXXXGP has 103 machine instructions. Refer to the
8
MITSUBISHI SEMICONDUCTORS DATA BOOK SINGLE-CHIP 16BIT MICROCOMPUTERS for details.
DATA REQUIRED FOR MASK ROM ORDERING
Please send the following data for mask orders.
(1) M37736M4BXXXGP mask ROM order confirmation form
(2) 100P6S mark specification form
(3) ROM data (EPROM 3 sets)
MITSUBISHI MICROCOMPUTERS
M37736M4BXXXGP
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
ABSOLUTE MAXIMUM RATINGS
SymbolParameterConditionsRatingsUnit
VccPower source voltage–0.3 to +7V
AVccAnalog power source voltage–0.3 to +7V
VI
Input voltage RESET, CNVss, BYTE –0.3 to +12V
Input voltage P0
Low-level peak output current P44 – P47, P100 – P103
Low-level average output current P00 – P07, P10 – P17, P20 – P27, P30 – P33,
IOL(avg)
IOL(avg)Low-level average output current P44 – P47, P100 – P10315mA
f(XIN)Main-clock oscillation frequency (Note 4)25MHz
f(X
CIN)Sub-clock oscillation frequency32.76850kHz
Notes 1. Average output current is the average value of a 100 ms interval.
2. The sum of I
the sum of I
the sum of I
the sum of I
3. Limits V
OL(peak) for ports P0, P1, P2, P3, P8, and P9 must be 80 mA or less,
OH(peak) for ports P0, P1, P2, P3, P8, and P9 must be 80 mA or less,
OL(peak) for ports P4, P5, P6, P7, and P10 must be 100 mA or less, and
OH(peak) for ports P4, P5, P6, P7, and P10 must be 80 mA or less.
IH and VIL for XCIN are applied when the sub clock external input selection bit = “1”.