MITSUBISHI MICROCOMPUTERS
pro
New
d
uct
M37735S4LHP
16-BIT CMOS MICROCOMPUTER
DESCRIPTION
The M37735S4LHP 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.
qInterrupts
............................................................ 19 types, 7 levels
qMultiple-function
16-bit timer ................................................. 5 + 3
qSerial
I/O (UART or clock synchronous)..........................................3
q10-bit
A-D converter ..............................................8-channel inputs
q12-bit
watchdog timer
qProgrammable
input/output
(ports P4, P5, P6, P7, P8) ..............................................................37
qClock
generating circuit ........................................ 2 circuits built-in
qSmall
package.......................80-pin plastic molded fine-pitch QFP
(80P6D-A; 0.5 mm lead pitch)
FEATURES
qNumber
of basic instructions .................................................. 103
qMemory
size
RAM ................................................ 2048 bytes
qInstruction
execution time
The fastest instruction at 12 MHz frequency .......................333 ns
qSingle
power supply ..................................................... 2.7 – 5.5 V
qLow
power dissipation (At 3 V supply voltage, 12 MHz frequency)
............................................ 10.8 mW (Typ.)
APPLICATION
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.
PIN CONFIGURATION (TOP VIEW)
P8
6
/R
x
D
1
P8
7
/T
x
D
1
P0
0
/C S
0
P0
1
/C S
1
P0
2
/C S
2
P0
3
/C S
3
P0
4
/C S
4
P0
5
/RSM P
P0
6
/A
16
P0
7
/A
17
P1
0
/A
8
/D
8
P1
1
/A
9
/D
9
P1
2
/A
10
/D
10
P1
3
/A
11
/D
11
P1
4
/A
12
/D
12
P1
5
/A
13
/D
13
P1
6
/A
14
/D
14
P1
7
/A
15
/D
15
P2
0
/A
0
/D
0
P2
1
/A
1
/D
1
59
49
57
55
53
52
51
50
47
58
P8
5
/C LK
1
P8
4
/C TS
1
/R TS
1
P8
3
/T
X
D
0
P8
2
/R
X
D
0
/C LKS
0
P8
1
/C LK
0
P8
0
/C TS
0
/R TS
0
/CLKS
1
V
CC
AV
C C
V
R EF
AV
SS
V
SS
P7
7
/AN
7
/X
CIN
P7
6
/AN
6
/X
C O U T
P7
5
/AN
5
/AD
TRG
/T
X
D
2
P7
4
/AN
4
/R
X
D
2
P7
3
/AN
3
/C LK
2
P7
2
/AN
2
/C TS
2
P7
1
/AN
1
P7
0
/AN
0
P6
7
/TB2
IN
/
SU B
60
56
54
48
46
45
44
43
42
41
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
M37735S 4LHP
P2
2
/A
2
/D
2
P2
3
/A
3
/D
3
P2
4
/A
4
/D
4
P2
5
/A
5
/D
5
P2
6
/A
6
/D
6
P2
7
/A
7
/D
7
P3
0
/WEL
P3
1
/WEH
P3
2
/ALE
P3
3
/H LD A
V
SS
RDE
X
O U T
X
IN
R ESET
C N V
SS
BYTE
H O LD
RDY
P4
2
/
1
10
11
12
13
14
15
16
17
18
P6
6
/TB1
IN
P6
5
/TB0
IN
P6
4
/IN T
2
P6
3
/IN T
1
P6
2
/IN T
0
P6
1
/TA4
IN
P6
0
/TA4
OUT
P5
7
/TA3
IN
/KI
3
/RTP1
3
P5
6
/TA3
OUT
/KI
2
/RTP1
2
P5
5
/TA2
IN
/KI
1
/RTP1
1
P5
4
/TA2
OUT
/KI
0
/RTP1
0
P5
3
/TA1
IN
/RTP0
3
P5
2
/TA1
O U T
/RTP0
2
P5
1
/ TA0
IN
/RTP0
1
P5
0
/TA0
O U T
/RTP0
0
P4
7
P4
6
P4
5
P4
4
P4
3
Outline 80P6D-A
19
20
2
3
1
5
4
6
7
8
9
MITSUBISHI MICROCOMPUTERS
pro
New
d
uct
M37735S4LHP
16-BIT CMOS MICROCOMPUTER
Reference
External data bus width
voltage input
selection input
V
REF
BYTE
Data Bus(Even)
Data Bus(Odd)
Data Buffer DB
H
(8)
Data Buffer DB
L
(8)
Instruction Register(8)
Instruction Queue Buffer Q
0
(8)
Address (18)/Data (16)
Instruction Queue Buffer Q
2
(8)
Address Bus
Incrementer(24)
(0V)
AV
SS
Program Address Register PA(24)
Data Address Register DA(24)
Incrementer/Decrementer(24)
Program Counter PC(16)
(0V)
V
SS
Program Bank Register PG(8)
Data Bank Register DT(8)
UART2(9 )
UART1(9)
UART0(9)
1
RDY HOLD HLDA ALE WEH WEL RDE
CNVss
A-D Converter(10)
Input Butter Register IB(16)
Timer TB2(16)
Timer TB1(16)
Timer TB0(16)
Reset input
RESET
Direct Page Register DPR(16)
Stack Pointer S(16)
Timer TA4(16)
Timer TA3(16)
Timer TA2(16)
Timer TA1(16)
Timer TA0(16)
M37735S4LHP BLOCK DIAGRAM
Index Register X(16)
Accumulator B(16)
Accumulator A(16)
Clock Generating Circuit
2048 bytes
Clock input Clock output
X
IN
X
OUT
RAM
Arithmetic Logic
Unit(16)
X
COUT
X
CIN
2
Input/Output
port P8
P8(8)
Input/Output
port P7
P7(8)
Input/Output
port P6
Index Register Y(16)
X
COUT
X
CIN
P6(8)
Input/Output
port P5
Processor Status Register PS(11)
Watchdog Timer
P5(8)
Input/Output
port P4
P4(5)
V
CC
Address bus/Data bus
Instruction Queue Buffer Q
1
(8)
AV
CC
CS
0
CS
1
CS
2
CS
3
CS
4
RSMP
MITSUBISHI MICROCOMPUTERS
New
p
c
odu
r
t
M37735S4LHP
16-BIT CMOS MICROCOMPUTER
FUNCTIONS OF M37735S4LHP
Parameter
Number of basic instructions
Instruction execution time
Memory size
Input/Output ports
Multi-function timers
Serial I/O
A-D converter
Watchdog timer
Interrupts
Clock generating circuit
Supply voltage
Power dissipation
Input/Output characteristic
Memory expansion
Operating temperature range
Device structure
Package
Input/Output voltage
Output current
Functions
103
333 ns (the fastest instruction at external clock 12 MHz frequency)
2048 bytes
8-bit
!
4
5-bit
!
1
16-bit
!
5
16-bit
!
3
(UART or clock synchronous serial I/O)
!
3
10-bit
!
1 (8 channels)
12-bit
!
1
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)
2.7 – 5.5 V
10.8 mW (at 3 V supply voltage, external clock 12 MHz frequency)
27 mW (at 5 V supply voltage, external clock 12 MHz frequency)
5V
5 mA
Maximum 1 Mbytes
–40 to 85 °C
CMOS high-performance silicon gate process
80-pin plastic molded fine-pitch QFP (80P6D-A; 0.5 mm lead pitch)
RAM
P5 – P8
P4
TA0, TA1, TA2, TA3, TA4
TB0, TB1, TB2
3
MITSUBISHI MICROCOMPUTERS
Ne
Pin
Vcc,
Vss
CNVss
_____
RESET
pro
w
d
uct
M37735S4LHP
16-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Name
Input/Output
Power source
Apply 2.7 – 5.5 V to Vcc and 0 V to Vss.
CNVss input
Reset input
Clock input
Clock output
Read enable output
Bus width
selection input
Input
Input
Input
Output
Output
Input
Functions
X
IN
X
OUT
___
RDE
BYTE
AVcc,
AVss
V
REF
Analog power
source input
Reference
voltage input
___
P0
0
/
___
– Chip selection
CS
0
P0
4
/
CS
4
output
____
P0
5
/
RSMP
Ready sampling
output
P0
6
/A
16
,
Address output
P0
7
/A
17
P1
0
/A
8
/D
8
– Address output
P1
7
/A
15
/D
15
/data (high
-order) I/O
P2
0
/A
0
/D
0
– Address output
P2
7
/A
7
/D
7
/data (low
-order) I/O
___
P3
0
/
WEL
Write enable
output
___
Connect to Vcc.
When “L” level is applied to this pin, the microcomputer enters the reset state.
These are pins of main-clock generating circuit. Connect a ceramic resonator or a quartz-crystal
oscillator between X
IN
and X
OUT
. When an external clock is used, the clock source should be
connected to the X
IN
pin, and the X
OUT
pin should be left
___
open.
When data/instruction read is performed, output level of
RDE
signal is “L”.
This pin determines whether the 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.
Power source input pin for the A-D converter. Externally connect AVcc to Vcc and AVss to Vss.
This is reference voltage input pin for the A-D converter.
___
___
Input
Output
Output
Output
I/O
When the specified external memory area is accessed,
CS
0
–
CS
4
signals are “L”.
___
The timing signal to be input to the
RDY
pin is output.
An address (A
16
, A
17
) is output.
When the BYTE pin is set to “L” and external data bus has a 16-bit width, high-order data
(D
8
– D
15
) is input/output or an address (A
8
– A
15
) is output. When the BYTE pin is “H” and an
external data bus has an 8-bit width, only address (A
8
– A
15
) is output.
Low-order data (D
0
– D
7
) is input/output or an address (A
0
– A
7
) is output.
___
I/O
Output
P3
1
/
WEH
P3
2
/ALE
____
Write enable
high output
Address latch
enable output
Hold acknow-
ledge output
Hold request
input
Ready input
Output
Output
Output
Input
Input
Output
I/O
I/O
I/O
P3
3
/
HLDA
____
When the BYTE pin is “L” and writing to an even address is performed, output level of
WEL
signal
is “L”. When the BYTE pin is “H” and writing to an even address or an odd address is performed,
___
output level of
WEL
signal is “L”.
___
When the BYTE pin is “L” and writing to an odd address is performed, output level of
WEH
signal
___
is “L”. When the BYTE pin is “H”,
WEH
signal is always “H”.
This is used to retrieve only the address from the multiplex signal which consists of address and
data.
This outputs “L” level when the microcomputer enters hold state after a hold request is accepted.
____
HOLD
___
RDY
This is an input pin for
HOLD
request signal. The microcomputer enters hold state while this
signal is “L”.
___
This is an input pin for
RDY
signal. The microcomputer enters ready state while this signal is “L”.
This pin outputs the clock
1
.
These pins become a 5-bit I/O port. An I/O direction register is available so that each pin can be
programmed for input or output. These ports are in the input mode when reset.
In addition to having the same functions as port P4,
__ __
also function as I/O pins for timers
these pins
A0 to A3 and input pins for key input interrupt input (
KI
0
–
KI
3
).
In addition to having the same functions as port
___
these pins also function as I/O pins for timer
P4,
___
A4, input pins for external interrupt input (
INT
0
–
INT
2
) and input pins for timers B0 to B2. P6
7
also
functions as sub-clock
SUB
output pin.
In addition to having the same functions as port P4, these pins function as input pins for A-D
converter. P7
2
to P7
5
also function as I/O pins for UART2. Additionally, P7
6
and P7
7
have the
function as the output pin (X
COUT
) and the input pin (X
CIN
) of the sub-clock (32 kHz) oscillation
circuit, respectively. When P7
6
and P7
7
are used as the X
COUT
and X
CIN
pins, connect a resonator
or an oscillator between the both.
In addition to having the same functions as port P4, these pins also function as I/O pins for UART
0 and UART 1.
P4
2
/
1
P4
3
– P4
7
P5
0
– P5
7
P6
0
– P6
7
Clock output
I/O port P4
I/O port P5
I/O port P6
P7
0
– P7
7
I/O port P7
I/O
P8
0
– P8
7
I/O port P8
I/O
4
MITSUBISHI MICROCOMPUTERS
New
p
c
odu
r
t
M37735S4LHP
16-BIT CMOS MICROCOMPUTER
BASIC FUNCTION BLOCKS
The M37735S4LHP has the same functions as the M37735MHBXXXFP
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.
Refer to the section on the M37735MHBXXXFP, except for above
(1)–(5).
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
16
to
FFFFFF
16
. The address space is divided by 64-Kbyte unit called bank.
The banks are numbered from 0
16
to FF
16
.
However, banks 10
16
–FF
16
of the M37735S4LHP cannot be
accessed.
Built-in RAM and control registers for internal peripheral devices are
assigned to bank 0
16
.
Addresses FFD6
16
to FFFF
16
are the RESET and interrupt vector
addresses and contain the interrupt vectors. Use ROM for memory
of this address.
The 2048-byte area allocated to addresses from 80
16
to 87F
16
is the
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
16
to
7F
16
.
A 256-byte direct page area can be allocated anywhere in bank 0
16
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.
000000
16
Bank 0
16
00FFFF
16
010000
16
000000
16
00007F
16
000080
16
000000
16
Internal peripheral
devices
control registers
refer to Fig. 2 for
detail information
Internal RAM
2048 bytes
00007F
16
Bank 1
16
00FFD6
16
01FFFF
16
•••••••••••••••••••
Interrupt vector table
A-D/UART2 trans./rece.
UART1 transmission
UART1 receive
UART0 transmission
UART0 receive
Timer B2
Timer B1
Timer B0
Timer A4
Timer A3
Timer A2
00087F
16
FE0000
16
Bank FE
16
FEFFFF
16
FF0000
16
Bank FF
16
FFFFFF
16
00FFD6
16
00FFFF
16
00FFFE
16
Timer A1
Timer A0
INT
2
/Key input
INT
1
INT
0
Watchdog timer
DBC
BRK instruction
Zero divide
RESET
: Internal
: External
Note. Banks 10
16
–FF
16
cannot be accessed in the M37735S4LHP.
Fig. 1 Memory map
5