The M37733M4BXXXFP 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 so on.
FEATURES
●Number of basic instructions .................................................. 103
Control devices for general commercial equipment such as office
automation, office equipment, and so on.
Control devices for general industrial equipment such as
communication equipment, and so on.
10
11
12
13
14
15
0
1
2
6
/A
6
P0
7
/A
7
P0
8
/D
8
/A
0
P1
9
/D
9
/A
1
P1
/D
10
/A
2
P1
/D
11
/A
3
P1
/D
12
/A
4
P1
/D
13
/A
5
P1
/D
14
/A
6
P1
/D
15
/A
7
P1
/D
16
/A
0
P2
/D
17
/A
1
P2
/D
18
/A
2
P2
3
/D
19
/A
3
P2
P82/RXD0/CLKS
P8
0
/CTS0/RTS0/
P76/AN6/Xc
P75/AN5/
P83/TXD
P81/CLK
CLKS
V
AV
V
AV
P77/AN7/Xc
AD
TRG
/TxD
P74/AN4/RxD
P73/AN3/CLK
P72/AN2/CTS
P71/AN
REF
V
OUT
646362
65
0
66
0
67
0
6
8
1
69
CC
70
CC
71
72
SS
73
SS
74
IN
75
76
2
77
2
78
2
79
2
80
1
1
2
0
SUB
/AN
/φ
0
IN
P7
/TB2
7
P6
3
IN
/TB1
6
P6
61
4
IN
/TB0
5
P6
59
60
57
58
56
55
M37733M4BXXXFP
9
8
10
7
6
5
2
1
0
3
IN
KI
OUT
NT
/I
2
P6
/TA4
1
P6
/TA4
0
P6
/
IN
/TA3
7
P5
NT
/I
4
P6
NT
/I
3
P6
54
11
2
KI
/
OUT
/TA3
6
P5
53
12
1
KI
/
IN
/TA2
5
P5
52
13
0
KI
/
OUT
/TA2
4
P5
51
14
IN
/TA1
3
P5
50
15
OUT
/TA1
2
P5
49
16
IN
/TA0
1
P5
48
17
OUT
/TA0
0
P5
47
46
44
45
21
18
20
19
P47P46P45P44P4
42
41
43
40
P24/A20/D
39
P25/A21/D
38
P26/A22/D
37
P27/A23/D
36
P30/
35
P31/
34
P32/
33
P33/
32
V
ss
31
E
30
X
OUT
29
IN
X
28
RESET
27
CNV
26
BYTE
25
P40/
24
23
22
1
3
/φ
2
RDY
/
1
P4
P4
Outline 80P6N-A
R/W
BHE
ALE
HLDA
SS
HOLD
4
5
6
7
1
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
BYTE
selection input
External data bus width
REF
V
Reference
voltage input
Instruction Register(8)
(0V)
CC
AV
SS
AV
H
Data Buffer DB
(8)
Data Buffer DBL(8)
0
Instruction Queue Buffer Q
Instruction Queue Buffer Q
Instruction Queue Buffer Q2(8)
(8)
1
(8)
Incrementer(24)
Program Address Register PA(24)
Data Address Register DA(24)
MITSUBISHI MICROCOMPUTERS
M37733M4BXXXFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
Data Bus(Even)
Data Bus(Odd)
P0(8)
P1(8)
Address Bus
P2(8)
Input/Output
port P0
Input/Output
port P1
Input/Output
port P2
CNVss
SS
V
(0V)
CC
V
RESET
Reset input
E
Enable output
OUT
X
Clock output
IN
X
Clock input
CIN
COUT
X
X
Clock Generating Circuit
Incrementer/Decrementer(24)
Program Counter PC(16)
Program Bank Register PG(8)
Data Bank Register DT(8)
Input Butter Register IB(16)
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)
Accumulator A(16)
Arithmetic Logic
Unit(16)
UART2(9)
Timer TB2(16)
Watchdog Timer
Timer TA3(16)
Timer TA4(16)
Timer TA2(16)
RAM
ROM
A-D Converter(10)
UART0(9)
UART1(9)
Timer TB0(16)
Timer TB1(16)
Timer TA0(16)
Timer TA1(16)
2048 bytes
32 Kbytes
X
COUT
X
CIN
P4(8)P3(4)
P5(8)P6(8)
P7(8)
P8(8)
Input/Output
port P3
Input/Output
port P4
Input/Output
port P5
Input/Output
port P6
Input/Output
port P7
Input/Output
port P8
M37733M4BXXXFP BLOCK DIAGRAM
2
MITSUBISHI MICROCOMPUTERS
M37733M4BXXXFP
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
FUNCTIONS OF M37733M4BXXXFP
Number of basic instructions103
Instruction execution time160 ns (the fastest instruction at external clock 25 MHz frequency)
Memory size
Input/Output ports
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
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
3
MITSUBISHI MICROCOMPUTERS
M37733M4BXXXFP
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
XOUTClock 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
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
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. When output level of E signal is “L”, data/instruction read or data write is performed.
_
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.
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 (A0 – A7).
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
(A0 – A7) is output .
mode or the microprocessor mode, R/W, BHE, ALE, and HLDA signals are output.
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 and input pins for key input interrupt input (KI0 – KI3 ).
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. P7
7 have the function as the output pin (XCOUT) and the input pin (XCIN) of the sub-clock (32 kHz)
P7
2 to P75 also function as I/O pins for UART2. Additionally, P76 and
oscillation circuit, respectively. When P7
a resonator or an oscillator between the both.
function as I/O pins for UART 0 and UART 1.
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
0 – D7) is input/output or an address
__
___
6 and P77 are used as the XCOUT and XCIN pins, connect
____
____ ___
__ __
___ ___
4
PRELIMINARY
Notice: This is not a final specification.
Some parametric limits are subject to change.
MITSUBISHI MICROCOMPUTERS
M37733M4BXXXFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
BASIC FUNCTION BLOCKS
The M37733M4BXXXFP has the same functions as the
M37733MHBXXXFP except for the memory allocation and the ROM
area modification function.
Refer to the section on the M37733MHBXXXFP.
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
16 to FF16.
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
16 to 87F16 is the
built-in RAM. In addition to storing data, the RAM is used as stack
during a subroutine call or interrupts.
000000
16
Bank 0
16
00FFFF
16
010000
16
16 to
000000
00007F
000080
00087F
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
Note. Internal ROM area can be modified. (Refer to the section on ROM area modification function.)
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
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
M37733M4BXXXFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
ROM AREA MODIFICATION FUNCTION
The internal ROM size and its address area of the M37733M4BXXXFP
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.
76543210
ML
Note. Write to the memory allocation control register as the flow shown in Figure 4.
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)
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
M37733M4BXXXFP
SINGLE-CHIP 16-BIT CMOS MICROCOMPUTER
SFR
Internal RAM
2048 bytes
00FFFF
16
010000
16
FFFFFF
16
: External memory area
Internal ROM
32 Kbytes
00C000
00FFFF
010000
FFFFFF
16
16
16
16
Internal ROM
16 Kbytes
Fig. 5 Memory allocation (modification of internal ROM area by memory allocation selection bit)
ADDRESSING MODES
The M37733M4BXXXFP has 28 powerful addressing modes. Refer
to the SINGLE-CHIP 16-BIT MICROCOMPUTERS DATA BOOK for
the details of each addressing mode.
MACHINE INSTRUCTION LIST
The M37733M4BXXXFP has 103 machine instructions. Refer to the
SINGLE-CHIP 16-BIT MICROCOMPUTERS DATA BOOK for details.
DATA REQUIRED FOR MASK ROM ORDERING
Please send the following data for mask orders.
(1) M37733M4BXXXFP mask ROM order confirmation form
(2) 80P6N mark specification form
(3) ROM data (EPROM 3 sets)
8
MITSUBISHI MICROCOMPUTERS
M37733M4BXXXFP
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, P50 – P53
Low-level average output current P00 – P07, P10 – P17, P20 – P27, P30 – P33,
IOL(avg)
IOL(avg)Low-level average output current P44 – P47, P50 – P5315mA
f(XIN)Main-clock oscillation frequency (Note 4)25MHz
CIN)Sub-clock oscillation frequency32.76850kHz
f(X
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, and P8 must be 80 mA or less,
OH(peak) for ports P0, P1, P2, P3, and P8 must be 80 mA or less,
OL(peak) for ports P4, P5, P6, and P7 must be 100 mA or less, and
OH(peak) for ports P4, P5, P6, and P7 must be 80 mA or less.
IH and VIL for XCIN are applied when the sub clock external input selection bit = “1”.