To our customers,
Old Company Name in Catalogs and Other Documents
On April 1
st
, 2010, NEC Electronics Corporation merged with Renesas Technology
Corporation, and Renesas
Electronics Corporation
took over all the business of both
companies.
Therefore, although the old company name remains in this document, it is a valid
Renesas
Electronics document. We appreciate your understanding.
Renesas Electronics website:
http://www.renesas.com
April 1
st
, 2010
Renesas Electronics Corporation
Issued by:
Renesas Electronics Corporation
(http://www.renesas.com)
Send any inquiries to
http://www.renesas.com/inquiry.
Notice
1.
All information included in this document is current as of the date this document is issued. Such information, however, is
subject to change without any prior notice. Before purchasing or using any Renesas Electronics products listed herein, please
confirm the latest product information with a Renesas Electronics sales office. Also, please pay regular and careful attention to
additional and different information to be disclosed by Renesas Electronics such as that disclosed through our website.
Renesas Electronics does not assume any liability for infringement of patents, copyrights, or other intellectual property rights
of third parties by or arising from the use of Renesas Electronics products or technical information described in this document.
No license, express, implied or otherwise, is granted hereby under any patents, copyrights or other intellectual property rights
of Renesas Electronics or others.
You should not alter, modify, copy, or otherwise misappropriate any Renesas Electronics product, whether in whole or in part.
Descriptions of circuits, software and other related information in this document are provided only to illustrate the operation of
semiconductor products and application examples. You are fully responsible for the incorporation of these circuits, software,
and information in the design of your equipment. Renesas Electronics assumes no responsibility for any losses incurred by
you or third parties arising from the use of these circuits, software, or information.
When exporting the products or technology described in this document, you should comply with the applicable export control
laws and regulations and follow the procedures required by such laws and regulations. You should not use Renesas
Electronics products or the technology described in this document for any purpose relating to military applications or use by
the military, including but not limited to the development of weapons of mass destruction. Renesas Electronics products and
technology may not be used for or incorporated into any products or systems whose manufacture, use, or sale is prohibited
under any applicable domestic or foreign laws or regulations.
Renesas Electronics has used reasonable care in preparing the information included in this document, but Renesas Electronics
does not warrant that such information is error free. Renesas Electronics assumes no liability whatsoever for any damages
incurred by you resulting from errors in or omissions from the information included herein.
Renesas Electronics products are classified according to the following three quality grades: “Standard”, “High Quality”, and
“Specific”. The recommended applications for each Renesas Electronics product depends on the product’s quality grade, as
indicated below. You must check the quality grade of each Renesas Electronics product before using it in a particular
application. You may not use any Renesas Electronics product for any application categorized as “Specific” without the prior
written consent of Renesas Electronics. Further, you may not use any Renesas Electronics product for any application for
which it is not intended without the prior written consent of Renesas Electronics. Renesas Electronics shall not be in any way
liable for any damages or losses incurred by you or third parties arising from the use of any Renesas Electronics product for an
application categorized as “Specific” or for which the product is not intended where you have failed to obtain the prior written
consent of Renesas Electronics. The quality grade of each Renesas Electronics product is “Standard” unless otherwise
expressly specified in a Renesas Electronics data sheets or data books, etc.
Computers; office equipment; communications equipment; test and measurement equipment; audio and visual
equipment; home electronic appliances; machine tools; personal electronic equipment; and industrial robots.
“High Quality”: Transportation equipment (automobiles, trains, ships, etc.); traffic control systems; anti-disaster systems; anti-
crime systems; safety equipment; and medical equipment not specifically designed for life support.
“Specific”:
Aircraft; aerospace equipment; submersible repeaters; nuclear reactor control systems; medical equipment or
systems for life support (e.g. artificial life support devices or systems), surgical implantations, or healthcare
intervention (e.g. excision, etc.), and any other applications or purposes that pose a direct threat to human life.
You should use the Renesas Electronics products described in this document within the range specified by Renesas Electronics,
especially with respect to the maximum rating, operating supply voltage range, movement power voltage range, heat radiation
characteristics, installation and other product characteristics. Renesas Electronics shall have no liability for malfunctions or
damages arising out of the use of Renesas Electronics products beyond such specified ranges.
Although Renesas Electronics endeavors to improve the quality and reliability of its products, semiconductor products have
specific characteristics such as the occurrence of failure at a certain rate and malfunctions under certain use conditions. Further,
Renesas Electronics products are not subject to radiation resistance design. Please be sure to implement safety measures to
guard them against the possibility of physical injury, and injury or damage caused by fire in the event of the failure of a
Renesas Electronics product, such as safety design for hardware and software including but not limited to redundancy, fire
control and malfunction prevention, appropriate treatment for aging degradation or any other appropriate measures. Because
the evaluation of microcomputer software alone is very difficult, please evaluate the safety of the final products or system
manufactured by you.
Please contact a Renesas Electronics sales office for details as to environmental matters such as the environmental
compatibility of each Renesas Electronics product. Please use Renesas Electronics products in compliance with all applicable
laws and regulations that regulate the inclusion or use of controlled substances, including without limitation, the EU RoHS
Directive. Renesas Electronics assumes no liability for damages or losses occurring as a result of your noncompliance with
applicable laws and regulations.
This document may not be reproduced or duplicated, in any form, in whole or in part, without prior written consent of Renesas
Electronics.
Please contact a Renesas Electronics sales office if you have any questions regarding the information contained in this
document or Renesas Electronics products, or if you have any other inquiries.
“Standard”:
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
(Note 1) “Renesas Electronics” as used in this document means Renesas Electronics Corporation and also includes its majority-
owned subsidiaries.
(Note 2) “Renesas Electronics product(s)” means any product developed or manufactured by or for Renesas Electronics.
3804 Group (Spec.L)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
REJ03B0266-0100
Rev.1.00
Oct 27, 2008
• Power source voltage
[In high-speed mode]
At 16.8 MHz oscillation frequency .................... 4.5 to 5.5 V
At 12.5 MHz oscillation frequency .................... 4.0 to 5.5 V
At 8.4 MHz oscillation frequency ...................... 2.7 to 5.5 V
[In middle-speed mode]
At 16.8 MHz oscillation frequency .................... 4.5 to 5.5 V
At 12.5 MHz oscillation frequency .................... 2.7 to 5.5 V
[In low-speed mode]
At 32 kHz oscillation frequency......................... 2.7 to 5.5 V
• Power dissipation
In high-speed mode ........................................ 27.5 mW (typ.)
(at 16.8 MHz oscillation frequency, at 5 V power source voltage)
In low-speed mode ........................................ 1200
μW
(typ.)
(at 32 kHz oscillation frequency, at 3 V power source voltage)
• Operating temperature range .............................
−20
to 85
°C
• Packages
SP...............PRDP0064BA-A (64P4B) (64-pin 750 mil SDIP)
HP ......PLQP0064KB-A (64P6Q-A) (64-pin 10 × 10 mm LQFP)
KP ......PLQP0064GA-A (64P6U-A) (64-pin 14 × 14 mm LQFP)
WG ........PTLG0064JA-A (64F0G) (64-pin 6 × 6 mm FLGA)
<Flash memory mode>
• Power source voltage ................................ V
CC
= 2.7 to 5.5 V
• Program/Erase voltage ............................. V
CC
= 2.7 to 5.5 V
• Programming method ............... Programming in unit of byte
• Erasing method ................................................. Block erasing
• Program/Erase control by software command
• Number of times for programming/erasing ...................... 100
APPLICATION
Camera, Household appliance, Consumer electronics, etc.
DESCRIPTION
The 3804 group (Spec.L) is the 8-bit microcomputer based on the
740 family core technology.
The 3804 group (Spec.L) is designed for household products,
office automation equipment, and controlling systems that
require analog signal processing, including the A/D converter
and D/A converters.
FEATURES
• Basic machine-language instructions ................................. 71
• Minimum instruction execution time .......................... 0.24
μs
(at 16.8 MHz oscillation frequency)
• Memory size
ROM (Flash memory) ............................................ 60 K bytes
RAM ...................................................................... 2048 bytes
• Programmable input/output ports ....................................... 56
• Software pull-up resistors ............................................ Built-in
• Interrupts
21 sources, 16 vectors...............................................................
(external 8, internal 12, software 1)
• Timers ...................................................................... 16-bit × 1
8-bit × 4
(with 8-bit prescaler)
• Serial interface ......... 8-bit × 2 (UART or Clock-synchronized)
8-bit × 1 (Clock-synchronized)
• PWM ....................................... 8-bit × 1 (with 8-bit prescaler)
• A/D converter ........................................ 10-bit × 16 channels
(8-bit reading enabled)
• D/A converter ............................................ 8-bit × 2 channels
• Watchdog timer ....................................................... 16-bit × 1
• Multi-master I
2
C-BUS interface.............................. 1 channel
• LED direct drive port............................................................. 8
• Clock generating circuit ............................. Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
Rev.1.00 Oct 27, 2008
REJ03B0266-0100
Page 1 of 128
3804 Group (Spec.L)
P1
0
/INT
41
P1
1
/INT
01
P0
2
/AN
10
P0
3
/AN
11
P0
4
/AN
12
P0
5
/AN
13
P0
6
/AN
14
P0
7
/AN
15
P0
0
/AN
8
P0
1
/AN
9
P1
2
P1
3
P1
4
P1
5
P1
6
34
48
47
46
45
44
43
42
41
40
39
38
37
36
35
P3
7
/S
RDY3
P3
6
/S
CLK3
P3
5
/T
X
D
3
P3
4
/R
X
D
3
P3
3
/SCL
P3
2
/SDA
P3
1
/DA
2
P3
0
/DA
1
V
CC
V
REF
AV
SS
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
10
11
12
13
14
15
16
1
2
3
4
5
6
7
8
9
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
P1
7
P2
0
(LED
0
)
P2
1
(LED
1
)
P2
2
(LED
2
)
P2
3
(LED
3
)
P2
4
(LED
4
)
P2
5
(LED
5
)
P2
6
(LED
6
)
P2
7
(LED
7
)
V
SS
X
OUT
X
IN
P4
0
/INT
40
/X
COUT
P4
1
/INT
00
/X
CIN
RESET
CNV
SS
P4
2
/INT
1
M38049FFLHP/KP
P5
6
/PWM
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
1
/S
OUT2
P6
2
/AN
2
P6
1
/AN
1
P6
0
/AN
0
P5
7
/INT
3
P4
7
/S
RDY1
/CNTR
2
P4
5
/T
X
D
1
P4
4
/R
X
D
1
P5
2
/S
CLK2
Package code : PLQP0064KB-A (64P6Q-A)/PLQP0064GA-A (64P6U-A)
Fig. 1
Pin configuration (Top view) PLQP0064KB-A (64P6Q-A)/PLQP0064GA-A (64P6U-A)
V
CC
V
REF
AV
SS
P6
7
/AN
7
P6
6
/AN
6
P6
5
/AN
5
P6
4
/AN
4
P6
3
/AN
3
P6
2
/AN
2
P6
1
/AN
1
P6
0
/AN
0
P5
7
/INT
3
P5
6
/PWM
P5
5
/CNTR
1
P5
4
/CNTR
0
P5
3
/S
RDY2
P5
2
/S
CLK2
P5
1
/S
OUT2
P5
0
/S
IN2
P4
7
/S
RDY1
/
CNTR
2
P4
6
/S
CLK1
P4
5
/T
X
D
1
P4
4
/R
X
D
1
P4
3
/INT
2
P4
2
/INT
1
CNV
SS
RESET
P4
1
/INT
00
/X
CIN
P4
0
/INT
40
/X
COUT
X
IN
X
OUT
V
SS
P5
3
/S
RDY2
P4
6
/S
CLK1
P4
3
/INT
2
P5
0
/S
IN2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
64
63
62
61
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
P3
0
/DA
1
P3
1
/DA
2
P3
2
/SDA
P3
3
/SCL
P3
4
/R
X
D
3
P3
5
/T
X
D
3
P3
6
/
S
CLK3
P3
7
/
S
RDY3
P0
0
/AN
8
P0
1
/AN
9
P0
2
/AN
10
P0
3
/AN
11
P0
4
/AN
12
P0
5
/AN
13
P0
6
/AN
14
P0
7
/AN
15
P1
0
/
INT
41
P1
1
/
INT
01
P1
2
P1
3
P1
4
P1
5
P1
6
P1
7
P2
0
(LED
0
)
P2
1
(LED
1
)
P2
2
(LED
2
)
P2
3
(LED
3
)
P2
4
(LED
4
)
P2
5
(LED
5
)
P2
6
(LED
6
)
P2
7
(LED
7
)
Package code : PRDP0064BA-A (64P4B)
Fig. 2
Pin configuration (Top view) (PRDP0064BA-A (64P4B))
M38049FFLSP
Rev.1.00 Oct 27, 2008
REJ03B0266-0100
Page 2 of 128
3804 Group (Spec.L)
PIN CONFIGURATION (TOP VIEW)
A
B
C
D
E
F
G
H
8
50
P3
6
/S
CLK3
46
P0
2
/AN
10
44
P0
4
/AN
12
41
P0
7
/AN
15
40
P1
0
/INT
41
32
P2
0
(LED
0
)
31
P2
1
(LED
1
)
30
P2
2
(LED
2
)
8
7
51
P3
5
/T
X
D
3
47
P0
1
/AN
9
45
P0
3
/AN
11
42
P0
6
/AN
14
39
P1
1
/INT
01
27
P2
5
(LED
5
)
29
P2
3
(LED
3
)
28
P2
4
(LED
4
)
7
6
53
P3
3
/SCL
52
P3
4
/R
X
D
3
48
P0
0
/AN
8
43
P0
5
/AN
13
38
P1
2
37
P1
3
26
P2
6
(LED
6
)
25
P2
7
(LED
7
)
6
5
56
P3
0
/DA
1
55
P3
1
/DA
2
54
P3
2
/SDA
49
P3
7
/S
RDY3
33
P1
7
36
P1
4
35
P1
5
34
P1
6
5
4
1
P6
2
/AN
2
64
P6
3
/AN
3
58
V
REF
59
AV
SS
57
V
CC
24
V
SS
22
X
IN
23
X
OUT
4
3
60
P6
7
/AN
7
61
P6
6
/AN
6
4
P5
7
/INT
3
7
P5
4
/CNTR
0
12
P4
7
/S
RDY1
/CNTR
2
14
P4
5
/T
X
D
1
21
P4
0
/INT
40
/X
COUT
20
P4
1
/INT
00
/X
CIN
3
2
62
P6
5
/AN
5
63
P6
4
/AN
4
5
P5
6
/PWM
8
P5
3
/S
RDY2
10
P5
1
/S
OUT2
13
P4
6
/S
CLK1
17
P4
2
/INT
1
19
RESET
2
1
2
P6
1
/AN
1
3
P6
0
/AN
0
6
P5
5
/CNTR
1
9
P5
2
/S
CLK2
11
P5
0
/S
IN2
15
P4
4
/R
X
D
1
16
P4
3
/INT
2
18
CNV
SS
1
A
B
C
D
E
F
G
H
Package code : PTLG0064JA-A (64F0G)
Note :
The numbers in circles corresponds with the number on the packages HP/KP.
M38049
FFLWG
Package (TOP VIEW)
Fig. 3
Pin configuration (Top view) (PTLG0064JA-A (64F0G))
Rev.1.00 Oct 27, 2008
REJ03B0266-0100
Page 3 of 128