ADVANCED AND EVER ADVANCING
MITSUBISHI ELECTRIC
MITSUBISHI 8-BIT SINGLE-CHIP MICROCOMPUTER
740 FAMILY / 38000 SERIES
3802
Group
User’s Manual
MITSUBISHI
ELECTRIC
keep safety first in your circuit designs !
q
Mitsubishi Electric Corporation puts the maximum effort into making semiconductor
products better and more reliable, but there is always the possibility that trouble
may occur with them. Trouble with semiconductors may lead to personal injury,
fire or property damage. Remember to give due consideration to safety when
making your circuit designs, with appropriate measures such as (i) placement
of substitutive, auxiliary circuits, (ii) use of non-flammable material or (iii) prevention
against any malfunction or mishap.
Notes regarding these materials
q
These materials are intended as a reference to assist our customers in the
selection of the Mitsubishi semiconductor product best suited to the customer’s
application; they do not convey any license under any intellectual property rights,
or any other rights, belonging to Mitsubishi Electric Corporation or a third party.
q
Mitsubishi Electric Corporation assumes no responsibility for any damage, or
infringement of any third-party’s rights, originating in the use of any product
data, diagrams, charts or circuit application examples contained in these materials.
q
All information contained in these materials, including product data, diagrams
and charts, represent information on products at the time of publication of these
materials, and are subject to change by Mitsubishi Electric Corporation without
notice due to product improvements or other reasons. It is therefore recommended
that customers contact Mitsubishi Electric Corporation or an authorized Mitsubishi
Semiconductor product distributor for the latest product information before
purchasing a product listed herein.
q
Mitsubishi Electric Corporation semiconductors are not designed or manufactured
for use in a device or system that is used under circumstances in which human
life is potentially at stake. Please contact Mitsubishi Electric Corporation or an
authorized Mitsubishi Semiconductor product distributor when considering the
use of a product contained herein for any specific purposes, such as apparatus
or systems for transportation, vehicular, medical, aerospace, nuclear, or undersea
repeater use.
q
The prior written approval of Mitsubishi Electric Corporation is necessary to
reprint or reproduce in whole or in part these materials.
q
If these products or technologies are subject to the Japanese export control
restrictions, they must be exported under a license from the Japanese government
and cannot be imported into a country other than the approved destination.
Any diversion or reexport contrary to the export control laws and regulations of
Japan and/or the country of destination is prohibited.
q
Please contact Mitsubishi Electric Corporation or an authorized Mitsubishi
Semiconductor product distributor for further details on these materials or the
products contained therein.
Preface
This user’s manual describes Mitsubishi’s CMOS 8-
bit microcomputers 3802 Group.
After reading this manual, the user should have a
through knowledge of the functions and features of
the 3802 Group, and should be able to fully utilize
the product. The manual starts with specifications
and ends with application examples.
For details of software, refer to the “SERIES MELPS
740 <SOFTWARE> USER’S MANUAL.”
For details of development support tools, refer to the
“DEVELOPMENT SUPPORT TOOLS FOR MICRO-
COMPUTERS” data book.
BEFORE USING THIS USER’S MANUAL
This user’s manual consists of the following three chapters. Refer to the chapter appropriate to your conditions, such
as hardware design or software development. Chapter 3 also includes necessary information for systems development.
Be sure to refer to this chapter.
1. Organization
q
CHAPTER 1 HARDWARE
This chapter describes features of the microcomputer and operation of each peripheral function.
q
CHAPTER 2 APPLICATION
This chapter describes usage and application examples of peripheral functions, based mainly on setting examples
of related registers.
q
CHAPTER 3 APPENDIX
This chapter includes necessary information for systems development using the microcomputer, electric
characteristics, a list of registers, the masking confirmation (mask ROM version), and mark specifications which
are to be submitted when ordering.
2. Structure of register
The figure of each register structure describes its functions, contents at reset, and attributes as follows :
(Note 2)
Bits
b7 b6 b5 b4 b3 b2 b1 b0
0
Bit attributes
(Note 1)
Contents immediately after reset release
CPU mode register (CPUM) [Address : 3B
16
]
B
0
1
2
3
4
5
6
7
Stack page selection bit
Name
b1 b0
Function
0 0 : Single-chip mode
01:
1 0 : Not available
11:
0 : 0 page
1 : 1 page
At reset
R W
Processor mode bits
0
0
0
0
0
1
T
T
Nothing arranged for these bits. These are write disabled
bits. When these bits are read out, the contents are “0.”
Fix this bit to “0.”
Main clock (X
IN
-X
OUT
) stop bit
Internal system clock selection bit
0 : Operating
1 : Stopped
0 : X
IN
-X
OUT
selected
1 : X
CIN
-X
COUT
selected
!
!
: Bit in which nothing is arranged
: Bit that is not used for control of the corresponding function
Note 1. Contents immediately after reset release
0••••••“0” at reset release
1••••••“1” at reset release
Undefined••••••Undefined or reset release
T
••••••Contents determined by option at reset release
Note 2. Bit attributes••••••The attributes of control register bits are classified into 3 bytes : read-only, write-only
and read and write. In the figure, these attributes are represented as follows :
R••••••Read
••••••Read enabled
!••••••Read
disabled
W••••••Write
••••••Write enabled
!
••••••Write disabled
LIST OF GROUPS HAVING THE SIMILAR FUNCTIONS
3802 group, one of the CMOS 8-bit microcomputer 38000 series presented in this user’s manual is provided with
standard functions.
The basic functions of the 3800, 3802, 3806 and 3807 groups having the same functions are shown below. For the
detailed functions of each group, refer to the related data book and user’s manual.
List of groups having the same functions
Group
Function
Pin
(Package type)
3800 group
64 pin
• 64P4B
• 64P6N-A
• 64P6D-A
As of September 1995
3806 group
80 pin
• 80P6N-A
• 80P6S-A
• 80P6D-A
3802 group
64 pin
• 64P4B
• 64P6N-A
3807 group
80 pin
• 80P6N-A
Clock generating circuit
1 circuit
1 circuit
1 circuit
2 circuit
<8-bit>
Timer
<8-bit>
Prescaler : 3
Timer : 4
<8-bit>
Prescaler : 3
Timer : 4
<8-bit>
Prescaler : 3
Timer : 4
Timer : 3
<16-bit>
Timer X/Y : 2
Timer A/B : 2
UART or
Clock synchronous
!
1
Clock synchronous
!
1
8-bit
!
13-channel
UART or
Clock synchronous
!
1
UART or
Clock synchronous
!
1
Clock synchronous
!
1
UART or
Clock synchronous
!
1
Clock synchronous
!
1
8-bit
!
8-channel
Serial I/O
A-D converter
D-A converter
Mask
ROM
Memory
type
One Time
PROM
EPROM
RAM
8K 16K 24K 32K
(Note 1)
(Note 1)
16K
8K
(Note 1)
16K
32K
32K
V
8K
8-bit
!
8-channel
8-bit
!
2-channel
16K
(Note 1)
8-bit
!
2-channel
8-bit
!
4-channel
16K
16K
16K
512
Real time port output
Analog comparator
Watchdog timer
(Note 1)
(Note 1)
24K
32K 12K 16K 24K 32K 48K
(Note 1)
(Note 1)
(Note 1)
(Note 3)
(Note 3)
(Note 3)
32K
(Note 1)
24K
(Note 2)
48K
(Note 3)
32K
384
24K
48K
(Note 2)
384 384 512 640 384 384
640 1024 384 384 512 1024 1024
PWM output
Remarks
Notes 1:
2:
3:
V.
Extended operating temperature version available
High-speed version available
Extended operating temperature version and High-speed version available
ROM expansion