Ordering number : ENA0477
LC87F1G64A
Overview
CMOS IC
FROM 64K byte, RAM 3K byte on-chip
8-bit 1-chip Microcontroller
with Full-Speed USB
The SANYO LC87F1G64A is an 8-bit microcomputer that, centered around a CPU running at a minimum bus cycle time
of 83.3ns, integrates on a single chip a number of hardware features such as 64K-byte flash ROM (onboard
programmable), 3072-byte RAM, an on-chip debugger, a sophisticated 16-bit timers/counters (may be divided into 8-bit
timers), 16-bit timers/counter (may be divided into 8-bit timers/counters or 8-bit PWMs), four 8-bit timers with a
prescaler, a base timer serving as a time-of-day clock, two synchronous SIO interface (with automatic block transmit/
receive function), an asynchronous/synchronous SIO interface, a UART interface (full duplex), a Full-Speed USB
interface (function controller), an 8-bit 12-channel AD converter, two 12-bit PWM channels, a system clock frequency
divider, ROM correction function, and a 32-source 10-vector address interrupt feature.
Features
Flash ROM
•
Capable of on-board-programming with wide range, 3.0 to 5.5V, of voltage source.
•
Block-erasable in 128 byte units
•
65536
×
8 bits
RAM
•
3072
×
9 bits
Minimum Bus Cycle
•
83.3ns (CF=12MHz)
Note: The bus cycle time here refers to the ROM read speed.
Minimum Instruction Cycle Time
•
250ns (CF=12MHz)
* This production is produced and sold by SANYO under license of the Silicon Storage Technology Inc.
Specifications and information herein are subject to change without notice.
Any and all SANYO Semiconductor products described or contained herein do not have specifications
that can handle applications that require extremely high levels of reliability, such as life-support systems,
aircraft's control systems, or other applications whose failure can be reasonably expected to result in
serious physical and/or material damage. Consult with your SANYO Semiconductor representative
nearest you before using any SANYO Semiconductor products described or contained herein in such
applications.
SANYO Semiconductor assumes no responsibility for equipment failures that result from using products
at values that exceed, even momentarily, rated values (such as maximum ratings, operating condition
ranges, or other parameters) listed in products specifications of any and all SANYO Semiconductor
products described or contained herein.
Ver.1.07
D0606HKIM 20061109-S00012 No.A0477-1/29
LC87F1G64A
Ports
•
I/O ports
Ports whose I/O direction can be designated in 1 bit units 28 (P10 to P17, P20 to P27, P30 to P34,
P70 to P73, PWM0, PWM1, XT2)
Ports whose I/O direction can be designated in 4 bit units 8 (P00 to P07)
•
USB ports
2 (D+, D-)
•
Dedicated oscillator ports
2 (CF1, CF2)
•
Input-only port (also used for oscillation)
1 (XT1)
•
Reset pins
1 (RES)
•
Power pins
6 (VSS1 to 3, VDD1 to 3)
Timers
•
Timer 0: 16-bit timer/counter with two capture registers.
Mode 0: 8-bit timer with an 8-bit programmable prescaler (with two 8-bit capture registers)
×
2 channels
Mode 1: 8-bit timer with an 8-bit programmable prescaler (with two 8-bit capture registers)
+ 8-bit counter (with two 8-bit capture registers)
Mode 2: 16-bit timer with an 8-bit programmable prescaler (with two 16-bit capture registers)
Mode 3: 16-bit counter (with two 16-bit capture registers)
•
Timer 1: 16-bit timer/counter that supports PWM/toggle outputs
Mode 0: 8-bit timer with an 8-bit prescaler (with toggle outputs)
+ 8-bit timer/counter with an 8-bit prescaler (with toggle outputs)
Mode 1: 8-bit PWM with an-8bit prescaler
×
2 channels
Mode 2: 16-bit timer/counter with an 8-bit prescaler (with toggle outputs)
(toggle outputs also possible from the lower-order 8 bits)
Mode 3: 16-bit timer with an 8-bit prescaler (with toggle outputs)
(The lower-order 8 bits can be used as PWM.)
•
Timer 4: 8-bit timer with a 6-bit prescaler
•
Timer 5: 8-bit timer with a 6-bit prescaler
•
Timer 6: 8-bit timer with a 6-bit prescaler (with toggle output)
•
Timer 7: 8-bit timer with a 6-bit prescaler (with toggle output)
•
Base timer
1) The clock is selectable from the subclock (32.768kHz crystal oscillation), system clock, and timer 0 prescaler
output.
2) Interrupts programmable in 5 different time schemes
SIO
•
SIO0: Synchronous serial interface
1) LSB first/MSB first mode selectable
2) Transfer clock cycle: 4/3 to 512/3 tCYC
3) Automatic continuous data transmission (1 to 256 bits, specifiable in 1 bit units, suspension and resumption of
data transmission possible in 1 byte units)
•
SIO1: 8-bit asynchronous/synchronous serial interface
Mode 0: Synchronous 8-bit serial I/O (2- or 3-wire configuration, 2 to 512 tCYC transfer clocks)
Mode 1: Asynchronous serial I/O (half-duplex, 8 data bits, 1 stop bit, 8 to 2048 tCYC baudrates)
Mode 2: Bus mode 1 (start bit, 8 data bits, 2 to 512 tCYC transfer clocks)
Mode 3: Bus mode 2 (start detect, 8 data bits, stop detect)
•
SIO4: Synchronous serial interface
1) LSB first/MSB first mode selectable
2) Transfer clock cycle: 4/3 to 1020/3 tCYC
3) Automatic continuous data transmission (1 to 3072 bytes, specifiable in 1 byte units, suspension and resumption
of data transmission possible in 1 byte or 2 bytes units)
4) Auto-start-on-falling-edge function
5) Clock polarity selectable
6) CRC16 calculator circuit built in
No.A0477-2/29
LC87F1G64A
Full Duplex UART
1) Data length: 7/8/9 bits selectable
2) Stop bits: 1 bit (2 bits in continuous transmission mode)
3) Baud rate: 16/3 to 8192/3 tCYC
AD Converter: 8 bits
×
12 channels
PWM: Multifrequency 12-bit PWM
×
2 channels
USB Interface (function controller)
•
Compliant with USB 2.0 Full-Speed
•
Supports a maximum of 8 user-defined endpoints.
Endpoint
Transfer
Type
Control
Bulk
Interrupt
Isochronous
Max. payload
-
-
-
64
64
64
64
64
1023
1023
64
64
EP0
EP1
-
EP2
-
EP3
-
EP4
-
EP5
-
EP6
-
EP7
-
EP8
-
Audio Interface
1) Sampling frequency (fs): 32kHz, 44.1kHz, 48kHz
2) PLL clock frequency: 12.288MHz, 16.9344MHz, 18.432MHz
3) Supported master clocks
Bit Clock
Master Clock
384fs
48fs
192fs
96fs
384fs
64fs
256fs
128fs
4) Data lengths of 16, 18, 20, 24 bits selectable
5) LSB first/MSB first mode selectable
6) Left Justified/Right Justified selectable
Watchdog Timer
•
External RC watchdog timer
•
Interrupt and reset signals selectable
Clock Output Function
1) Able to output selected oscillation clock 1/1, 1/2, 1/4, 1/8, 1/16, 1/32, 1/64 as system clock.
2) Able to output oscillation clock of sub clock.
No.A0477-3/29
LC87F1G64A
Interrupts
•
32 sources, 10 vector addresses
1) Provides three levels (low (L), high (H), and highest (X)) of multiplex interrupt control. Any interrupt requests of
the level equal to or lower than the current interrupt are not accepted.
2) When interrupt requests to two or more vector addresses occur at the same time, the interrupt of the highest level
takes precedence over the other interrupts. For interrupts of the same level, the interrupt into the smallest vector
address takes precedence.
No.
1
2
3
4
5
6
7
8
9
10
Vector Address
00003H
0000BH
00013H
0001BH
00023H
0002BH
00033H
0003BH
00043H
0004BH
Level
X or L
X or L
H or L
H or L
H or L
H or L
H or L
H or L
H or L
H or L
INT0
INT1
INT2/T0L/INT4/USB bus active
INT3/INT5/base timer
T0H/INT6
T1L/T1H/INT7
SIO0/USB bus reset/USB suspend/UART1 receive
SIO1/USB endpoint/USB-SOF/SIO4/UART1 transmit/AIF
ADC/T6/T7
Port 0/PWM0/PWM1/T4/T5
Interrupt Source
•
Priority Level: X > H > L
•
Of interrupts of the same level, the one with the smallest vector address takes precedence.
Subroutine Stack Levels: 1536 levels (the stack is allocated in RAM.)
High-speed Multiplication/Division Instructions
•
16 bits
×
8 bits
(5 tCYC execution time)
•
24 bits
×
16 bits
(12 tCYC execution time)
•
16 bits
÷
8 bits
(8 tCYC execution time)
•
24 bits
÷
16 bits
(12 tCYC execution time)
Oscillation Circuits
•
RC oscillation circuit (internal):
•
CF oscillation circuit:
•
Crystal oscillation circuit:
•
PLL circuit (internal):
For system clock
For system clock
For system clock, time-of-day clock
For USB interface (see Fig.5), audio interface (see Fig.6)
Standby Function
•
HALT mode: Halts instruction execution while allowing the peripheral circuits to continue operation.
1) Oscillation is not halted automatically.
2) Canceled by a system reset or occurrence of an interrupt.
•
HOLD mode: Suspends instruction execution and the operation of the peripheral circuits.
1) The PLL base clock generator , CF, RC and crystal oscillators automatically stop operation.
2) There are four ways of resetting the HOLD mode.
(1) Setting the reset pin to the lower level.
(2) Setting at least one of the INT0, INT1, INT2, INT4, and INT5 pins to the specified level
(3) Having an interrupt source established at port 0
(4) Having an bus active interrupt source established in the USB interface circuit
•
X'tal HOLD mode: Suspends instruction execution and the operation of the peripheral circuits except the base timer.
1) The PLL base clock generator, CF and RC oscillator automatically stop operation.
2) The state of crystal oscillation established when the X'tal HOLD mode is entered is retained.
3) There are five ways of resetting the X'tal HOLD mode.
(1) Setting the reset pin to the low level
(2) Setting at least one of the INT0, INT1, INT2, INT4, and INT5 pins to the specified level
(3) Having an interrupt source established at port 0
(4) Having an interrupt source established in the base timer circuit
(5) Having an bus active interrupt source established in the USB interface circuit
No.A0477-4/29
LC87F1G64A
ROM Correction Function
•
Executes the correction program on detection of a match with the program counter value.
•
Correction program area size: 128 bytes
Package Form
•
TQFP48J(7×7):
•
QIP48E(14×14):
•
TQFP64J(10×10):
Lead-free type
Lead-free type
Lead-free type
Development Tools
•
On-chip debugger: TCB87 type-A or TCB87 type-B + LC87F1G64A
Flash ROM Programming Boards
Package
QIP48E(14×14)
TQFP48J(7×7)
TQFP64J(10×10)
Programming boards
W87F55256Q
W87F55256SQ
W87F15256TQ
Recommended EPROM programmer
Maker
Flash Support Group, Inc.
(Single)
SANYO
Model
AF9708/AF9709/AF9709B
(including product of Ando Electric Co.,Ltd)
SKK (SANYO FWS)
Application Version: After 1.03
Chip Data Version: After 2.01
LC87F1G64
Supported version
After 02.61
Device
LC87F1G64A FAST
Package Dimensions
unit : mm (typ)
3288
9.0
Package Dimensions
unit : mm (typ)
3156A
17.2
0.5
36
37
25
24
36
37
25
24
7.0
9.0
14.0
48
1
0.5
(0.75)
12
0.2
13
48
13
1
1.0
(1.5)
0.35
12
0.15
0.125
(1.0)
1.2max
3.0max
0.1
0.1
(2.7)
SANYO : TQFP48J(7X7)
SANYO : QIP48E(14X14)
17.2
No.A0477-5/29
0.8
7.0
14.0