The LC865520B/16B/12B/08B/04B are constructed to read ROM twice within one instruction cycle.
It has 1.7 times the performance capability for the same instruction cycle compared to our 4-bit
microcontrollers (LC66000 series).
Bus cycle time indicates the speed to read ROM.
Bus cycle time Instruction cycle time Clock divider System clock oscillation Oscillation Frequ ency Voltage
0.5µs
2µs
7.5µs
183µs
1µs
4µs
15µs
366µs
1/1 Ceramic (CF) 6MHz 4.5V to 6.0V
1/2 Ceramic (CF) 3MHz 2.5V to 6.0V
1/2 Internal RC 800kHz 2.5V to 6.0V
1/2 Crystal (XTAL) 32.768kHz 2.5V to 6.0V
CMOS IC
Ver.1.02
32300
11901 RM (IM) Chigira No.6697-1/21
LC865520B/16B/12B/08B/04B
(4) Ports
- Input/output ports : 3 ports (16 terminals : port 1,7,8)
Input/output programmable for each bit individually
- Maximum 15V withstand tolerance input/output port : 2 p or ts (15 terminals)
Input/output programmable in nibble units : 1 port (8 terminals : port 0)
(When the N-channel open drain output is selected, input/output can be specified by bit.)
Input/output programmable for each bit individually : 1 port (7 terminals : port 3)
- Input ports : 2 ports (6 terminals : port 7,8)
(5) AD converter
- 8-channel × 8-bit AD converter
(6) Serial interface
- 1 channel × 16-bit serial interface (8-bit transm is s ion available by program)
- 1 channel × 8-bit serial interface
LSB first/MSB first-f u nction available
- An internal 8-bit baud-rate generator is common to both serial-interface circuits.
In Mode 0 and Mode 1, the resolution of Timer and PWM is t
In Mode 2 and Mode 3, the resolution of Timer and PWM is selectable by program: t
CYC.
CYC or 1/2 tCYC.
- Base timer
Generates an overflow every 500ms for a clock application (using 32.768kHz crystal oscillation for the base timer
oscillator).
Generates an overflow every 976µs, 3.9ms, 15.6ms or 62.5ms (using 32.768kHz crystal oscillation for the base timer
clock)
Clock for the base timer is selectable from 32.768kHz crystal oscillation, system clock, or programmable prescaler
output of Timer 0.
(8) Buzzer output
- Built-in 4KHz and 2KHz buzzer generation function (using 32.768kHz crystal oscillation for the base timer oscillator)
(9) Remote receiver circuit (share with P73/INT3/T0IN terminal)
- Noise Rejection function (The filtering time of the noise rejection filter (1tCYC/16tCYC/64tCYC) can be switched by
program.) (t
CYC: instructio n-c ycle-tim e
)
- Polarity switch function
(10) Watchdog timer
- External RC circuit is required.
- Interrupt or system reset is activated when the timer overflows.
6. Timer T1L (lower 8 bits of Timer 1), Timer T1H (upper 8 bits of Timer 1)
7. Serial interface SIO0
8. Serial interface SIO1
9. AD converter
10. Port 0
- Built-i n I nterrupt Priority control r egister
Three interrupt priorities are supported (low, high and highest) and multi-level nesting is possible. Low or high
priority level can be assigned to the 11 interrupt sources of interrupts 3 to 10 shown above by the interrupt priority
control register. For the external interrupt INT0 and INT1(interrupt 1 and 2), low or highest can be set regardless of
the interrupt priority register.
- Built-in RC oscillation circuit used for the system clock.
- CF oscillation circuit used for the system clock.
- Crystal oscillation circuit used for the system clock and the time-base clock.
(15) Standby function
- HALT mode
The HALT mode stops the program execution, which minimizes power consumption. This operation mode can be
released b y a system reset or an interrupt req ue st.
- HOLD mode
The HOLD mode stops all oscillation circuits: CF, RC and Crystal oscillations. This mode can be released by the
following conditions.
• Feed "L" level to the reset terminal (
RES )
• Feed the selected level to P70/INT0, P71/INT1 terminals
• Feed "L" level to the Port 0
(16) Shipping form
• DIP42S
• QIP48E
(17) Development tools
Evaluation (EVA) chip : LC866096
EPROM version : LC86E5420
One time version : LC86P5420
Emulator : EVA-86000 + ECB867100 (Evaluation chip board) + POD865 400 (POD)
No.6697-3/21
LC865520B/16B/12B/08B/04B
Notice for use
1. The following must be taken into consideration by the user:
Oscillation frequency range for system clock. Supply voltage range Clock Divider
15kHz to 30kHz 1/1 Can not use 1/2 divider
30kHz to 6MHz
15kHz to 30kHz 1/1 Can not use 1/2 divider
• Pull-up resistor :
Provided/Not provided
(specified in nibble units)
• Output form :
CMOS/N-channel open drain
(specified by bit)
• Output form :
CMOS/N-channel open drain
(specified by bit)
• Pull-up resistor :
Provided/Not provided
(specified by bit)
• Output form :
CMOS/N-channel open drain
(specified by bit)
No.6697-8/21
LC865520B/16B/12B/08B/04B
Name I/O Function description Option
PORT8
P80 to 83
P84 to 87
RES
XT1/
XT2/P75 O • Output terminal for 32.768kHz X'tal oscillation
CF1 I Input terminal for ceramic resonator CF2 O Output te rmin al for ceramic resonator -
• 4-bit input port
I
• Data direction programmable for each bit individually
I/O
• 4-bit input/output port
• Other function
AD converter input port (8 pins)
I Reset -
P74
I • Input terminal for 32.768kHz X'tal oscillation
• Other function
XT1 : Input port
• When not in use, connect terminal to VDD
• Other function
XT2 : Input port P75
• When not in use
- If set as port, co nnect terminal to VDD.
- If set as oscillation, leave terminal open.
P74
-
-
-
* All port options (except pull-up resistor of port 0) can be specified by bit.
A state of port terminals at reset
Name Input/output mode Style of pull-up resistors when pull-up option is enabled
Port 0 Input Fixed pull-up resistor OFF
Ports 1,3 Input Programmable pull-up resistor OFF
No.6697-9/21
LC865520B/16B/12B/08B/04B
V
1. Absolute Maximum Ratings at VSS=0V and Ta=25°C
Parameter Symbol Pins Conditions
Ratings
[V]
DD
min. typ. max.
Supply voltage VDDMAX VDD VDD -0.3 +7.0
Input voltage VI(1) • Ports 74,75
-0.3 VDD+0.3
• Ports 80,81,82,83
RES
•
Input/Output
voltage
VIO(1) • Port 1
• Ports 70,71,72,73
-0.3 VDD+0.3
• Ports 84,85,86,87
• Ports 0, 3 of CMOS
output
VIO(2) Ports 0, 3 of N-ch open
-0.3 15
drain output
High
level
output
current
Peak
output
current
Total
output
current
IOPH • Ports 0, 1, 3
• Ports 71,72,73
• Ports 84,85,86,87
IOAH(1)
Σ
IOAH(2)
Σ
IOAH(3)
Σ
Ports 0, 1 Total of all pins -30
Port 3 Total of all pins -15
• Ports 71,72,73
• CMOS output
-10
• For each pin
Total of all pins -10
• Ports 84,85,86,87
Low
level
output
current
output
current
Total
output
current
IOPL(1) Ports 0, 1, 3 For each pin 20 Peak
IOPL(2) • Ports 70,71,72,73
• Ports 84,85,86,87
IOAL(1)
Σ
IOAL(2)
Σ
IOAL(3)
Σ
Ports 0,1,70 Total of all pins 60
Port 3 Total of all pins 40
• Ports 71,72,73
For each pin 15
Total of all pins 20
• Ports 84,85,86,87
power
consumption
Operating
Pdmax(1) DIP42S
Pdmax(2) QFP48E
Ta= -30 to+70°C
Ta= -30 to+70°C
Topr -30 70
630 Maximum
350
temperature
range
Storage
Tstg -55 125
temperature
range
unit
V
mA
mW
C
°
No.6697-10/21
LC865520B/16B/12B/08B/04B
2. Recommended Operating Range at Ta=-30°C to +70°C, VSS=0V
Parameter Symbol Pins Conditions
Operating
Supply
voltage range
VDD(1)
VDD(2)
VDD
0.98µs ≤ t
3.9µs ≤ t
CYC
CYC
≤ 400µs
≤ 400µs
Hold voltage VHD VDD RAM and register data
are kept in HOLD
mode.
Input high
VIH(1) Port 0 of CMOS output Output disable 2.5 to 6.0 0.33VDD
voltage
Output disable
drain output
VIH(3) • Port 1
• Ports 72,73
Output disable 2.5 to 6.0 0.75VDD VDD
• Port 3 of CMOS
output
Output disable
drain output
VIH(5) • Port 70
Output disable 2.5 to 6.0 0.75VDD VDD
Port input/interrupt
• Port 71
RES
•
VIH(6) Port 70
Output disable 2.5 to 6.0 0.9VDD VDD
Watchdog timer
Input low
voltage
VIH(7) • Port 8
74
• Ports
,75
VIL(1) Port 0 of CMOS output Output disable 2.5 to 6.0 VSS 0.2VDD
VIL(2) Port 0 of N-ch open
• Output disable
• Using as port
Output disable 2.5 to 6.0 VSS 0.25VDD
drain output
VIL(3) • Ports 1,3
Output disable 2.5 to 6.0 VSS 0.25VDD
• Ports 72,73
VIL(4) • Port 70
Output disable 2.5 to 6.0 VSS 0.25VDD
Port input/interrupt
• Port 71
RES
•
VIL(5) Port 70
Output disable 2.5 to 6.0 VSS 0.8VDD
Watchdog timer
VIL(6) • Port 8
74
• Ports
CYC
t
,75
• Output disable
• Using as port
cycle time
Oscillation
frequency
range
(Note 1)
FmCF(1) CF1, CF2 • 6MHz
(ceramic resonator)
• Refer to figure 1
FmCF(2) CF1, CF2 •3MHz
(ceramic resonator)
• Refer to figure 1
FmRC Internal RC oscillation 2.5 to 6.0 0.3 0.8 3.0
FsXtal XT1, XT2 •32.768kHz
(crysta l os cillation)
• Refer to figure 2
Continue.
Ratings
VDD[V] min. typ. max.
4.5 6.0
unit
V
2.5 6.0
2.0 6.0
VDD
+1.0
4.0 to 6.0 0.75VDD 13.5 VIH(2) Port 0 of N-ch open
2.5 to 4.0 0.8VDD 13.5
4.0 to 6.0 0.75VDD 13.5 VIH(4) Port 3 of N-ch open
2.5 to 4.0 0.8VDD 13.5
2.5 to 6.0 0.75VDD VDD
to 1.0
2.5 to 6.0 VSS 0.25VDD
4.5 to 6.0 0.98 400 Operation
s
µ
2.5 to 6.0 3.9 400
4.5 to 6.0 5.88 6 6.12
MHz
2.5 to 6.0 2.94 3 3.06
2.5 to 6.0 32.768 kHz
No.6697-11/21
LC865520B/16B/12B/08B/04B
Parameter Symbol Pins Conditions
Oscillation
stabilizing time
(Note 1)
tmsCF(1) CF1, CF2 •6MHz
(ceramic resonator)
• Refer to figure 3
(ceramic resonator)
• Refer to figure 3
tssXtal XT1, XT2 •32.768kHz
(crysta l os cillation)
• Refer to figure 3
(Note 1) The oscillation parameters are shown on table 1 and 2.
Ratings
VDD[V] min. typ. max.
4.5 to 6.0
4.5 to 6.0 tmsCF(2) CF1, CF2 •3MHz
2.5 to 6.0
4.5 to 6.0
2.5 to 6.0
unit
ms
s
No.6697-12/21
LC865520B/16B/12B/08B/04B
3. Electrical Characteristics at Ta=-30°C to +70°C, VSS=0V
Parameter Symbol Pins Conditions
Input high
current
IIH(1) Ports 0,3 of open
drain output
• Output disable
• VIN=13.5 V
(including the off-leak
current of the ou tput Tr.)
IIH(2) • Port 0 without
pull-up MOS Tr.
• Ports 1,3
• Ports 70,71,72,73
• Port 8
IIH(3)
IIH(4) Ports
RES
VIN=VDD 2.5 to 6.0 1
74
,75 • VIN=VDD
• Output disabl e
• Pull-up MOS Tr. OFF.
• VIN=VDD
(including the off-leak
current of th e output Tr.)
• Using as port
Input low
current
IIL(1) • Ports 1,3
• Port 0 without
pull-up MOS Tr.
• Ports 70,71,72,73
• Port 8
IIL(2)
IIL(3) Ports
RES
VIN=VSS 2.5 to 6.0 -1
74
• Output disabl e
• Pull-up MOS Tr. OFF.
• VIN=VSS
(including the off-leak
current of th e output Tr.)
,75 • VIN=VSS
• Using as port
VOH(1) IOH=-1.0mA 4.5 to 6.0 VDD-1 Output high
voltage
VOH(2)
• Ports 0,1,3 o f
CMOS output
• Ports 71,72, 73
IOH=-0.1mA 2.5 to 6.0 VDD-0.5
• Ports 84,85,86,87
Output low
voltage
VOL(1) IOL=10mA 4.5 to 6.0 1.5
VOL(2) IOL=1.6mA 4.5 to 6.0 0.4
VOL(3)
Ports 0,1,3
• IOL=1.0mA
• Every pin's IOL ≤ 1mA
VOL(4) IOL=1.6mA 4.5 to 6.0 0.4
VOL(5)
• Ports 71,72, 73
• Ports 84,85,86,87
• IOL=0.5mA
• Every pin's IOL ≤ 1mA
VOL(6) IOL=1mA 4.5 to 6.0 0.4
VOL(7)
Port 70
• IOL=0.5mA
• Every pin's IOL ≤ 1mA
Tr. resistor
Rpu • Ports 0,1,3
• Ports 70,71,72,73
VOH=0.9VDD
• Ports 84,85,86,87
Hysteresis
voltage
Pin
capacitance
VHIS • Port 1
• Ports 70,71,72,73
RES
•
CP All pins • f=1MHz
Output disable 2.5 to 6.0
• All pins except the measured
terminal: VIN=VSS
• Ta=25°C
Ratings
VDD[V] min. typ. max.
2.5 to 6.0 5
unit
µ
2.5 to 6.0 1
2.5 to 6.0 1
2.5 to 6.0 -1
2.5 to 6.0 -1
V
2.5 to 6.0 0.4
2.5 to 6.0 0.4
2.5 to 6.0 0.4
4.5 to 6.0 15 40 70 Pull-up MOS
kΩ
2.5 to 4.5 25 70 150
0.1VDD
V
2.5 to 6.0 10 pF
A
No.6697-13/21
LC865520B/16B/12B/08B/04B
4. Serial Input/Output Cha racteristics at Ta=-30°C to +70°C, VSS=0V
Parameter Symbol Pins Conditions
Cycle t
Low Level
CKCY
CKL
t
SCK0,SCK1 Refer to figure 5 2.5 to 6.0
(1) 2
(1) 1
pulse width
High Level
Input clock
pulse width
Cycle t
Low Level
Serial clock
pulse width
High Level
Output clock
pulse width
Data set-up time
Data hold time
Serial input
Output delay time
(External clock
used for serial
transfer clock)
CKH
t
(1)
CKCY
CKL
t
SCK0,SCK1
(2) 2
(2) 1/2t
• Use a 1kΩ pull up resistor in the
open drain
CKH
t
(2)
output.
• Refer to figure 5
ICK
t
• SI0,SI1
• SB0,SB1
• Data set-up to
SCK0,1
• Data hold from
CKI
t
SCK0,1
• Refer to figure 5
CKO(1)
t
• SO0,SO1
• SB0,SB1
• Use a 1kΩ pull up resistor in the
open drain
output.
• Data hold from
SCK0,1
CKO(2)
Output delay time
(Internal clock
Serial output
used for serial
t
• Refer to figure 5
transfer clock)
VDD[V] min. typ. max.
2.5 to 6.0
4.5 to 6.0 0.1
2.5 to 6.0 0.4
4.5 to 6.0 0.1
2.5 to 6.0 0.4
4.5 to 6.0 7/12
2.5 to 6.0
4.5 to 6.0 1/3
2.5 to 6.0
Ratings
unit
CYC
t
1
CKCY
CKCY
1/2t
µ
CYC
t
+0.2
7/12
CYC
t
+1
CYC
t
+0.2
1/3
CYC
t
+1
s
No.6697-14/21
LC865520B/16B/12B/08B/04B
5. Pulse Input Conditions at Ta=-30°C to +70°C, VSS=0V
Parameter Symbol Pins Conditions
pulse width
tPIH(1)
tPIL(1)
tPIH(2)
tPIL(2)
tPIH(3)
tPIL(3)
tPIH(4)
tPIL(4)
tPIL(5)
• INT0, INT1
• INT2/T0IN
INT3/T0IN
(The noise rejection clock
is selected to 1/1.)
INT3/T0IN
(The noise rejection clock
is selected to 1/16.)
INT3/T0IN
(The noise rejection clock
is selected to 1/64.)
RES
• Interrupt acceptable
• Timer0-countable
• Interrupt acceptable
• Timer0-countable
• Interrupt acceptable
• Timer0-countable
• Interrupt acceptable
• Timer0-countable
Reset acceptable 2.5 to 6.0 200
Ratings
VDD[V] min. typ. max.
2.5 to 6.0 1
2.5 to 6.0 2
2.5 to 6.0 32
2.5 to 6.0 128
unit
CYC
t
High/low level
s
µ
6. AD Converter Characteristics at Ta=-30°C to + 70°C, VSS=0V
Parameter Symbol Pins Conditions
Resolution N 8 bit
Absolute precision
(Note 2)
Conversion time tCAD
Analog input
voltage range
input current
ET ±1.5 LSB
AD conversion time = 16 × tCYC
(ADCR2=0) (Note 3)
AD conversion time = 32 × tCYC
(if ADCR2=1) (Note 3)
VAIN VSS VDD V
IAINH VAIN=VDD 1 Analog port
IAINL
AN0 - AN7
VAIN=VSS
Ratings
VDD[V] min. typ. max.
4.5 to 6.0
15.68
(tCYC=
0.98µs)
31.36
(tCYC=
0.98µs)
-1
65.28
(tCYC=
4.08µs)
130.56
(tCYC=
4.08µs)
unit
s
µ
A
µ
(Note 2) Absolute precision excludes the quantizing error (±1/2 LSB).
(Note 3) The conversion time is the time from executing the AD conversion instruction to setting the complete digital
conversion value in the register.
No.6697-15/21
LC865520B/16B/12B/08B/04B
7. Sample Current Dissipation Characteristics at Ta=-30°C to +70°C, VSS=0V
Parameter Symbol Pins Conditions
Current drain during
basic operatio n
(Note 4)
IDDOP(1) • FmCF=6MHz by
IDDOP(2) 4.5 to 6.0 3 7
IDDOP(3)
VDD
ceramic resonator
• FsXtal= 32.7 68k Hz
by crystal oscillation
• System clock : CF
oscillation (6MHZ)
• Internal RC oscillation
stops
• 1/1 divided
• FmCF=3MHz by
ceramic resonator
• FsXtal= 32.7 68kHz by
crystal oscillation
• System clock : CF
oscillation (3MHz)
• Internal RC oscillation
stops
• 1/2 divided
Ratings
VDD[V] min. typ. max.
4.5 to 6.0 12 22
2.5 to 4.5 2.0 5
unit
mA
IDDOP(4) 4.5 to 6.0 1.2 3
IDDOP(5)
IDDOP(6) 4.5 to 6.0 35 130
IDDOP(7)
• FmCF=0Hz
(when oscillation stops)
• FsXtal= 32.7 68kHz by
crystal oscillation
• System clock : RC
oscillation
• 1/2 divided
• FmCF=0Hz
(when oscillation stops)
• FsXtal= 32.7 68kHz by
crystal oscillation
• System clock : X'tal
oscillation (32.768kHz)
• Internal RC oscillation
stops
• 1/2 divided
2.5 to 4.5 1.0 2.5
2.5 to 4.5 25 70
Continue.
A
µ
No.6697-16/21
LC865520B/16B/12B/08B/04B
Parameter Symbol Pins Conditions
Current drain
in HALT mode
(Note 4)
IDDHALT(1) • HALT mode
IDDHALT(2) 4.5 to 6.0 2.2 5
IDDHALT(3)
IDDHALT(4) 4.5 to 6.0 800 2000
IDDHALT(5)
VDD
• FmCF=6MHz by
ceramic resonator
• FsXtal= 32.768 kHz by
crystal oscillation
• System clock : CF
oscillation (6MHz)
• Internal RC oscill ation
stops
• 1/1 divided
• HALT mode
• FmCF=3MHz by
ceramic resonator
• FsXtal= 32.7 68kHz by
crystal oscillation
• System clock : CF
oscillation (3MHz)
• Internal RC oscillation
stops
• 1/2 divided
• HALT mode
• FmCF=0Hz
(when oscillation stops)
• FsXtal= 32.7 68kHz by
crystal oscillation
• System clock : RC
oscillation
•1/2 divided
Ratings
VDD[V] min. typ. Max.
4.5 to 6.0 7 12
2.5 to 4.5 1.2 3
2.5 to 4.5 500 1500
unit
mA
A
µ
• HALT mode
• FmCF=0Hz
(when oscillation stops)
• FsXtal= 32.7 68k Hz by
crystal oscillation
• System clock : X'tal
oscillation (32.768kHz)
• Internal RC oscillation
stops
• 1/2 divided
2.5 to 4.5 12 55
2.5 to 4.5 0.02 20
in HOLD mode
(Note 4)
IDDHALT(6) 4.5 to 6.0 25 100
IDDHALT(7)
IDDHOLD(1) 4.5 to 6.0 0.06 30 Current drain
IDDHOLD(2)
VDD HOLD mode
(Note 4) The current of the output transistors and pull-up MOS transistors are excluded.
No.6697-17/21
LC865520B/16B/12B/08B/04B
Recommended Oscillation Circuit and Characteristics
The recommended circuit parameters are verified by an oscillator manufacturer using a SANYO provided oscillation
evaluation board.
Table 1. Recommended circuit parameters for the main system clock using the ceramic resonator
Recommended circuit
Frequency Manufacturer Oscillator
CSA6.00MG 33pF 33pF
CSTS0600MG03 (15pF) (15pF)
CSA3.00MG 33pF 33pF
CST3.00MGW (30pF) (30pF)
6MHz
3MHz
MURATA
MURATA
parameter
C1 C2 Rd1
470Ω
470Ω
470Ω
470Ω
Table 2. Recommended circuit parameters for the sub system clock using the cryst al osci lla tion
Recommended circuit
Frequency Manufacturer Oscillator
32.768kHz SEIKO EPSON MC-306 18pF 18pF 560Ω 2.5V to 6.0V
parameter
C3 C4 Rd2
The recommended circuit parameter may vary according to the applications. For further assistance, please contact the
oscillator manufacturer keeping the following in mind.
!"
Since the oscillation frequency precision is affected by the wiring capacitance of the application board, etc., is it required
to adjust the oscillation frequency on the production board.
!"
The oscillation frequency and the recommended circuit parameter shown above apply when the operating temperature
range is -30°C to +70°C. When using the clock oscillation circuit under the conditions which exceed the operating
temperature range or in applications that require precision tolerances, please contact the oscillator manufacturer.
!"
If using other circuit parameter than listed above, please contact SANYO.
Since the gain of oscillation circuit is reduced in order to minimize the power consumption of the circuit and the circuit can be
affected by the noise, wiring capacity, etc., it is suggested to take the followings into consideration.
!"
The distance between the clock I/O terminals (XT1, XT2) and external parts should be as short as possible.
!"
The capacitors' (C1, C2) VSS should be placed close to the microcontroller's GND terminal and away from any other
GND.
!"
The signal lines with large current or with rapid state changes should be placed away from the oscillation circuit.