The M37733S4LHP is a microcomputer using the 7700 Family core.
This 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 RAM, multiple-function timers,
serial I/O, A-D converter, and so on.
Its strong points are the low power dissipation, the low supply voltage
and the small package.
FEATURES
●Number of basic instructions .................................................. 103
Control devices for general commercial equipment such as office
automation, office equipment, personal information equipment, and
so on.
Control devices for general industrial equipment such as
communication equipment, and so on.
PIN CONFIGURATION (TOP VIEW)
61
1
5
/CLK
P8
/CTS
0
P7
5
P8
/AN
P8
P6
2
/RTS
0
P7
P7
5
P7
P7
P7
7
4
/CTS
/R
6
/AN
/AD
4
3
2
/TB2
P8
X
D
7
/AN
/AN
/AN
P8
/CLKS
0
P8
/CLKS
0
/AN
6
TRG
P7
P7
IN
/RTS
1
/T
3
1
/CLK
AV
7
/X
/X
/T
/R
4
3
/CLK
/CTS
2
/AN
1
/AN
0
/
V
AV
COUT
X
X
X
V
REF
V
SUB
CIN
D
D
62
1
0
D
63
0
64
65
0
66
1
67
CC
68
CC
69
70
SS
71
SS
72
73
74
2
75
2
76
2
77
2
78
1
79
0
80
60
1
1
D
x
R
/
6
P8
IN
/TB1
6
P6
59
2
1
D
x
/T
7
P8
IN
/TB0
5
P6
0
/A
0
P0
58
3
2
/INT
4
P6
4
3
2
1
/A
/A
/A
/A
4
2
3
1
P0
P0
P0
P0
55
57
54
56
M37733S4LHP
5
7
6
4
N
0
1
I
OUT
/INT
/INT
2
3
/TA4
1
/TA4
0
P6
P6
P6
P6
Outlinel
7
6
5
/A
/A
/A
7
6
5
P0
P0
P0
51
52
53
9
8
10
1
2
3
/RTP1
/RTP1
/RTP1
1
3
2
/KI
/KI
/KI
IN
IN
OUT
/TA2
/TA3
5
7
/TA3
6
P5
P5
P5
80P6D-
50
11
8
/D
8
/A
0
P1
0
/RTP1
0
/KI
OUT
/TA2
4
P5
49
12
9
/D
9
/A
1
P1
3
/RTP0
IN
/TA1
3
P5
48
13
10
/D
10
/A
2
P1
2
/RTP0
OUT
/TA1
2
P5
12
11
13
/D
/D
/D
12
11
13
/A
/A
/A
4
3
5
P1
P1
P1
47
45
46
16
14
15
7
1
0
P4
/RTP0
/RTP0
IN
OUT
/TA0
1
/TA0
0
P5
P5
1
0
15
14
/D
/D
/D
/D
17
16
15
14
/A
/A
/A
/A
1
0
7
6
P2
P2
P1
P1
41
42
43
44
40
P2
39
P2
38
P2
P2
37
P2
36
35
P2
34
P3
P3
33
32
P3
31
P3
30
V
29
E
X
28
27
X
26
RESET
25
CNV
24
BYTE
23
HOLD
22
RDY
21
P4
20
18
17
19
6
SS
OUT
IN
2
3
4
5
6
7
0
1
2
3
2
/D
18
/A
/D
19
/A
/D
20
/A
/D
21
/A
/D
22
/A
/D
23
/A
/R/W
/BHE
/ALE
/HLDA
SS
1
/
2
3
4
5
6
7
P43P44P45P4
A
MITSUBISHI MICROCOMPUTERS
X
IN
X
OUT
E
RESET
Reset input
V
REF
P8(8)P7(8)P5(8)P6(8)P4(5)
Address higher middler/data (16)
CNVss
BYTE
Address lower (8)
UART1(9)
UART0(9)
AV
SS
(0V)
AV
CC
(0V)
V
SS
V
CC
X
CIN
X
COUT
X
CIN
X
COUT
Clock input Clock output
Enable
output
Reference
voltage input
External data bus width
selection input
Clock Generating Circuit
Instruction Register(8)
Arithmetic Logic
Unit(16)
Accumulator A(16)
Accumulator B(16)
Index Register X(16)
Index Register Y(16)
Stack Pointer S(16)
Direct Page Register DPR(16)
Processor Status Register PS(11)
Input Butter Register IB(16)
Data Bank Register DT(8)
Program Bank Register PG(8)
Program Counter PC(16)
Incrementer/Decrementer(24)
Data Address Register DA(24)
Program Address Register PA(24)
Incrementer(24)
Instruction Queue Buffer Q
2
(8)
Instruction Queue Buffer Q
1
(8)
Instruction Queue Buffer Q
0
(8)
Data Buffer DB
L
(8)
Data Buffer DB
H
(8)
RAM
2048 bytes
Timer TA3(16)
Timer TA4(16)
Timer TA2(16)
Timer TA1(16)
Timer TA0(16)
Watchdog Timer
Timer TB2(16)
Timer TB1(16)
Timer TB0(16)
Address Bus
Data Bus(Odd)
Data Bus(Even)
Input/Output
port P8
Input/Output
port P7
Input/Output
port P6
Input/Output
port P5
Input/Output
port P4
Address bus/Data busAddress bus
UART2(9)
R/
WBHEALEHLDAHOLDRDY
1
A-D Converter(10)
M37733S4LHP
New product
16-BIT CMOS MICROCOMPUTER
M37733S4LHP BLOCK DIAGRAM
2
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
16-BIT CMOS MICROCOMPUTER
FUNCTIONS OF M37733S4LHP
ParameterFunctions
Number of basic instructions103
Instruction execution time333 ns (the fastest instruction at external clock 12 MHz frequency)
Memory sizeRAM2048 bytes
Input/Output ports
Multi-function timers
Serial I/O(UART or clock synchronous serial I/O) ✕ 3
Operating temperature range–40 to 85 °C
Device structureCMOS high-performance silicon gate process
Package80-pin plastic molded fine-pitch QFP (80P6D-A;0.5 mm lead pitch)
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
27 mW (at 5 V supply voltage, external clock 12 MHz frequency)
Input/Output voltage5 V
Output current5 mA
3
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
16-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
PinNameInput/OutputFunctions
Vcc,Power sourceApply 2.7 – 5.5 V to Vcc and 0 V to Vss.
Vss
CNVssCNVss inputInputConnect to Vcc.
_____
RESETReset inputInputWhen “L” level is applied to this pin, the microcomputer enters the reset state.
XINClock inputInput
XOUTClock outputOutput
_
EEnable outputOutput
BYTE
Bus width
InputThis pin determines whether the external data bus has an 8-bit width or a 16-bit 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
V
REFReference InputThis is reference voltage input pin for the A-D converter.
voltage input
P0
0/A0 –Address (low-OutputAddress (A0 – A7) is output.
P07/A7order) output
P10/A8/D8 –
Address (middle
I/OWhen the BYTE pin is set
P17/A15/D15-order)(D8 – D15) is input/output or an address (A8 – A15) is output. When the BYTE pin is “H” and an
output/dataexternal data bus has an 8-bit width, only address (A8 – A15) is output.
(high-order) I/O
P2
0/A16/D0
– Address (high-
I/OLow-order data (D0 – D7) is input/output or an address (A16 – A23) is output.
P27/A23/D7order)
output/data
(low-order) I/O
_
P30/R/WRead/WriteOutput“H” indicates the read status and “L” indicates the write status.
output
___
P31/BHEByte highOutput“L” isoutput when an odd-numbered address is accessed.
enable output
P3
2/ALEAddress latch OutputThis is used to retrieve only the address from address and data multiplex signal.
enable output
____
P33/HLDA Hold acknow-OutputThis outputs “L” level when the microcomputer enters hold state after a hold request is accepted.
____
HOLDHold requestInput
___
RDYReady inputInput
ledge output
inputsignal is “L”.
P42/1Clock outputOutputThis pin outputs the clock 1.
P4
3 – P47 I/O port P4I/OThese pins become a 5-bit I/O port. An I/O direction register is available so that each pin can be
P5
0 – P57 I/O port P5I/OIn addition to having the same functions as port P4, these pins also function as I/O pins for timers
P60 – P67 I/O port P6I/OIn addition to having the same functions as port P4, these pins also function as I/O pins for timer
P7
0 – P77 I/O port P7I/OIn addition to having the same functions as port P4, these pins function as input pins for A-D
P8
0 – P87 I/O port P8I/OIn addition to having the same functions as port P4, these pins also function as I/O pins for UART
These are pins of main-clock generating circuit. Connect a ceramic resonator or a quartz crystal
oscillator between X
connected to the XIN pin, and the XOUT pin should be left open.
When output level of E signal is “L”, data/instruction read or data write is performed.
IN and XOUT. When an external clock is used, the clock source should be
_
The data bus has a 16-bit width when “L” signal is input and an 8-bit width when “H” signal
is input.
to
“L”
and
external data bus has a 16-bit width, high-order data
This is an input pin for HOLD request signal. The microcomputer enters into hold state while this
This is an input pin for RDY signal. The microcomputer enters into ready state while this signal is
____
___
“L”.
programmed for input or output. These ports are in the input mode when reset.
A0 to A3 and input pins for key input interrupt input (KI1 – KI3).
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.
converter. P72 to P75 also function as I/O pins for UART2. Additionally, P76 and P77 have the
function as the output pin (XCOUT) and the input pin (XCIN) 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.
0 and UART 1.
4
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
BASIC FUNCTION BLOCKS
The M37733S4LHP has the same functions as the
M37733MHBXXXFP except for the following :
(1) The memory map is different.
(2) The processor mode is different.
(3) The reset circuit is different.
(4) Pulse output port mode of timer A is available.
(5) The function of ROM area modification is not available.
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 RAM and control registers for internal peripheral devices are
assigned to bank 0
Addresses FFD6
16.
16 to FFFF16 are the RESET and interrupt vector
addresses and contain the interrupt vectors. Use ROM for memory
of this address.
000000
16
Bank 0
16
00FFFF
16
010000
16
16 to
000000
00007F
000080
16-BIT CMOS MICROCOMPUTER
The 2048-byte area allocated to addresses from 80
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.
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.
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 P8 direction register
Pulse output data register 1
Pulse output data register 0
A-D control register 0
A-D control register 1
UART2 transmission buffer register
UART2 transmit/receive control register 0
UART2 transmit/receive control register 1
UART2 receive buffer register
Oscillation circuit control register 0
Port function control register
Serial transmit control register
Oscillation circuit control register 1
A-D/UART2 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
INT
0
interrupt control register
INT
1
interrupt control register
INT
2
/Key input interrupt control register
Fig. 2 Location of internal peripheral devices and interrupt control registers
6
Note . Do not write to this address.
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
Pulse output port mode
The pulse motor drive waveform can be output by using plural internal
timer A.
Figure 3 shows a block diagram for pulse output port mode. In the
pulse output port mode, two pairs of four-bit pulse output ports are
used. Whether using pulse output port or not can be selected by
waveform output selection bit (bit 0, bit 1) of waveform output mode
register (62
output selection bit is set to “1”, RTP1
are used as pulse output ports, and when bit 1 of waveform output
selection bit is set to “1”, RTP0
used as pulse output ports. When bits 1 and 0 of waveform output
selection bit are set to “1”, RTP1
RTP0
The ports not used as pulse output ports can be used as normal
parallel ports, timer input/output or key input interrupt input.
In the pulse output port mode, set timers A0 and A2 to timer mode as
timers A0 and A2 are used. Figure 5 shows the bit configuration of
timer A0, A2 mode registers in pulse output port mode.
Data can be set in each bit of the pulse output data register
corresponding to four ports selected as pulse output ports. Figure 6
16 address) shown in Figure 4. When bit 0 of waveform
0, RTP11, RTP12, and RTP13
0, RTP01, RTP02, and RTP03 are
0, RTP11, RTP12, and RTP13, and
0, RTP01, RTP02, and RTP03 are used as pulse output ports.
16-BIT CMOS MICROCOMPUTER
shows the bit configuration of the pulse output data register. The
contents of the pulse output data register 1 (low-order four bits of
1C
16 address) corresponding to RTP10, RTP11, RTP12, and RTP13
is output to the ports each time the counter of timer A2 becomes
0000
16. The contents of the pulse output data register 0 (low-order
four bits of 1D
and RTP0
becomes 0000
Figure 7 shows example of waveforms in pulse output port mode.
When “0” is written to a specified bit of the pulse output data register,
“L” level is output to the corresponding pulse output port when the
counter of corresponding timer becomes 0000
written, “H” level is output to the pulse output port.
Pulse width modulation can be applied to each pulse output port.
Since pulse width modulation involves the use of timers A1 and A3,
activate these timers in pulse width modulation mode.
16 address) corresponding to RTP00, RTP01, RTP02,
3 is output to the ports each time the counter of timer A0
16.
16, and when “1” is
Pulse width modulation selection bit
(Bit 4, 5 of 62
Pulse width modulation output
Pulse width modulation output
Data bus (even)
16 address)
by timer A3
by timer A1
Timer A2
Pulse output data
register 1 (1C16 address)
Data bus (odd)
Pulse output data
register 0 (1D
Timer A0
45
3
D
D2
D1
D0
D11
D10
D9
D8
16 address)
D
D
D
D
D
D
D
D
T
Q
Q
Q
Q
Q
Q
Q
Q
T
Polarity selection bit
(Bit 3 of 62
16 address)
3 (P57)
RTP1
RTP1
2 (P56)
1 (P55)
RTP1
RTP10 (P54)
RTP0
3 (P53)
RTP02 (P52)
RTP0
1 (P51)
RTP0
0 (P50)
Fig. 3 Block diagram for pulse output port mode
7
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
RTP10, RTP11, RTP12, and RTP13 are applied pulse width modulation
by timer A3 by setting the pulse width modulation selection bit by
timer A3 (bit 5) of the waveform output mode register to “1”.
RTP0
0, RTP01, RTP02, and RTP03 are applied pulse width modulation
by timer A1 by setting the pulse width modulation selection bit by
timer A1 (bit 4) of the waveform output mode register to “1”.
The contents of the pulse output data register 0 can be reversed and
output to pulse output ports RTP0
the polarity selection bit (bit 3) of the waveform output mode register.
When the polarity selection bit is “0”, the contents of the pulse output
data register 0 is output unchangeably, and when “1”, the contents of
the pulse output data register 0 is reversed and output. When pulse
width modulation is applied, likewise the polarity reverse to pulse
width modulation can be selected by the polarity selection bit.
765432 01
0
0, RTP01, RTP02, and RTP03 by
Address
Weveform output mode register 6216
Weveform output selection bit
0 0 : Parallel port
0 1 : RTP1 selected
1 0 : RTP0 selected
1 1 : RTP1 and RTP0 selected
Fig. 5 Timer A0, A2 mode register bit configuration in pulse output
port mode
765432 01
Pulse output data register 0 1D16
RTP00 output data
RTP01 output data
RTP02 output data
RTP03 output data
765432 01
Pulse output data register 1 1C16
Address
Address
Address
Fig. 4 Waveform output mode register bit configuration
0
output data
RTP1
RTP11 output data
RTP12 output data
RTP13 output data
Fig. 6 Pulse output data register bit configuration
8
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
Output signal at each time
when timer A2 becomes 0000
3 (P57)
RTP1
RTP1
2 (P56)
1 (P55)
RTP1
RTP10 (P54)
Output signal at each time
when timer A2 becomes 0000
16-BIT CMOS MICROCOMPUTER
Example of pulse output port (RTP10 – RTP13)
16
Example of pulse output port (RTP10 – RTP13) when pulse width modulation is applied by timer A3.
16
3 (P57)
RTP1
RTP1
2 (P56)
1 (P55)
RTP1
0 (P54)
RTP1
Output signal at each time
when timer A0 becomes 0000
RTP0
3 (P53)
RTP0
2 (P52)
1 (P51)
RTP0
Example of pulse output port (RTP00 – RTP03) when pulse width modulation is applied
by timer A1 with polarity selection bit = “1”.
16
0 (P50)
RTP0
Fig. 7 Example of waveforms in pulse output port mode
9
MITSUBISHI MICROCOMPUTERS
M37733S4LHP
New product
PROCESSOR MODE
The bits 0 of processor mode register 0 as shown in Figure 8 is used
to select which mode of microprocessor mode, and evaluation chip
mode.
Figure 9 shows functions of P0
The external memory area also changes when the mode changes.
Figure 10 shows the memory map for each mode.
The accessing of the external memory is affected by the BYTE pin,
the bit 2 (wait bit) of processor mode register 0, and bit 0 (wait selection
bit) of processor mode register 1.
This bit must be “1”
(becomes “1” after reset release)
Address
16
5E
16-BIT CMOS MICROCOMPUTER
• BYTE pin
When accessing the external memory, the level of the BYTE pin is
used to determine whether to use the data bus as 8-bit width or 16bit width.
The data bus width is 8 bits when the level of the BYTE pin is “H”,
and P2
0/A16/D0 to P27/A23/D7 pins become the data I/O pins.
The data bus width is 16 bits when the level of the BYTE pin is “L”,
and both P2
D
15 pins become the data I/O pins.
When accessing the internal memory, the data bus width is always
16 bits regardless of the BYTE pin level.
76543201
0/A16/D0 to P27/A23/D7 pins and P10/A8/D8 to P17/A15/
Address
Processor mode register 1
Wait selection bit
0 : Wait 0
1 : Wait 1
5F16
Wait bit
0 : Wait
1 : No Wait
Software reset bit
Reset occurs when this bit is set to “1”