MITSUBISHI MICROCOMPUTERS
3850 Group (Spec. H)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3850 group (spec. H) is the 8-bit microcomputer based on the
740 family core technology.
The 3850 group (spec. H) is designed for the household products
and office automation equipment and includes serial I/O functions,
8-bit timer, and A-D converter.
FEATURES
q
Basic machine-language instructions ...................................... 71
q
Minimum instruction execution time .................................. 0.5
µs
(at 8 MHz oscillation frequency)
q
Memory size
ROM ................................................................... 8K to 32K bytes
RAM ................................................................. 512 to 1024 bytes
q
Programmable input/output ports ............................................ 34
q
Interrupts ................................................. 14 sources, 14 vectors
q
Timers ............................................................................. 8-bit
!
4
q
Serial I/O1 .................... 8-bit
!
1(UART or Clock-synchronized)
q
Serial I/O2 ................................... 8-bit
!
1(Clock-synchronized)
q
PWM ............................................................................... 8-bit
!
1
q
A-D converter ............................................... 10-bit
!
5 channels
q
Watchdog timer ............................................................ 16-bit
!
1
q
Clock generating circuit ..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
qPower
source voltage
In high-speed mode .................................................. 4.0 to 5.5 V
(at 8 MHz oscillation frequency)
In middle-speed mode ............................................... 2.7 to 5.5 V
(at 8 MHz oscillation frequency)
In low-speed mode .................................................... 2.7 to 5.5 V
(at 32 kHz oscillation frequency)
qPower
dissipation
In high-speed mode ..........................................................34 mW
(at 8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ............................................................ 60
µW
(at 32 kHz oscillation frequency, at 3 V power source voltage)
qOperating
temperature range .................................... –20 to 85°C
APPLICATION
Office automation equipment, FA equipment, Household products,
Consumer electronics, etc.
PIN CONFIGURATION (TOP VIEW)
V
CC
V
REF
AV
SS
P4
4
/INT
3
/PWM
P4
3
/INT
2
/S
CMP2
P4
2
/INT
1
P4
1
/INT
0
P4
0
/CNTR
1
P2
7
/CNTR
0
/S
RDY1
P2
6
/S
CLK
P2
5
/TxD
P2
4
/RxD
P2
3
P2
2
CNV
SS
P2
1
/X
CIN
P2
0
/X
COUT
RESET
X
IN
X
OUT
V
SS
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
42
41
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
P3
0
/AN
0
P3
1
/AN
1
P3
2
/AN
2
P3
3
/AN
3
P3
4
/AN
4
P0
0
/S
IN2
P0
1
/S
OUT2
P0
2
/S
CLK2
P0
3
/S
RDY2
P0
4
P0
5
P0
6
P0
7
P1
0
/(LED
0
)
P1
1
/(LED
1
)
P1
2
/(LED
2
)
P1
3
/(LED
3
)
P1
4
/(LED
4
)
P1
5
/(LED
5
)
P1
6
/(LED
6
)
P1
7
/(LED
7
)
Package type : FP ........................... 42P2R-A/E (42-pin plastic-molded SSOP)
Package type : SP ........................... 42P4B (42-pin plastic-molded SDIP)
Fig. 1 M38503M4H-XXXFP/SP pin configuration
M38503M4H-XXXFP
M38503M4H-XXXSP
2
Reset input
V
SS
V
CC
RESET
18
15
1
21
FUNCTIONAL BLOCK DIAGRAM
Main-clock
input
X
IN
CNV
SS
Main-clock
output
X
OUT
FUNCTIONAL BLOCK
19
20
Fig. 2 Functional block diagram
C P U
Sub-clock Sub-clock
input
output
X
CIN
X
COUT
Clock generating circuit
RAM
ROM
X
Prescaler 12(8)
A
Timer 2( 8 )
Timer X( 8 )
Timer Y( 8 )
Timer 1( 8 )
Y
Prescaler X(8)
S
PC
H
PS
CNTR
1
PC
L
Prescaler Y(8)
CNTR
0
Watchdog
timer
Reset
A-D
converter
(10)
PWM
(8)
SI/O1(8)
X
COUT
SI/O2(8)
X
CIN
INT
0
–
INT
3
P4(5)
P3(5)
P2(8)
P1(8)
P0(8)
2 3
38 39 40 41 42
4 5 6 7 8
9 10 11 12 13 1416 17
22 23 24 25 26 27 28 29
30 31 32 33 34 35 36 37
I/O port P4
I/O port P3
I/O port P2
I/O port P1
I/O port P0
V
REF
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
3850 Group (Spec. H)
MITSUBISHI MICROCOMPUTERS
AV
SS
MITSUBISHI MICROCOMPUTERS
3850 Group (Spec. H)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1 Pin description
Pin
V
CC
, V
SS
CNV
SS
RESET
X
IN
X
OUT
P0
0
/S
IN2
P0
1
/S
OUT2
P0
2
/S
CLK2
P0
3
/S
RDY2
P0
4
–P0
7
P1
0
–P1
7
P2
0
/X
COUT
P2
1
/X
CIN
P2
2
P2
3
P2
4
/RxD
P2
5
/TxD
P2
6
/S
CLK
P2
7
/CNTR
0
/
S
RDY1
P3
0
/AN
0
–
P3
4
/AN
4
P4
0
/CNTR
1
P4
1
/INT
0
P4
2
/INT
1
P4
3
/INT
2
/S
CMP2
P4
4
/INT
3
/PWM
I/O port P4
•8-bit CMOS I/O port with the same function as port P0.
I/O port P3
•CMOS compatible input level.
•CMOS 3-state output structure.
•8-bit CMOS I/O port with the same function as port P0.
•CMOS compatible input level.
•CMOS 3-state output structure.
• Interrupt input pin
• S
CMP2
output pin
• Interrupt input pin
• PWM output pin
• Timer Y function pin
• Interrupt input pins
• Serial I/O1 function pin/
Timer X function pin
• A-D converter input pin
I/O port P2
Name
Power source
CNV
SS
input
Reset input
Clock input
Clock output
Functions
•Apply voltage of 2.7 V – 5.5 V to Vcc, and 0 V to Vss.
•This pin controls the operation mode of the chip.
•Normally connected to V
SS
.
•Reset input pin for active “L.”
•Input and output pins for the clock generating circuit.
•Connect a ceramic resonator or quartz-crystal oscillator between the X
IN
and X
OUT
pins to set
the oscillation frequency.
•When an external clock is used, connect the clock source to the X
IN
pin and leave the X
OUT
pin open.
•8-bit CMOS I/O port.
I/O port P0
•I/O direction register allows each pin to be individually
programmed as either input or output.
•CMOS compatible input level.
•CMOS 3-state output structure.
I/O port P1
•P1
0
to P1
7
(8 bits) are enabled to output large current for LED drive.
•8-bit CMOS I/O port.
•I/O direction register allows each pin to be individually
programmed as either input or output.
•CMOS compatible input level.
•P2
0
, P2
1
, P2
4
to P2
7
: CMOS3-state output structure.
•P2
2
, P2
3
: N-channel open-drain structure.
• Serial I/O1 function pin
• Sub-clock generating circuit I/O
pins (connect a resonator)
• Serial I/O2 function pin
Function except a port function
3
MITSUBISHI MICROCOMPUTERS
3850 Group (Spec. H)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PART NUMBERING
Product name
M3850 3
M
4
H– XXX
SP
Package type
SP : 42P4B
FP : 42P2R-A/E
SS : 42S1B-A
ROM number
Omitted in One Time PROM version shipped in blank,
EPROM version, and flash memory version.
– : standard
Omitted in One Time PROM version shipped in blank, EPROM
version, and flash memory version.
H–: Partial specification changed version
ROM/PROM/Flash memory size
9 : 36864 bytes
1 : 4096 bytes
2 : 8192 bytes
A : 40960 bytes
3 : 12288 bytes B : 45056 bytes
4 : 16384 bytes C : 49152 bytes
5 : 20480 bytes D : 53248 bytes
6 : 24576 bytes E : 57344 bytes
7 : 28672 bytes F : 61440 bytes
8 : 32768 bytes
The first 128 bytes and the last 2 bytes of ROM are reserved areas ; they
cannot be used as a user’s ROM area.
However, they can be programmed or erased in the flash memory version,
so that the users can use them.
Memory type
M : Mask ROM version
E : EPROM or One Time PROM version
F : Flash memory version
RAM size
0 : 192 bytes
1 : 256 bytes
2 : 384 bytes
3 : 512 bytes
4 : 640 bytes
5 : 768 bytes
6 : 896 bytes
7 : 1024 bytes
8 : 1536 bytes
9 : 2048 bytes
Fig. 3 Part numbering
4
MITSUBISHI MICROCOMPUTERS
3850 Group (Spec. H)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
GROUP EXPANSION
Mitsubishi plans to expand the 3850 group (spec. H) as follows.
Packages
42P4B ......................................... 42-pin shrink plastic-molded DIP
42P2R-A/E ........................................... 42-pin plastic-molded SOP
42S1B-A .................. 42-pin shrink ceramic DIP (EPROM version)
Memory Type
Support for mask ROM, One Time PROM, and flash memory ver-
sions.
Memory Size
Flash memory size ......................................................... 32 K bytes
One Time PROM size ..................................................... 24 K bytes
Mask ROM size ................................................... 8 K to 32 K bytes
RAM size ............................................................... 512 to 1 K bytes
Memory Expansion Plan
ROM size (bytes)
ROM
exteranal
32K
28K
Mass production
Under development
As of Feb. 2000
M38507M8/F8
24K
20K
M38504M6/E6
Mass production
16K
12K
M38503M4H
Mass production
8K
M38503M2H
384
512
640
768
1152
896
1024
RAM size (bytes)
1280
1408
1536
2048
Products under development or planning: the development schedule and specification may be revised without notice.
The development of planning products may be stopped.
Fig. 4 Memory expansion plan
5