8 BIT SINGLE CHIP MICROCONTROLLER
Preliminary
LC87F5664A
LC87F5664A
8-Bit Single Chip Usb(Full-speed) Microcontroller with on-chip 64KB FLASH-ROM and 3072 byte RAM.
Overview
The LC87F5664A microcomputer is 8-bit single chip Usb microcomputer with the following on-chip functional
blocks:
- CPU: Operable at a minimum bus cycle time of 83ns
- 64K bytes flash ROM (re-writeable on board)
- 3072 byte RAM
- two high performance 16 bit timer/counters (can be divided into 8 bit units)
- four 8 bit timers with prescalers
- timer for use as date/time clock
- one synchronous serial I/O ports (with automatic block transmit/receive function)
- one asynchronous/synchronous serial I/O port
- PWM × 2
- 8-channel × 8-bit AD converter
- usb serial bus interface engine (conforms to USB Specification, Version 1.1)
- 29-source 10-vectored interrupt system
All of the above functions are fabricated on a single chip.
Features
(1) Read Only Memory (Flash ROM)
- single 3.3V power supply, writeable on-board.
- block erase in 128 byte units
- 65535 × 8 bits (LC87F5664A)
(2) Bus Cycle Time
- 83ns (if CF=12MHz)
Note: The bus cycle time indicates ROM read time.
♦
No products described or contained herein are intended for use in surgical implants, life-support systems,
aerospace equipment, nuclear power control systems, vehicles, disaster/crime-prevention equipment and the
like, the failure of which may directly or indirectly cause injury, death or property loss.
♦
Anyone purchasing any products described or contained herein for an above-mentioned use shall:
1) Accept full responsibility and indemnify and defend SANYO ELECTRIC CO., LTD., its affiliates,
subsidiaries and distributors and all their officers and employees, jointly and severally, against any
and all claims and litigation and all damages, cost and expenses associated with such use:
2) Not impose any responsibility for any fault or negligence which may be cited in any such claim or
litigation on SANYO ELECTRIC CO., LTD., its affiliates, subsidiaries and distributors or any of
their officers and employees jointly or severally.
♦
Information (including circuit diagrams and circuit parameters) herein is for example only ; it is not
guaranteed for volume production. SANYO believes information herein is accurate and reliable, but no
guarantees are made or implied regarding its use or any infringements of intellectual property rights or other
rights of third parties.
This product incorporates technology licensed from Silicon Storage Technology Inc.
This catalog provides information as of December 2000. Specifications and information herein are subject to
change without notice.
SANYO Electric Co., Ltd. Semiconductor System-Business Div. Microcomputer Business Unit.
1-1-1, Sakata Oizumi-Machi, Gunma, JAPAN
Ver.0.11
2003- 01- 10 SYSTEM-LSI UCOMDEV H.K/S.Y
1/26
LC87F5664A
(3) Minimum Instruction Cycle Time (tCYC) : 250ns (if CF=12MHz)
(4) Ports
- Input/output ports
Each bit data direction programmable
Nibble data direction programmable
- Input ports
- PWM Output ports
- Oscillator pins
- Reset pin
- Power supply
- USB ports
- FILTER port
40
8
2
2
2
1
6
2
1
(P1n, P2n, P70 to P73, P8n, SI3P0 to SI3P3, PBn)
(P0n)
(XT1,XT2)
(PWM0,PWM1)
(CF1,CF2)
(
RES
)
(VSS1 to 3,VDD1 to 3)
(D+, D-)
(FILT)
(5) Timers
- Timer0: 16 bit timer/counter with capture register
Mode 0: 2 channel 8 bit timer with programmable 8 bit prescaler and 8 bit capture register
Mode 1: 8 bit timer with 8 bit programmable prescaler and 8 bit capture register + 8 bit counter
with 8 bit capture register
Mode 2: 16 bit timer with 8 bit programmable prescaler and 16 bit capture register
Mode 3: 16 bit counter with 16 bit capture register
- Timer1: PWM/16 bit timer/counter (with toggle output)
Mode 0: 8 bit timer (with toggle output) + 8 bit timer counter (with toggle output)
Mode 1: 2 channel 8 bit PWM
Mode 2: 16 bit timer/counter (with toggle output)
Mode 3: 16 bit timer (with toggle output) Lower order 8 bits can be used as PWM output.
- Base timer
1. The clock signal can be selected from any of the following: sub-clock (32.768kHz crystal
oscillator), system clock, and prescaler output for timer 0.
2. Interrupts can be selected to occur at one of five different times.
- Timer4: 8-bit timer with 6-bit prescaler
- Timer5: 8-bit timer with 6-bit prescaler
- Timer6: 8-bit timer with 6-bit prescaler
- Timer7: 8-bit timer with 6-bit prescaler
(6) SIO
- SIO0: 8 bit synchronous serial interface
1. LSB first/MSB first function available
2. Internal 8-bit baud-rate generator (maximum transmit clock period 4/3 T
CYC
)
3. Continuous automatic data communications (1 - 256 bits)
- SIO1: 8 bit asynchronous/synchronous serial interface
Mode 0: Synchronous 8 bit serial IO (2-wire or 3-wire, transmit clock 2 - 512 T
CYC
)
Mode 1: Asynchronous serial IO (half duplex, 8 data bits, 1 stop bit, baud rate 8 - 2048 T
CYC
)
Mode 2: Bus mode 1 (start bit, 8 data bits, transmit clock 2 - 512 T
CYC
)
Mode 3: Bus mode 2 (start detection, 8 data bits, stop detection)
(7) AD converter
- 8-bits × 8-channels
(8) PWM
- 2 channel synchronous variable 12 bit PWM
(9) USB Controller
- conforms to USB Specification, Version 1.1
- supports up to 5 user-configured endpoionts
• USB Control endpoint 0
• USB Interrupt & Bulk endpoint 1
• USB Interrupt & Bulk endpoint 2
• USB Isochronous & Interrupt & Bulk endpoint 3
• USB Isochronous & Interrupt & Bulk endpoint 4
2/26
LC87F5664A
(10) Remote control receiver circuit (connected to P73/INT3/T0IN terminal)
- Noise rejection function (noise rejection filter time constant can selected from 1/32/128 T
CYC
)
(11) Watchdog timer
- The watchdog timer period set by external RC.
- Watchdog timer can be set to produce interrupt, system reset
(12) Interrupts
- 29-source, 10-vectored interrupts:
1. Three level (low, high and highest) multiple interrupts are supported. During interrupt handling,
an equal or lower level interrupt request is refused.
2. If interrupt requests to two or more vector addresses occur at once, the higher level interrupt
takes precedence. In the case of equal priority levels, the vector with the lowest address takes
precedence.
No.
Vector
Selectable Level
Interrupt signal
1
00003H
X or L
INT0
2
0000BH
X or L
INT1
3
00013H
H or L
INT2/T0L/INT4/USB Bus active
4
0001BH
H or L
INT3/INT5/Base timer
5
00023H
H or L
T0H
6
0002BH
H or L
T1L/T1H
7
00033H
H or L
SIO0/USB Bus reset
8
0003BH
H or L
SIO1/USB ERR/USB POV/USB SOF/USB ENP/USB NAK/USB STL
9
00043H
H or L
ADC
10
0004BH
H or L
Port 0/PWM0, 1/T4/T5/T6/T7
• Priority Level: X>H>L
• For equal priority levels, vector with lowest address takes precedence.
(13) Subroutine stack levels
- 1536 levels max. Stack is located in RAM
(14) Multiplication and division
- 16 bit × 8 bit
(executed in 5 cycles)
- 24 bit × 16 bit
(12 cycles )
- 16 bit ÷ 8 bit
(8 cycles)
- 24 bit ÷ 16 bit
(12 cycles)
(15) Oscillation circuits
- On-chip RC oscillation circuit used for system clock
- On-chip CF oscillation circuit used for system clock
- On-chip Crystal oscillation circuit used for system clock and time-base clock
(16) Standby function
- HALT mode
HALT mode is used to reduce power consumption. Program execution is stopped. Peripheral circuits
still operate.
1. Oscillation circuits are not stopped automatically
2. Release on system reset
- HOLD mode
HOLD mode is used to reduce the power dissipation. Both program execution and peripheral circuits
are stopped.
1. CF, RC and crystal oscillation circuits stop automatically
2. Release occurs on any of the following conditions
•input to the reset pin goes low
•a specified level is input to at least one of INT0, INT1, INT2, INT4, INT5
•an interrupt condition arises at port 0
•USB Bus-active interrupt condition arises
3/26
LC87F5664A
- X’tal HOLD mode
X’tal HOLD mode is used to reduce power consumption. Program execution is stopped. All
peripheral circuits except the base timer are stopped.
1. CF and RC oscillation circuits stop automatically
2. Crystal oscillator is maintained in its state at HOLD mode inception.
3. Release occurs on any of the following conditions
•input to the reset pin goes low
•a specified level is input to at least one of INT0, INT1, INT2, INT4, INT5
•an interrupt condition arises at port 0
•an interrupt condition arises at the base-timer
•USB Bus-active interrupt condition arises
(17) Factory shipment
- delivery form SQFP64, QIP64E
(18) Development Tools
- Evaluation chip : LC87
6092
- Emulator
:
EVA62S + ECB871500 (ECB876600 + PSB871500) + SUB875600 + POD64-QFP (あるいは
POD64-SQFP)
- Attachment board of EPROM programmer
:
W87F56256Q
(For QIP64E package)
W87F56256SQ (For SQFP64 package)
(19) How to Use of Attachment Board of EPROM Programmer
①
Data
Programming data for the LC87F5664A
’
s FLASH ROM is required.
The HEX file is used as the programming data for the LC87F5664A.
②
How to program the FLASH ROM
The LC87F5664A can be programmed by an EPROM programmer with attachments
W87F56256Q and W87F56256SQ.
•
Recommended EPROM programmer
Supplier
Andou
Minato Electronics
EPROM programmer
AF-9706
MODEL 1890A
Code “47100” (for SST 29EE512 mode)
Code ”D617” (for SST 29EE512 mode)
Pin 1 Mark
Pin 1
4/26
LC87F5664A
W87F56256Q
5/26