3804 Group (Spec.H)
SINGLE-CHIP 8-BIT CMOS MICROCOMPUTER
REJ03B0131-0101Z
Rev.1.01
Jan 25, 2005
DESCRIPTION
The 3804 group (Spec. H) is the 8-bit microcomputer based on the
740 family core technology.
The 3804 group (Spec. H) is designed for household products, of-
fice automation equipment, and controlling systems that require
analog signal processing, including the A/D converter and D/A
converters.
FEATURES
q
Basic machine-language instructions ...................................... 71
q
Minimum instruction execution time ................................ 0.24
µs
(at 16.8 MHz oscillation frequency)
q
Memory size
Flash memory .............................................................. 60 K bytes
RAM ............................................................................ 2048 bytes
q
Programmable input/output ports ............................................ 56
q
Software pull-up resistors ................................................. Built-in
q
Interrupts
21 sources, 16 vectors .................................................................
(external 8, internal 12, software 1)
q
Timers ........................................................................... 16-bit
✕
1
8-bit
✕
4
(with 8-bit prescaler)
q
Watchdog timer ............................................................ 16-bit
✕
1
q
Serial interface
Serial I/O1, 3 ............... 8-bit
✕
2 (UART or Clock-synchronized)
Serial I/O2 ................................... 8-bit
✕
1 (Clock-synchronized)
q
PWM ............................................ 8-bit
✕
1 (with 8-bit prescaler)
q
Multi-master I
2
C-BUS interface ................................... 1 channel
q
A/D converter ............................................. 10-bit
✕
16 channels
(8-bit reading enabled)
q
D/A converter .................................................. 8-bit
✕
2 channels
q
LED direct drive port .................................................................. 8
q
Clock generating circuit ..................................... Built-in 2 circuits
(connect to external ceramic resonator or quartz-crystal oscillator)
qPower
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
qPower
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)
qOperating
temperature range .................................... –20 to 85°C
qPackages
SP .................................................. 64P4B (64-pin 750 mil SDIP)
FP ....................................... 64P6N-A (64-pin 14
✕
14 mm QFP)
HP ..................................... 64P6Q-A (64-pin 10
✕
10 mm LQFP)
KP ..................................... 64P6U-A (64-pin 14
✕
14 mm LQFP)
<Flash memory mode>
qPower
source voltage ...................................... Vcc = 2.7 to 5.5 V
qProgram/Erase
voltage .................................... Vcc = 2.7 to 5.5 V
qProgramming
method ...................... Programming in unit of byte
qErasing
method ...................................................... Block erasing
qProgram/Erase
control by software command
qNumber
of times for programming/erasing ............................ 100
sNotes
Cannot be used for application embedded in the MCU card.
Currently support products are listed below.
Table 1 Support products
Product name
M38049FFHSP
M38049FFHFP
M38049FFHHP
M38049FFHKP
Flash memory size
(bytes)
RAM size (bytes)
Package
64P4B
64P6N-A
61440
2048
64P6Q-A
64P6U-A
Vcc = 2.7 to 5.5 V
Remarks
Rev.1.01 Jan 25, 2005
REJ03B0131-0101Z
page 1 of 114
3804 Group (Spec. H)
PIN DESCRIPTION
Table 2 Pin description
Pin
V
CC
, V
SS
CNV
SS
V
REF
AV
SS
RESET
X
IN
X
OUT
Name
Power source
CNV
SS
input
Reference voltage
Analog power source
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
.
•Reference voltage input pin for A/D and D/A converters.
•Analog power source input pin for A/D and D/A converters.
•Connect 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.
P0
0
/AN
8
–
P0
7
/AN
15
P1
0
/INT
41
P1
1
/INT
01
P1
2
–P1
7
P2
0
–P2
7
P3
0
/DA
1
P3
1
/DA
2
P3
2
/SDA
P3
3
/SCL
P3
4
/RxD
3
P3
5
/TxD
3
P3
6
/S
CLK3
P3
7
/S
RDY3
I/O port P0
I/O port P1
•8-bit CMOS I/O port.
•A/D converter input pin
•I/O direction register allows each pin to be individually
programmed as either input or output.
•Interrupt input pin
•CMOS compatible input level.
•CMOS 3-state output structure.
I/O port P2
I/O port P3
•Pull-up control is enabled in a bit unit.
•P2
0
–P2
7
are enabled to output large current for LED drive.
•8-bit CMOS I/O port.
•D/A converter input pin
•I/O direction register allows each pin to be individually
programmed as either input or output.
•I
2
C-BUS interface function pins
•CMOS compatible input level.
•P3
2
to P3
3
can be switched between CMOS compat- •Serial I/O3 function pin
ible input level or SMBUS input level in the I
2
C-BUS
interface function.
•P3
0
, P3
1
, P3
4
–P3
7
are CMOS 3-state output structure.
•P3
2
, P3
3
are N-channel open-drain output structure.
•Pull-up control of P3
0
, P3
1
, P3
4
–P3
7
is enabled in a bit
unit.
P4
0
/INT
40
/
X
COUT
P4
1
/INT
00
/
X
CIN
P4
2
/INT
1
P4
3
/INT
2
P4
4
/RxD
1
P4
5
/TxD
1
P4
6
/S
CLK1
P4
7
/S
RDY1
/CNTR
2
P5
0
/S
IN2
P5
1
/S
OUT2
P5
2
/S
CLK2
P5
3
/S
RDY2
P5
4
/CNTR
0
P5
5
/CNTR
1
P5
6
/PWM
P5
7
/INT
3
P6
0
/AN
0
–
P6
7
/AN
7
I/O port P6
I/O port P4
•8-bit CMOS I/O port.
•Interrupt input pin
•I/O direction register allows each pin to be individually •Sub-clock generating I/O pin
programmed as either input or output.
(resonator connected)
•CMOS compatible input level.
•Interrupt input pin
•CMOS 3-state output structure.
•Pull-up control is enabled in a bit unit.
•Serial I/O1 function pin
Function except a port function
•Serial I/O1, timer Z function pin
I/O port P5
•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.
•Pull-up control is enabled in a bit unit.
•Timer X function pin
•Timer Y function pin
•PWM output pin
•Interrupt input pin
•A/D converter input pin
•Serial I/O2 function pin
Rev.1.01 Jan 25, 2005
REJ03B0131-0101Z
page 4 of 114