Ordering number : ENA1828 ENA1951 LC87F0808A CMOS IC 8K-byte FROM and 256-byte RAM integrated http://onsemi.com 8-bit 1-chip Microcontroller Overview The LC87F0808A is an 8-bit microcomputer that, centered around a CPU running at a minimum bus cycle time of 50.0ns, integrates on a single chip a number of hardware features such as 8K-byte flash ROM (On-boardprogrammable), 256-byte RAM, an On-chip-debugger, sophisticated 16-bit timers/counters (may be divided into 8-bit timers), a 16-bit timer/counter (may be divided into 8-bit timers/counters or 8-bit PWMs), two 8-bit timers with a prescaler, a base timer serving as a time-of-day clock, a high-speed clock counter, a synchronous SIO interface, an asynchronous/synchronous SIO interface, a UART interface (full duplex), motor control PWM , a 10/8-bit 10channel AD converter, a system clock frequency divider, an internal reset and a 21-source 10-vector interrupt feature. This microcomputer is suitable for small motor control equipment. Features Flash ROM • Capable of On-board-programming with wide range (3.3 to 5.5V) of voltage source. • Block-erasable in 128 byte units • Writable in 2-byte units • 8192 × 8 bits RAM • 256 × 9 bits Minimum Bus Cycle • 50.0ns (20MHz at VDD=3.3V to 5.5V) Note: The bus cycle time here refers to the ROM read speed. * This product is licensed from Silicon Storage Technology, Inc. (USA). Semiconductor Components Industries, LLC, 2013 May, 2013 Ver.1.00 91510HKIM 20100823-S00001 No.A1828-1/25 LC87F0808A Ports • Normal withstand voltage I/O ports Ports I/O direction can be designated in 1-bit units Ports I/O direction can be designated in 4-bit units • Dedicated oscillator ports/input ports • Reset pin • On-chip Debugger pin • Power pins 20 (P1n, P20, P21, P30 to P35, P70 to P73) 8 (P0n) 2 (CF1/XT1, CF2/XT2) 1 (RES) 1 (OWP0) 4 (VSS1, VSS2, VDD1, VDD2) Timers • Timer 0: 16-bit timer/counter with a capture register. Mode 0: 8-bit timer with an 8-bit programmable prescaler (with an 8-bit capture register) × 2 channels Mode 1: 8-bit timer with an 8-bit programmable prescaler (with an 8-bit capture register) + 8-bit counter (with an 8-bit capture register) Mode 2: 16-bit timer with an 8-bit programmable prescaler (with a 16-bit capture register) Mode 3: 16-bit counter (with a 16-bit capture register) • 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 8-bit 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 6: 8-bit timer with a 6-bit prescaler (with toggle outputs) • Timer 7: 8-bit timer with a 6-bit prescaler (with toggle outputs) • Base timer 1) The clock is selectable from the subclock (32.768kHz crystal oscillation), system clock, and timer 0 prescaler output. 2) Interrupts are programmable in 5 different time schemes 3) The base timer is unavailable when the CF oscillator circuit is selected SIO • SIO0: 8-bit Synchronous serial interface 1) LSB first/MSB first mode selectable 2) Built-in 8-bit baudrate generator (maximum transfer clock cycle=4/3tCYC) • 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) UART • Full Duplex • 7/8/9 bit data bits selectable • 1 Stop bit (2 bits in continuous data transmission) • Built-in baudrate generator AD Converter: 10 bits/8 bits × 10 channels (internal: 2 channels) • 10/8 bits AD converter resolution selectable • Auto start function (It links an interrupt factor of MCPWM) No.A1828-2/25 LC87F0808A Remote Control Receiver Circuit (sharing pins with P73, INT3, and T0IN) • Noise rejection function (noise filter time constant selectable from 1 tCYC/32 tCYC/128 tCYC) Clock Output Function • Can generate clock outputs with a frequency of 1/1, 1/2, 1/4, 1/8, 1/16, 1/32, 1/64 of the source clock selected as the system clock. • Can generate the source clock for the subclock Analog Comparator / Amplifier × 2 channels • Analog comparator / amplifier selectable (each channel) • Analog comparator Interrupt MCPWM: Motor Control 12-bit PWM × 6 channels • Dead time is programmable. • Forced stop is possible by the output of the analog comparator and the INT terminals. • Edge-aligned / center-aligned selectable Watchdog Timer • Can generate the internal reset signal on a timer overflow monitored by the WDT-dedicated low-speed RC oscillation clock (30kHz). • Allows selection of continue, stop, or hold mode operation of the counter on entry into the HALT/HOLD mode. Interrupts • 21 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. Vector Address Level 1 00003H X or L Interrupt Source 2 0000BH X or L INT1 3 00013H H or L INT2/T0L/INT4 4 0001BH H or L INT3/Base timer 5 00023H H or L T0H 6 0002BH H or L T1L/T1H 7 00033H H or L SIO0/UART1 receive 8 0003BH H or L SIO1/UART1 transmit/MCPWM 9 00043H H or L ADC/T6/T7 10 0004BH H or L Port 0/CMP1/CMP2 INT0 • Priority levels X > H > L • Of interrupts of the same level, the one with the smallest vector address takes precedence. Subroutine Stack Levels: 128levels (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) No.A1828-3/25 LC87F0808A Oscillation Circuits • Internal oscillation circuits Medium-speed RC oscillation circuit: For system clock (1MHz) High-speed RC oscillation circuit: For system clock (20MHz) Low-speed RC oscillation circuit: For watch dog timer (30kHz) • External oscillation circuits Hi-speed CF oscillation circuit: For system clock, with internal Rf Low speed crystal oscillation circuit: For low-speed system clock, with internal Rf 1) The CF and crystal oscillation circuits share the same pins. The active circuit is selected under program control. 2) The CF and the crystal oscillation circuits stop operating in the system reset state and start oscillating when the oscillation is enabled with an instruction. System Clock Divider Function • Can run on low current. • The minimum instruction cycle selectable from 150ns, 300ns, 600ns, 1.2μs, 2.4μs, 4.8μs, 9.6μs, 19.2μs and 38.4μs (at a main clock rate of 20MHz). Internal Reset Function • Power-on reset (POR) function 1) POR reset is generated only at power-on time. 2) The POR release level can be selected from 8 levels (1.67V, 1.97V, 2.07V, 2.37V, 2.57V, 2.87V, 3.86V and 4.35V) through option configuration. • Low-voltage detection reset (LVD) function 1) LVD and POR functions are combined to generate resets when power is turned on and when power voltage falls below a certain level. 2) The use/disuse of the LVD function and the low voltage threshold level (7 levels: 1.91V, 2.01V, 2.31V, 2.51V, 2.81V, 3.79V, 4.28V). Standby Function • HALT mode: Halts instruction execution while allowing the peripheral circuits to continue operation. 1) Oscillation is not halted automatically. 2) There are three ways of resetting the HALT mode. (1) Setting the reset pin to the low level (2) System resetting by watchdog timer or low-voltage detection (3) Occurrence of an interrupt • HOLD mode: Suspends instruction execution and the operation of the peripheral circuits. 1) The 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) System resetting by watchdog timer or low-voltage detection (3) Having an interrupt source established at either INT0, INT1, INT2 or INT4 * INT0 and INT1 HOLD mode reset is available only when level detection is set. (4) Having an interrupt source established at port 0. • X'tal HOLD mode: Suspends instruction execution and the operation of the peripheral circuits except the base timer. 1) The 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) System resetting by watchdog timer or low-voltage detection. (3) Having an interrupt source established at either INT0, INT1, INT2 or INT4 * INT0 and INT1 HOLD mode reset is available only when level detection is set. (4) Having an interrupt source established at port 0. (5) Having an interrupt source established in the base timer circuit. Note: Available only when X’tal oscillation is selected. No.A1828-4/25 LC87F0808A On-chip Debugger • Supports software debugging with the IC mounted on the target board. Data Security Function (flash versions only) • Protects the program data stored in flash memory from unauthorized read or copy. Note: This data security function does not necessarily provide absolute data security. Package Form • QFP36 (7×7): Lead-/Halogen-free type Development Tools • On-chip debugger: TCB87 type C + LC87F0808A Programming Boards Package Programming boards QFP36(7×7) W87F24Q Flash ROM Programmer Maker Model Single AF9709/AF9709B/AF9709C Programmer (Including Ando Electric Co., Ltd. models) Flash Support Group, Inc. (FSG) AF9723/AF9723B(Main body) Gang Programmer (Including Ando Electric Co., Ltd. models) AF9833(Unit) (Including Ando Electric Co., Ltd. models) Our company Supported Version Rev 03.28 or later Device 87f008SU (3B247) - - - - Single/Gang SKK/SKK Type B Programmer (SanyoFWS) 1.06 or later Gang SKK-4G Chip Data Version Programmer (SanyoFWS) Application Version 2.26 or later Application Version In-circuit/Gang SKK-DBG Type C 1.06 or later Programmer (SanyoFWS) Chip Data Version LC87F0808 2.31 or later For information about AF-Series: Flash Support Group, Inc. TEL: +81-53-459-1050 E-mail: [email protected] No.A1828-5/25 LC87F0808A Package Dimensions unit : mm (typ) 3162C 27 0.5 9.0 7.0 19 28 7.0 9.0 18 36 10 1 9 0.65 0.15 0.3 (1.5) 0.1 1.7max (0.9) SANYO : QFP36(7X7) 27 26 25 24 23 22 21 20 19 P03/AN3 P02/AN2 P01/AN1 P00/AN0 VSS2 VDD2 P17/T1PWMH/URX/CMP2O P16/T1PWML/UTX/CMP2IA P15/SCK1/CMP2IB Pin Assignment LC87F0808A 18 17 16 15 14 13 12 11 10 P14/SI1/SB1/CMP1O P13/SO1/CMP1IA P12/SCK0/CMP1IB P11/SI0/SB0 P10/SO0 P35/PULSG2 P34/PULSG2 P33/PULSG1 P32/PULSG1 1 2 3 4 5 6 7 8 9 28 29 30 31 32 33 34 35 36 P73/INT3/T0HCP/T0IN RES OWP0 VSS1 CF1/XT1 CF2/XT2 VDD1 P30/PULSG0 P31/PULSG0 P04/AN4 P05/AN5/CKO P06/AN6/T6O P07/AN7/T7O P20/INT4 P21/INT4/BUZ P70/INT0/T0LCP P71/INT1/T0HCP P72/INT2/T0LCP/T0IN Top view QFP36 (7×7) “Lead-/Halogen-free Type” No.A1828-6/25 LC87F0808A QFP36 NAME QFP36 NAME 1 P73/INT3/T0HCP/T0IN 19 P15/SCK1/CMP2IB(+) 2 RES 20 P16/T1PWML/UTX/CMP2IA(-) 3 OWP0 21 P17/T1PWMH/URX/CMP2O 4 VSS1 22 VDD2 5 CF1/XT1 23 VSS2 6 CF2/XT2 24 P00/AN0 7 VDD1 25 P01/AN1 8 P30/PULSG0 26 P02/AN2 9 P31/PULSG0 27 P03/AN3 10 P32/PULSG1 28 P04/AN4 11 P33/PULSG1 29 P05/AN5/CKO 12 P34/PULSG2 30 P06/AN6/T6O 13 P35/PULSG2 31 P07/AN7/T7O 14 P10/SO0 32 P20/INT4 15 P11/SI0/SB0 33 P21/INT4/BUZ 16 P12/SCK0/CMP1IB(+) 34 P70/INT0/T0LCP 17 P13/SO1/CMP1IA(-) 35 P71/INT1/T0HCP 18 P14/SI1/SB1/CMP1O 36 P72/INT2/T0LCP/T0IN No.A1828-7/25 LC87F0808A System Block Diagram Interrupt control IR Flash ROM RC Clock generator Standby control CF/ X'tal PLA PC MRC ACC WDT Reset circuit (LVD/POR) SIO0 Reset control RES B register C register Bus interface SIO1 Port 0 Timer 0 Port 1 Timer 1 Port 2/INT4 Timer 6 Port 3 Timer 7 Port 7 Base timer ADC MCPWM INT0-2 INT3 (Noise filter) ALU PSW RAR RAM Stack pointer On-chip debugger UART1 No.A1828-8/25 LC87F0808A Pin Description Pin Name I/O Description Option VSS1,VSS2 - - Power supply pins No VDD1, VDD2 - + Power supply pins No Port 0 I/O • 8-bit I/O port • I/O specifiable in 4-bit units P00 to P07 • Pull-up resistors can be turned on and off in 4-bit units. • HOLD reset input • Port 0 interrupt input Yes • Pin functions P05: System clock output P06: Timer 6 toggle output P07: Timer 7 toggle output P00 (AN0) to P07 (AN7): AD converter input Port 1 I/O • 8-bit I/O port • I/O specifiable in 1-bit units P10 to P17 • Pull-up resistors can be turned on and off in 1-bit units. • Pin functions P10: SIO0 data output P14: SIO1 data input / bus I/O P11: SIO0 data input/bus I/O P15: SIO1 clock I/O P12: SIO0 clock I/O P16: Timer 1 PWML output / UART transmit P13: SIO1 data output P17: Timer 1 PWMH output / UART receive Yes P12 to P17: analog comparator / amplifier I/O pins P12: CMP1(+) input / AMP1(+) input P13: CMP1(-) input / AMP1(-) input P14: CMP1 output / AMP1 output P15: CMP2(+) input / AMP2(+) input P16: CMP2(-) input / AMP2(-) input P17: CMP2 output / AMP2 output Port 2 I/O • 2-bit I/O port • I/O specifiable in 1-bit units P20 to P21 • Pull-up resistors can be turned on and off in 1-bit units. • Pin functions P21: Beeper output P20 to P21: INT4 input/HOLD reset input/timer 1 event input/timer 0L capture input/ Yes timer 0H capture input Interrupt acknowledge types INT4 Port 3 P30 to P35 I/O Rising Falling enable enable Rising & Falling enable H level L level disable disable • 6-bit I/O port • I/O specifiable in 1-bit units • Pull-up resistors can be turned on and off in 1-bit units. • Pin functions P30 to p35 : motor control PWM output pins P30: PULSG0 output P31: PULSG0 output Yes P32: PULSG1 output P33: PULSG1 output P34: PULSG2 output P35: PULSG2 output Continued on next page. No.A1828-9/25 LC87F0808A Continued from preceding page. Pin Name Port 7 I/O Description Option • 4-bit I/O port I/O • I/O specifiable in 1-bit units P70 to P73 • Pull-up resistors can be turned on and off in 1-bit units. • Pin functions P70: INT0 input/HOLD reset input/timer 0L capture input P71: INT1 input/HOLD reset input/timer 0H capture input P72: INT2 input/HOLD reset input/timer 0 event input / timer 0L capture input P73: INT3 input (with noise filter)/ timer 0 event input/timer 0H capture input No Interrupt acknowledge types Rising & Rising Falling INT0 enable enable disable INT1 enable enable disable enable enable INT2 enable enable enable disable disable INT3 enable enable enable disable disable Falling H level L level enable enable OWP0 I/O On-chip debugger (exclusive pin) No RES I/O External reset input/internal reset output No CF1/XT1 • Ceramic resonator or 32.768kHz crystal oscillator input pin I • Pin function No General-purpose input port CF2/XT2 • Ceramic resonator or 32.768kHz crystal oscillator output pin I/O • Pin function No General-purpose input port Port Output Types The table below lists the types of port outputs and the presence/absence of a pull-up resistor. Data can be read into any input port even if it is in the output mode. Port Name Option selected in units of Option type P00 to P07 1 bit 1 P10 to P17 1 bit P20 to P21 1 bit Output type Pull-up resistor CMOS Programmable (Note 1) 2 Nch-open drain No 1 CMOS Programmable 2 Nch-open drain Programmable 1 CMOS Programmable 2 Nch-open drain Programmable CMOS Programmable Nch-open drain Programmable CMOS Programmable P30 to P35 1 bit 1 P70 to P73 - No 2 Note 1: The control of the presence or absence of the programmable pull-up resistors for port 0 and the switching between low-and high-impedance pull-up connection is exercised in nibble (4-bit) units (P00 to 03 or P04 to 07). No.A1828-10/25 LC87F0808A User Option Table Option name Port output type Option to be applied on Flash-rom version Option selected in units of P00 to P07 1 bit CMOS Option selection P10 to P17 1 bit CMOS P20 to P21 1 bit CMOS Nch-open drain Nch-open drain Nch-open drain P30 to P35 1 bit CMOS - - 00000h - - 00000h to 01BFFh Detect function - Enable: Use Detect level - 7-level Power-On reset level - 8-level Nch-open drain Program start address 01E00h Protect area (Note 1) 01C00h to 01EFFh Low-voltage detection reset function Power-on reset Disable: Not Used function (Note 1) This option selects the area to be write protected at the time of the On-board writing. Recommended Unused Pin Connections Recommended unused pin connections Port Name Board Software P00 to P07 Open Output low P10 to P17 Open Output low P20 to P21 Open Output low P30 to P35 Open Output low P70 to P73 Open Output low CF1/XT1 Pulled low with a 100kΩ resistor or less General-purpose input port CF2/XT2 Pulled low with a 100kΩ resistor or less General-purpose input port On-chip Debugger Pin Connection Requirements OWP0 of the On-chip-debugger terminal must add pull-down resistor of 100kΩ. The connection with TCB87 Type C are OWP0/VDD/VSS Note: Be sure to electrically short-circuit between the VSS1 and VSS2 pins and between the VDD1 and VDD2 pins. No.A1828-11/25 LC87F0808A Absolute Maximum Ratings at Ta = 25°C, VSS1 = VSS2 = 0V Specification Parameter Symbol Pin/Remarks Conditions VDD[V] Maximum supply VDD max VDD1 Input voltage VI CF1 Input/output VIO CF2 voltage voltage Ports 0, 1, 2, 3 min typ max -0.3 +6.5 -0.3 VDD+0.3 -0.3 VDD+0.3 unit V Port 7 High level output current Peak output IOPH(1) Mean output CMOS output select Per 1 applicable pin IOPH(2) Port7 Per 1 applicable pin IOMH(1) Ports 0, 1, 2, 3 CMOS output select current Per 1 applicable pin -10 -5 -7.5 (Note 1-1) IOMH(2) Port7 Per 1 applicable pin Total output ΣIOAH(1) Ports 0, 2, 7 Total of all applicable pins -25 current ΣIOAH(2) Ports 1, 3 Total of all applicable pins -25 Peak output IOPL(1) P02 to P07 Per 1 applicable pin current Low level output current Ports 0, 1, 2, 3 current Mean output 20 Ports 1, 2, 3 IOPL(2) P00, P01 Per 1 applicable pin 30 IOPL(3) Port 7 Per 1 applicable pin 10 IOML(1) P02 to P07 Per 1 applicable pin current (Note 1-1) -3 15 Ports 1, 2, 3 IOML(2) P00, P01 Per 1 applicable pin 20 IOML(3) Port 7 Per 1 applicable pin 7.5 Total output ΣIOAL(1) Ports 0, 2, 7 Total of all applicable pins 45 current ΣIOAL(2) Ports 1, 3 Total of all applicable pins 45 Pd max(1) QFP36(7×7) Power Dissipation Ta=-40 to +85°C 115 Package only Pd max(2) mA Ta=-40 to +85°C mW Package with thermal 244 resistance board (Note 1-2) Operating ambient Topr Temperature Storage ambient temperature Tstg -40 +85 -55 +125 °C Note 1-1: The mean output current is a mean value measured over 100ms. Note 1-2: SEMI standards thermal resistance board (size: 76.1×114.3×1.6tmm, glass epoxy) is used. Stresses exceeding Maximum Ratings may damage the device. Maximum Ratings are stress ratings only. Functional operation above the Recommended Operating Conditions is not implied. Extended exposure to stresses above the Recommended Operating Conditions may affect device reliability. No.A1828-12/25 LC87F0808A Allowable Operating Conditions at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V Specification Parameter Symbol Pin/Remarks Conditions VDD[V] Operating VDD VDD1, VDD2 0.142μs ≤ tCYC ≤ 200μs VHD VDD1, VDD2 RAM and register contents sustained sustaining typ max 3.3 supply voltage Memory min in HOLD mode. unit 5.5 2.0 supply voltage High level VIH(1) Ports 1, 2, 3, 7 3.3 to 5.5 0.3VDD+0.7 VDD input voltage VIH(2) Ports 0 3.3 to 5.5 0.3VDD+0.7 VDD VIH(3) CF1, CF2, RES 3.3 to 5.5 0.75VDD VDD VIL(1) Ports 1, 2, 3, 7 4.0 to 5.5 VSS 0.1VDD+0.4 3.3 to 4.0 VSS 0.2VDD VIL(2) Ports 0 4.0 to 5.5 VSS 0.15VDD+0.4 3.3 to 4.0 VSS 0.2VDD VIL(3) CF1, CF2, RES 3.3 to 5.5 VSS 0.25VDD 3.3 to 5.5 0.142 200 3.3 to 5.5 0.1 20 Low level input voltage Instruction V tCYC cycle time μs (Note 2-1) External FEXCF CF1 • CF2 pin open • System clock frequency division system clock frequency ratio=1/1 • External system clock duty=50±5% Oscillation FmCF(1) CF1, CF2 range 20MHz ceramic oscillation See Fig. 1. frequency FmCF(2) CF1, CF2 (Note 2-2) 10MHz ceramic oscillation See Fig. 1. FmCF(3) CF1, CF2 4MHz ceramic oscillation See Fig. 1. FmMRC 3.3 to 5.5 20 3.3 to 5.5 10 3.3 to 5.5 4 MHz Internal High-speed RC oscillation. 1/2 frequency division ration. (RCCTD=0) 3.3 to 5.5 19.0 20.0 21.0 (Note 2-3) FmRC Internal medium-speed RC oscillation 3.3 to 5.5 0.5 1.0 2.0 FmSRC Internal low-speed RC oscillation 3.3 to 5.5 15 30 60 FsX’tal XT1, XT2 32.768kHz crystal oscillation See Fig. 1. kHz 3.3 to 5.5 32.768 Note 2-1: Relationship between tCYC and oscillation frequency is 3/FmCF at a division ratio of 1/1 and 6/FmCF at a division ratio of 1/2. Note 2-2: See Tables 1 and 2 for the oscillation constants. Note 2-3: When switching the system clock, allow an oscillation stabilization time of 100μs or longer after the high-speed RC oscillator circuit transmits from the "oscillation stopped" to "oscillation enabled" state. No.A1828-13/25 LC87F0808A Electrical Characteristics at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V Specification Parameter Symbol Pin/Remarks Conditions VDD[V] min typ Ports 0, 1, 2, 3 Output disabled Port 7 Pull-up resistor off RES VIN=VDD (Including output Tr's off leakage IIH(2) CF1, CF2 VIN=VDD IIL(1) Ports 0, 1, 2, 3 Output disabled Port 7 Pull-up resistor off RES VIN=VSS (Including output Tr's off leakage IIL(2) CF1, CF2 VIN=VSS High level output VOH(1) Ports 0, 1, 2, 7 IOH=-1mA 4.5 to 5.5 VDD-1 voltage VOH(2) IOH=-0.35mA 3.3 to 5.5 VDD-0.4 High level input IIH(1) current max unit 3.3 to 5.5 1 3.3 to 5.5 15 current) Low level input current 3.3 to 5.5 -1 3.3 to 5.5 -15 μA current) VOH(3) Port 3 VOH(4) Low level output VOL(1) voltage VOL(2) Ports 0, 1, 2, 3 4.5 to 5.5 VDD-1 3.3 to 5.5 VDD-0.4 IOL=10mA 4.5 to 5.5 1.5 IOL=1.4mA 3.3 to 5.5 0.4 VOL(3) Port 7 IOL=1.4mA 3.3 to 5.5 0.4 VOL(4) P00, P01 IOL=25mA 4.5 to 5.5 1.5 IOL=4mA 3.3 to 5.5 0.4 VOH=0.9VDD When Port 0 selected 4.5 to 5.5 VOL(5) Pull-up resistance IOH=-6mA IOH=-1.4mA Rpu(1) Ports 0, 1, 2, 3 Port 7 15 35 80 low-impedance pull-up. Rpu(2) Port 0 VOH=0.9VDD When Port 0 selected V kΩ 3.3 to 5.5 100 210 400 high-impedance pull-up. Hysteresis voltage VHYS Ports 1, 2, 3, 7 When Port 2 selected INT4. RES Pin capacitance CP All pins 3.3 to 5.5 0.1VDD V 3.3 to 5.5 10 pF For pins other than that under test: VIN=VSS f=1MHz Ta=25°C No.A1828-14/25 LC87F0808A Serial I/O Characteristics at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V SIO0 Serial I/O Characteristics (Note 4-1-1) Input clock Symbol Frequency tSCK(1) Low level tSCKL(1) Specification Pin/ Conditions Remarks SCK0(P12) VDD[V] • See Fig. 5. tSCK(2) Low level tSCKL(2) tCYC SCK0(P12) • CMOS output selected 4/3 • See Fig. 5. 1/2 3.3 to 5.5 tSCK tSCKH(2) 1/2 Serial input pulse width Data setup time SB0(P11), SI0(P11) Data hold time Input clock Output delay tdD0(1) • Must be specified with 0.05 respect to rising edge of 3.3 to 5.5 SIOCLK. thDI(1) time • See Fig. 5. SO0(P10), SB0(P11) 0.05 • Continuous data (1/3)tCYC transmission/reception mode +0.08 (Note 4-1-2) tdD0(2) • Synchronous 8-bit mode tdD0(3) (Note 4-1-2) (Note 4-1-2) Output clock Serial output tsDI(1) unit 1 pulse width High level max 1 tSCKH(1) Frequency typ 2 3.3 to 5.5 pulse width High level min pulse width Output clock Serial clock Parameter μs 1tCYC +0.08 3.3 to 5.5 (1/3)tCYC +0.08 Note 4-1-1: These specifications are theoretical values. Add margin depending on its use. Note 4-1-2: Must be specified with respect to falling edge of SIOCLK. Must be specified as the time to the beginning of output state change in open drain output mode. See Fig. 5. SIO1 Serial I/O Characteristics (Note 4-2-1) Input clock Symbol Frequency tSCK(3) Low level tSCKL(3) Specification Pin/ Conditions Remarks SCK1(P15) VDD[V] See Fig. 5. 3.3 to 5.5 pulse width High level Frequency SCK1(P15) • CMOS output selected tSCKL(4) 2 1/2 tSCK tSCKH(4) 1/2 pulse width Serial input Data setup time SB1(P14), SI1(P14) • Must be specified with respect to rising edge of SIOCLK. • See Fig. 5. Data hold time thDI(2) 0.05 3.3 to 5.5 0.05 Output delay time Serial output tsDI(2) unit 1 3.3 to 5.5 pulse width High level max 1 • See Fig. 5. Low level typ tCYC tSCKH(3) tSCK(4) min 2 pulse width Output clock Serial clock Parameter tdD0(4) SO1(P13), SB1(P14) μs • Must be specified with respect to falling edge of SIOCLK. • Must be specified as the time to the beginning of output state 3.3 to 5.5 change in open drain output (1/3)tCYC +0.08 mode. • See Fig. 5. Note 4-2-1: These specifications are theoretical values. Add margin depending on its use. No.A1828-15/25 LC87F0808A Pulse Input Conditions at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V Specification Parameter Symbol Pin/Remarks Conditions VDD[V] High/low level tPIH(1) INT0(P70), • Interrupt source flag can be set. pulse width tPIL(1) INT1(P71), • Event inputs for timer 0 or 1 are INT2(P72), enabled. min typ 3.3 to 5.5 1 3.3 to 5.5 2 max unit INT4(P20 to P21) tPIH(2) INT3(P73) when noise • Interrupt source flag can be set. tPIL(2) filter time constant is • Event inputs for timer 0 are 1/1 enabled. tPIH(3) INT3(P73) when noise • Interrupt source flag can be set. tPIL(3) filter time constant is • Event inputs for timer 0 are 1/32 3.3 to 5.5 64 3.3 to 5.5 256 3.3 to 5.5 200 nabled. tPIH(4) INT3(P73) when noise • Interrupt source flag can be set. tPIL(4) filter time constant is • Event inputs for timer 0 are 1/128 tPIL(5) tCYC enabled. • Resetting is enabled. RES μs AD Converter Characteristics at VSS1 = VSS2 = 0V 10bits AD Converter Mode/Ta = -40°C to +85°C Specification Parameter Symbol Pin/Remarks Conditions VDD[V] Resolution N Absolute ET AN7(P07) TCAD AN9(AMP2O) (Note 6-1) typ max • See Conversion time calculation VAIN voltage range unit 10 bit 3.3 to 5.5 formulas. (Note 6-2) Analog input min 3.3 to 5.5 AN8(AMP1O) accuracy Conversion time AN0(P00) to ±16 LSB 3.3 to 5.5 8.5 59.5 μs 3.3 to 5.5 VSS VDD V Analog port IAINH VAIN=VDD 3.3 to 5.5 input current IAINL VAIN=VSS 3.3 to 5.5 1 -1 μA 8bits AD Converter Mode/Ta = -40°C to +85°C Specification Parameter Symbol Pin/Remarks Conditions VDD[V] Resolution N Absolute ET AN7(P07) TCAD AN9(AMP2O) (Note 6-1) • See Conversion time calculation formulas. (Note 6-2) Analog input min typ 3.3 to 5.5 AN8(AMP1O) accuracy Conversion time AN0(P00) to VAIN voltage range max unit 8 bit ±1.5 3.3 to 5.5 LSB 3.3 to 5.5 2.9 20 μs 3.3 to 5.5 VSS VDD V Analog port IAINH VAIN=VDD 3.3 to 5.5 input current IAINL VAIN=VSS 3.3 to 5.5 1 -1 μA Conversion time calculation formulas: 10bits AD Converter Mode: TCAD (Conversion time) = ((42/(AD division ratio))+2)×(1/3)×tCYC 8bits AD Converter Mode: TCAD (Conversion time) = ((28/(AD division ratio))+2)× (1/3)×tCYC No.A1828-16/25 LC87F0808A External Operating supply oscillation voltage range (FmCF) CF-20MHz (VDD) 3.3V to 5.5V AD division ratio System division ratio Cycle time (SYSDIV) (tCYC) 1/1 CF-10MHz 3.3V to 5.5V CF-4MHz 3.3V to 5.5V AD conversion time (ADDIV) (TCAD) 10bit AD 8bit AD 10bit AD 8bit AD 150ns 1/4 1/2 8.5μs 2.9μs 1/1 300ns 1/4 1/2 17μs 5.8μs 1/1 750ns 1/4 1/2 42.5μs 14.5μs Note 6-1: The quantization error (±1/2LSB) must be excluded from the absolute accuracy. The absolute accuracy must be measured in the microcontroller's state in which no I/O operations occur at the pins adjacent to the analog input channel. Note 6-2: The conversion time refers to the period from the time an instruction for starting a conversion process till the time the conversion results register(s) are loaded with a complete digital conversion value corresponding to the analog input value. The conversion time is 2 times the normal-time conversion time when: • The first AD conversion is performed in the 10-bit AD conversion mode after a system reset. • The first AD conversion is performed after the AD conversion mode is switched from 8-bit to 10-bit conversion mode. Power-on Reset (POR) Characteristics at Ta = -40°C to +85°C, VSS1=VSS2=0V Specification Parameter Symbol Pin/Remarks Conditions Option selected voltage POR release PORRL voltage Detection POUKS voltage min typ max • Select from option. 1.67V 1.55 1.67 1.79 (Note 7-1) 1.97V 1.85 1.97 2.09 2.07V 1.95 2.07 2.19 2.37V 2.25 2.37 2.49 2.57V 2.45 2.57 2.69 2.87V 2.75 2.87 2.99 3.86V 3.73 3.86 3.99 4.35V 4.21 4.35 4.49 0.7 0.95 unit V • See Fig. 7. (Note 7-2) unknown state Power supply rise time PORIS • Power supply rise time from 0V to 1.6V. 100 ms Note7-1: The POR release level can be selected out of 8 levels only when the LVD reset function is disabled. Note7-2: POR is in an unknown state before transistors start operation. No.A1828-17/25 LC87F0808A Low Voltage Detection Reset (LVD) Characteristics at Ta = -40°C to +85°C, VSS1=VSS2=0V Specification Parameter Symbol Pin/Remarks Conditions Option selected voltage LVD reset voltage • Select from option. LVDET (Note 8-2) (Note 8-1) (Note 8-3) • See Fig. 8. LVD hysteresys LVHYS width Detection voltage min typ unit 1.91V 1.81 1.91 2.01 2.01V 1.91 2.01 2.11 2.31V 2.21 2.31 2.41 2.51V 2.41 2.51 2.61 2.81V 2.71 2.81 2.91 3.79V 3.69 3.79 3.89 4.28V 4.18 4.28 4.38 1.91V 55 2.01V 55 2.31V 55 2.51V 55 2.81V 60 3.79V 65 4.28V 65 V mV • See Fig. 8. LVUKS unknown state (Note 8-4) Low voltage max 0.7 0.95 V • LVDET-0.5V TLVDW • See Fig. 9. detection 0.2 minimum width ms (Reply sensitivity) Note8-1: The LVD reset level can be selected out of 7 levels only when the LVD reset function is enabled. Note8-2: LVD reset voltage specification values do not include hysteresis voltage. Note8-3: LVD reset voltage may exceed its specification values when port output state changes and/or when a large current flows through port. Note8-4: LVD is in an unknown state before transistors start operation. Comparator, Operational Amplifiers Characteristics at Ta=-40 to +85°C, VSS1=VSS2=0V Specification Function Parameter CMP1, 2 Input common- Symbol Pin/Remarks Conditions VDD[V] VCMIN mode voltage CMP1IA, CMP1IB 3.3 to CMP2IA, CMP2IB 5.5 (Note9-1) Offset voltage CMP VOFF(1) tCRT response CMP1IA, CMP1IB Input common-mode CMP2IA, CMP2IB voltage range CMP1O • Input common-mode CMP2O voltage range • Input amplitude=100mV speed min typ max VDD1.5V VSS 3.3 to 20 5.5 3.3 to 200 5.5 unit V mV ns • Over drive=50mV AMP1, 2 AMP input VAMIN CMP1IA, CPM2IA 3.3 to voltage 5.5 (Note9-1) Input offset VOPOFF voltage Slew rate SR CMP1IA, CMP1IB Input common-mode CMP2IA, CMP2IB voltage range CMP1O 50pF CMP2O Output Source IoSource current VDD1.5V VSS 3.3 to 20 5.5 5.0 V mV 3 V/μs CMP1IA,CMP1IB(+)=1V CMP2IA,CMP2IB(-)=0V 5.0 2.5 3.5 mA 5.0 0.3 0.35 mA CMP1O,CMP2O=VDD-1.5V Sink IoSink CMP1IA,CMP1IB(+)=0V CMP2IA,CMP2IB(-)=1V CMP1O,CMP2O=VDD+0.5V Note9-1: When VDD=5V, input voltage is effective from 0 to 3.5V. No.A1828-18/25 LC87F0808A Consumption Current Characteristics at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V Parameter Normal mode Symbol IDDOP(1) consumption VDD1, VDD2 Conditions VDD[V] min typ max unit • FmCF=20MHz ceramic oscillation mode • System clock set to 20MHz side • All internal RC oscillation stopped. current 3.3 to 5.5 10 12.5 3.3 to 5.5 3 4.1 • 1/1 frequency division ratio (Note 10-1) (Note 10-2) Specification Pin/ Remarks • FmCF=4MHz ceramic oscillation mode IDDOP(2) • System clock set to 4MHz side • All internal RC oscillation stopped. • 1/1 frequency division ratio • FsX’tal=32.768kHz crystal oscillation mode IDDOP(3) • Internal medium speed RC oscillation stopped. • System clock set to internal high speed mA 3.3 to 5.5 9.2 11 3.3 to 5.5 0.5 0.7 3.3 to 5.5 32 74 3.3 to 5.5 4.7 5.8 3.3 to 5.5 1.5 2.3 RC oscillation (20MHz). • 1/1 frequency division ratio • FsX’tal=32.768kHz crystal oscillation mode IDDOP(4) • Internal high speed RC oscillation stopped. • System clock set to internal medium speed RC oscillation. • 1/2 frequency division ratio • FsX’tal=32.768kHz crystal oscillation mode IDDOP(5) • System clock set to 32.768kHz crystal oscillation. μA • All internal RC oscillation stopped. • 1/1 frequency division ratio HALT mode IDDHALT(1) consumption VDD1, VDD2 • HALT mode • FmCF=20MHz ceramic oscillation mode current • System clock set to 20MHz side (Note 10-1) • All internal RC oscillation stopped. • 1/1 frequency division ratio (Note 10-2) IDDHALT(2) • HALT mode • FmCF=4MHz ceramic oscillation mode • System clock set to 4MHz side • All internal RC oscillation stopped. • 1/1 frequency division ratio IDDHALT(3) • HALT mode • FsX’tal=32.768kHz crystal oscillation mA mode • Internal medium speed RC oscillation stopped. 3.3 to 5.5 4 5 3.3 to 5.5 0.3 0.45 3.3 to 5.5 16 60 • System clock set to internal high speed RC oscillation (20MHz). • 1/1 frequency division ratio IDDHALT(4) • HALT mode • FsX’tal=32.768kHz crystal oscillation mode • Internal high speed RC oscillation stopped. • System clock set to internal medium speed RC oscillation. • 1/2 frequency division ratio IDDHALT(5) • HALT mode • FsX’tal=32.768kHz crystal oscillation mode • System clock set to 32.768kHz crystal oscillation. μA • All internal RC oscillation stopped. • 1/1 frequency division ratio Note10-1: Values of the consumption current do not include current that flows into the output transistors and internal pull-up resistors. Note10-2: The consumption current values do not include operational current of LVD function if not specified. Continued on next page. No.A1828-19/25 LC87F0808A Continued from preceding page. Parameter Symbol HOLD mode IDDHOLD(1) consumption Specification Pin/ Conditions Remarks VDD1, VDD2 VDD[V] min typ max unit HOLD mode • CF1=VDD or open current 3.3 to 5.5 0.03 32 (External clock mode) (Note 10-1) IDDHOLD(2) μA HOLD mode (Note 10-2) • CF1=VDD or open (Note 10-3) (External clock mode) 3.3 to 5.5 3 35 • LVD option selected Note10-1: Values of the consumption current do not include current that flows into the output transistors and internal pull-up resistors. Note10-2: The consumption current values do not include operational current of LVD function if not specified. Note10-3: The amplifier / comparator circuit operates in the HOLD mode. F-ROM Programming Characteristics at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V Specification Parameter Symbol Pin/Remarks Conditions VDD[V] Onboard IDDFW(1) VDD1, VDD2 min typ max unit • Only current of the flash block. programming 3.3 to 5.5 5 10 mA 20 30 ms 40 60 μs current Programming • Erasing time tFW(1) time • Programming time tFW(2) 3.3 to 5.5 UART (Full Duplex) Operating Conditions at Ta = -40°C to +85°C, VSS1 = VSS2 = 0V Specification Parameter Symbol Pin/Remarks Conditions VDD[V] Transfer rate UBR UTX(P16) 3.3 to 5.5 URX(P17) Data length Stop bits Parity bits min typ 16/3 max unit 8192/3 tCYC : 7/8/9 bits (LSB first) : 1 bit (2-bit in continuous data transmission) : None Example of Continuous 8-bit Data Transmission Mode Processing (First Transmit Data=55H) Start bit Start of transmission Stop bit End of transmission Transmit data (LSB first) UBR Example of Continuous 8-bit Data Reception Mode Processing (First Receive Data=55H) Start bit Start of reception Stop bit Receive data (LSB first) End of reception UBR No.A1828-20/25 LC87F0808A Characteristics of a Sample Main System Clock Oscillation Circuit Given below are the characteristics of a sample main system clock oscillation circuit that are measured using a Our designated oscillation characteristics evaluation board and external components with circuit constant values with which the oscillator vendor confirmed normal and stable oscillation. Table 1 Characteristics of a Sample Main System Clock Oscillator Circuit with a Ceramic Oscillator MURATA Circuit Constant Nominal Type Frequency SMD Oscillator Name Rd Voltage Range C1 C2 [pF] [pF] [Ω] [Ω] (5) (5) Open 470 3.3 to 5.5 CSTCE20M0G51-R0 Rf Operating [V] Oscillation Stabilization Time typ max [ms] [ms] Remarks 0.02 20MHz LEAD CSTLS20M0G52-B0 (5) (5) Open 330 3.3 to 5.5 0.06 SMD CSTCE10M0G52-R0 (10) (10) Open 470 3.3 to 5.5 0.02 Internal LEAD CSTLS10M0G53-B0 (15) (15) Open 680 3.3 to 5.5 0.02 C1,C2 SMD CSTCR4M00G53-R0 (15) (15) Open 1.5k 3.3 to 5.5 0.04 LEAD CSTLS4M00G53-B0 (15) (15) Open 1.5k 3.3 to 5.5 0.03 10MHz 4MHz The oscillation stabilization time refers to the time interval that is required for the oscillation to get stabilized after VDD goes above the operating voltage lower limit (see Figure 3). Characteristics of a Sample Subsystem Clock Oscillator Circuit Given below are the characteristics of a sample subsystem clock oscillation circuit that are measured using a Our designated oscillation characteristics evaluation board and external components with circuit constant values with which the oscillator vendor confirmed normal and stable oscillation. Table 2 Characteristics of a Sample Subsystem Clock Oscillator Circuit with a Crystal Oscillator EPSON TOYOCOM Nominal Type Frequency Circuit Constant Oscillator Name Operating C1 C2 Rf Rd [pF] [pF] [Ω] [Ω] 8 8 Open 330k Voltage Range [V] Oscillation Stabilization Time typ max [s] [s] 1.0 4.0 Remarks Applicable 32.768kHz SMD MC-306 3.3 to 5.5 CL value = 7.0pF The oscillation stabilization time refers to the time interval that is required for the oscillation to get stabilized after the instruction for starting the subclock oscillation circuit is executed and to the time interval that is required for the oscillation to get stabilized after the HOLD mode is reset (see Figure 3). Note: The components that are involved in oscillation should be placed as close to the IC and to one another as possible because they are vulnerable to the influences of the circuit pattern. CF2/XT2 CF1/XT1 Rf Rd C1 CF/X’tal C2 Figure 1 CF and XT Oscillator Circuit 0.5VDD Figure 2 AC Timing Measurement Point No.A1828-21/25 LC87F0808A VDD Operating VDD lower limit 0V Power supply Reset time RES Internal medium speed RC oscillation tmsCF/tmsX’tal CF1, CF2 Operating mode Unpredictable Reset Instruction execution Reset Time and Oscillation Stabilization Time HOLD reset signal HOLD reset signal absent HOLD reset signal valid Internal medium speed RC oscillation or low speed RC oscillation tmsCF/tmsX’tal CF1, CF2 (Note) State HOLD HALT HOLD Reset Signal and Oscillation Stabilization Time Note: External oscillation circuit is selected. Figure 3 Oscillation Stabilization Times No.A1828-22/25 LC87F0808A VDD Note: External circuits for reset may vary depending on the usage of POR and LVD. Please refer to the user’s manual for more information. RRES RES CRES Figure 4 Reset Circuit SIOCLK: DATAIN: DI0 DI1 DI2 DI3 DI4 DI5 DI6 DI7 DATAOUT: DO0 DO1 DO2 DO3 DO4 DO5 DO6 DO7 tSCK tSCKL tSCKH SIOCLK: tsDI thDI DATAIN: tdDO DATAOUT: Figure 5 Serial I/O Output Waveforms tPIL tPIH Figure 6 Pulse Input Timing Signal Waveform No.A1828-23/25 LC87F0808A (a) POR release voltage (PORRL) (b) VDD Reset period 100μs or longer Reset period Unknown-state (POUKS) RES Figure 7 Waveform observed when only POR is used (LVD not used) (RESET pin: Pull-up resistor RRES only) • The POR function generates a reset only when power is turned on starting at the VSS level. • No stable reset will be generated if power is turned on again when the power level does not go down to the VSS level as shown in (a). If such a case is anticipated, use the LVD function together with the POR function or implement an external reset circuit. • A reset is generated only when the power level goes down to the VSS level as shown in (b) and power is turned on again after this condition continues for 100μs or longer. LVD hysteresis width (LVHYS) LVD release voltage (LVDET+LVHYS) VDD LVD reset voltage (LVDET) Reset period Reset period Reset period Unknown-state (LVUKS) RES Figure 8 Waveform observed when both POR and LVD functions are used (RESET pin: Pull-up resistor RRES only) • Resets are generated both when power is turned on and when the power level lowers. • A hysteresis width (LVHYS) is provided to prevent the repetitions of reset release and entry cycles near the detection level. No.A1828-24/25 LC87F0808A VDD LVD release voltage LVD reset voltage LVDET-0.5V TLVDW VSS Figure 9 Low voltage detection minimum width (Example of momentary power loss/Voltage variation waveform) ON Semiconductor and the ON logo are registered trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC owns the rights to a number of patents, trademarks, copyrights, trade secrets, and other intellectual property. A listing of SCILLC’s product/patent coverage may be accessed at www.onsemi.com/site/pdf/Patent-Marking.pdf. SCILLC reserves the right to make changes without further notice to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does SCILLC assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages. “Typical” parameters which may be provided in SCILLC data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each customer application by customer’s technical experts. SCILLC does not convey any license under its patent rights nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where personal injury or death may occur. Should Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that SCILLC was negligent regarding the design or manufacture of the part. SCILLC is an Equal Opportunity/Affirmative Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner. PS No.A1828-25/25