MITSUBISHI MICROCOMPUTERS
3850 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
DESCRIPTION
The 3850 group is the 8-bit microcomputer based on the 740 fam-
ily core technology.
The 3850 group is designed for the household products and office
automation equipment and includes serial I/O functions, 8-bit
timer, and A-D converter.
FEATURES
qBasic
machine-language instructions ...................................... 71
qMinimum
instruction execution time .................................. 0.5
µs
(at 8 MHz oscillation frequency)
qMemory
size
ROM ................................................................... 8K to 24K bytes
RAM ..................................................................... 512 to 640 byte
qProgrammable
input/output ports ............................................ 34
qInterrupts
................................................. 14 sources, 14 vectors
qTimers
............................................................................. 8-bit
!
4
qSerial
I/O ....................... 8-bit
!
1(UART or Clock-synchronized)
qPWM
............................................................................... 8-bit
!
1
qA-D
converter ............................................... 10-bit
!
5 channels
qWatchdog
timer ............................................................ 16-bit
!
1
qClock
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 high-speed mode .................................................. 2.7 to 5.5 V
(at 4 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
P4
2
/INT
1
P4
1
/INT
0
P4
0
/CNTR
1
P2
7
/CNTR
0
/S
RDY
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
P0
1
P0
2
P0
3
P0
4
P0
5
P0
6
P0
7
P1
0
P1
1
P1
2
P1
3
/(LED
0
)
P1
4
/(LED
1
)
P1
5
/(LED
2
)
P1
6
/(LED
3
)
P1
7
/(LED
4
)
Package type : FP ........................... 42P2R-A (42-pin plastic-molded SSOP)
Package type : SP ........................... 42P4B (42-pin shrink plastic-molded DIP)
Fig. 1 M38503M4-XXXFP/SP pin configuration
M38503M4-XXXFP
M38503M4-XXXSP
2
Reset input
V
SS
RESET
18
15
21
1
FUNCTIONAL BLOCK
FUNCTIONAL BLOCK DIAGRAM
Fig. 2 Functional block diagram
V
CC
CNV
SS
Main-clock
input
X
IN
Main-clock
output
X
OUT
19
20
Sub-clock Sub-clock
input
output
X
CIN
X
COUT
Clock generating circuit
C P U
RAM
ROM
X
Prescaler 12(8)
A
Timer 1( 8 )
Timer 2( 8 )
Timer X( 8 )
Timer Y( 8 )
Y
Prescaler X(8)
S
PC
H
PS
CNTR
1
PC
L
CNTR
0
Prescaler Y(8)
Watchdog
timer
Reset
A-D
converter
(10)
PWM
(8)
SI/O(8)
X
COUT
X
CIN
INT
0
–
INT
3
P4(5)
P3(5)
P2(8)
P1(8)
P0(8)
2 3
4 5 6 7 8
38 39 40 41 42
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
MITSUBISHI MICROCOMPUTERS
3850 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
AV
SS
MITSUBISHI MICROCOMPUTERS
3850 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PIN DESCRIPTION
Table 1 Pin description
Pin
V
CC
, V
SS
CNV
SS
RESET
X
IN
X
OUT
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 direction register allows each pin to be individually programmed as either input or output.
•CMOS compatible input level.
•CMOS 3-state output structure.
•P1
3
to P1
7
(5 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.
• Sub-clock generating circuit I/O
pins (connect a resonator)
Function except a port function
P0
0
–P0
7
I/O port P0
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
RDY
P3
0
/AN
0
–
P3
4
/AN
4
P4
0
/CNTR
1
P4
1
/INT
0
–
P4
3
/INT
2
P4
4
/INT
3
/PWM
I/O port P1
I/O port P2
• Serial I/O function pin
• Serial I/O function pin/
Timer X function pin
I/O port P3
•8-bit CMOS I/O port with the same function as port P0.
•CMOS compatible input level.
•CMOS 3-state output structure.
I/O port P4
•8-bit CMOS I/O port with the same function as port P0.
•CMOS compatible input level.
•CMOS 3-state output structure.
• Timer Y function pin
• Interrupt input pins
• Interrupt input pin
• PWM output pin
• A-D converter input pin
3
MITSUBISHI MICROCOMPUTERS
3850 Group
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
PART NUMBERING
Product
M3850
3 M 4
XXX FP
Package type
FP : 42P2R-A package
SP : 42P4B package
SS : 42S1B-A package
ROM number
Omitted in some types.
ROM/PROM size
1 : 4096 bytes
2 : 8192 bytes
3 : 12288 bytes
4 : 16384 bytes
5 : 20480 bytes
6 : 24576 bytes
7 : 28672 bytes
8 : 32768 bytes
9 : 36864 bytes
A : 40960 bytes
B : 45056 bytes
C : 49152 bytes
D : 53248 bytes
E : 57344 bytes
F : 61440 bytes
The first 128 bytes and the last 2 bytes of ROM
are reserved areas ; they cannot be used.
Memory type
M : Mask ROM version
E : EPROM or One Time PROM 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
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
GROUP EXPANSION
Mitsubishi plans to expand the 3850 group as follows:
Packages
42P4B..........................................42-pin shrink plastic molded DIP
42P2R-A ............................................ 42-pin plastic molded SSOP
42S1B-A ................... 42-pin shrink ceramic DIP(EPROM version)
Memory Type
Support for mask ROM, One Time PROM, and EPROM versions.
Memory Size
ROM/PROM size ................................................... 8K to 24K bytes
RAM size .............................................................. 512 to 640 bytes
Memory Expansion Plan
ROM size (bytes)
48K
32K
28K
Under development
24K
M38504M6/E6
20K
Mass production
16K
M38503M4/E4
12K
Mass production
8K
M38503M2
128
192
256
384
512
RAM size (bytes)
640
768
896
1024
Products under development or planning : the development schedule and specification may be revised without notice.
Planning products may be stopped the development.
Fig. 4 Memory expansion plan
Currently planning products are listed below.
Table 2 Support products
Product name
M38503M2-XXXSP
M38503M2-XXXFP
M38503M4-XXXSP
M38503E4-XXXSP
M38503E4SP
M38503E4SS
M38503M4-XXXFP
M38503E4-XXXFP
M38503E4FP
M38504M6-XXXSP
M38504E6-XXXSP
M38504E6SP
M38504E6SS
M38504M6-XXXFP
M38504E6-XXXFP
M38504E6FP
(P) ROM size (bytes)
ROM size for User in ( )
8192
(8062)
RAM size (bytes)
512
Package
42P4B
42P2R-A
42P4B
16384
(16254)
512
42S1B-A
42P2R-A
Mask ROM version
Mask ROM version
Mask ROM version
One Time PROM version
One Time PROM version (blank)
EPROM version
(stock only replaced by M38504E6SS)
Mask ROM version
One Time PROM version
One Time PROM version (blank)
Mask ROM version
One Time PROM version
One Time PROM version (blank)
EPROM version
Mask ROM version
One Time PROM version
One Time PROM version (blank)
Remarks
As of August 1998
42P4B
32768
(32638)
640
42S1B-A
42P2R-A
5