Rev.1.0_01 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT S-25A010A/020A/040A The S-25A010A/020A/040A are high-speed, low-powerconsumption, SPI serial E2PROMs that operate over a wide range. Their capacities are 1 Kbit, 2 Kbits, and 4 Kbits, and their organizations are 128 words × 8 bits, 256 words × 8 bits, and 512 words × 8 bits, respectively. They feature page writing and sequential reading. Features • Wide range operation Read: 2.5 V to 5.5 V Write: 2.5 V to 5.5 V 6.5 MHz (4.5 V to 5.5 V, at −40°C to +125°C) • Operation frequency • SPI mode (0, 0) and (1, 1) • Page Write 16 bytes / page • Sequential read • Monitors Write to the memory by a status register • Write protect: Software, Hardware • Protect area: 25%, 50%, 100% • Write protect function during the low power supply • Function to prevent malfunction by monitoring clock pulse • CMOS schmitt input ( CS , SCK, SI, WP , HOLD ) • Endurance: 106cycles/word*1 (at +85°C) 8 × 105 cycles/word*1 (at +105°C) 5 × 105 cycles/word*1 (at +125°C) *1. For each address (Word: 8-bit) • Data retention: 100 years (at +25°C), 50 years (at +125°C) • Memory capacitance: S-25A010A 1 Kbit S-25A020A 2 Kbits S-25A040A 4 Kbits • Data before shipment: Memory array FFh, BP1 = 0, BP0 = 0 • Lead-free product Package Package name 8-Pin SOP (JEDEC) Package Drawing code Tape Reel FJ008-A FJ008-D FJ008-D Caution Before using the product in medical equipment or automobile equipment including car audio, keyless entry and engine control unit, contact to SII is indispensable. Seiko Instruments Inc. 1 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Pin Configuration 8-Pin SOP (JEDEC) Top view Table 1 Pin No. CS 1 8 Symbol *1 VCC 1 CS 2 SO 3 4 5 6 WP GND *1 SI *1 SCK 7 HOLD *1 SO 2 7 HOLD WP 3 6 SCK GND 4 5 SI Figure 1 S-25A010A0A-J8T2GD S-25A020A0A-J8T2GD S-25A040A0A-J8T2GD Description Chip select input Serial data output *1 Write protect input Ground Serial data input Serial clock input Hold input 8 VCC Power supply *1. All input pins have the CMOS structure. Do not set the input pins in high impedance during operation. Remark See Dimensions for details of the package drawings. 2 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Block Diagram Step-up Circuit Voltage Detector SCK SI HOLD WP Clock Counter Mode Decoder Data Register Address Register Output Control Circuit SO Status Register X Decoder Input Control Circuit CS Page Latch Memory Cell Array Status Memory Cell Array Y Decoder Read Circuit VCC GND Figure 2 Seiko Instruments Inc. 3 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Absolute Maximum Ratings Table 2 Item Power supply voltage Symbol VCC Input voltage VIN Output voltage VOUT Absolute Maximum Rating −0.3 to +7.0 Unit V −0.3 to +7.0 V −0.3 to VCC + 0.3 V Operating ambient temperature Topr −40 to +125 °C Storage temperature Tstg −65 to +150 °C Caution The absolute maximum ratings are rated values exceeding which the product could suffer physical damage. These values must therefore not be exceeded under any conditions. Recommended Operating Conditions Table 3 Item Symbol Power supply voltage VCC High level input voltage Low level input voltage VIH VIL Condition Read operation Write operation VCC = 2.5 V to 5.5 V VCC = 2.5 V to 5.5 V Min. Max. 2.5 2.5 5.5 5.5 0.7 × VCC −0.3 VCC + 1.0 0.3 × VCC Unit V V V V Pin Capacitance Table 4 Item Input capacitance Symbol Output capacitance (Ta = +25°C, f = 1.0 MHz, VCC = 5 V) Min. Max. Unit Condition CIN VIN = 0 V ( CS , SCK, SI, WP , HOLD ) − 8 pF COUT VOUT = 0 V (SO) − 10 pF Endurance Table 5 Item Endurance Symbol Operating Ambient Temperature −40°C to +85°C −40°C to +105°C −40°C to +125°C NW Min. Max. Unit 10 8.0 × 105 5.0 × 105 − − − cycles / word*1 cycles / word*1 cycles / word*1 Min. 100 50 Max. − − Unit year year 6 *1. For each address (Word: 8 bits) Data Retention Table 6 Item Data retention 4 Symbol − Operating Ambient Temperature +25°C +125°C Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A DC Electrical Characteristics Table 7 Item Symbol Condition Current consumption (READ) ICC1 VCC = 2.5 V to 3.0 V fSCK = 3.5 MHz Min. Max. No load at SO pin − −40°C to +125°C VCC = 3.0 V to 4.5 V fSCK = 5.0 MHz Min. Max. − 1.5 VCC = 4.5 V to 5.5 V fSCK = 6.5 MHz Min. Max. − 2.0 2.5 Unit mA Table 8 Item Symbol Condition Current consumption (WRITE) Item Standby current consumption Input leakage current Output leakage current Low level output voltage Symbol ICC2 Condition VCC = 2.5 V to 3.0 V fSCK = 3.5 MHz Min. Max. No load at SO pin − −40°C to +125°C VCC = 3.0 V to 4.5 V fSCK = 5.0 MHz Min. Max. − 2.0 2.5 VCC = 4.5 V to 5.5 V fSCK = 6.5 MHz Min. Max. − 3.0 Unit mA Table 9 −40°C to +85°C +85°C to +125°C = 4.5 V to 5.5 V V = 2.5 V to 4.5 V VCC = 4.5 V to 5.5 V Unit V VCC = 2.5 V to 4.5 V CC CC Min. Max. Min. Max. Min. Max. Min. Max. ISB CS = Vcc, SO = Open Other inputs are VCC or GND − 2.0 − 3.0 − 8.0 − 10.0 µA ILI VIN = GND to VCC − 1.0 − 1.0 − 2.0 − 2.0 µA ILO VOUT = GND to VCC − 1.0 − 1.0 − 2.0 − 2.0 µA − − − 0.8 × VCC − 0.4 − − − − 0.8 × VCC 0.8 × VCC 0.4 0.4 − − − − − 0.8 × VCC − 0.4 − − − − 0.8 × VCC 0.8 × VCC 0.4 0.4 − − V V V V VOL1 VOL2 VOH1 High level output voltage VOH2 IOL = 2.0 mA IOL = 1.5 mA IOH = −2.0 mA IOH = −0.4 mA AC Electrical Characteristics Table 10 Measurement Conditions Input pulse voltage Output reference voltage Output load 0.2 × VCC to 0.8 × VCC 0.5 × VCC 100 pF Seiko Instruments Inc. 5 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Table 11 Item Symbol VCC = 2.5 V to 5.5 V Min. Max. −40°C to +125°C VCC = 3.0 V to 5.5 V Min. Max. VCC = 4.5 V to 5.5 V Min. Max. Unit fSCK − 3.5 − 5.0 − 6.5 MHz CS setup time during CS falling tCSS.CL 90 − 90 − 65 − ns CS setup time during CS rising tCSS.CH 90 − 90 − 65 − ns tCDS 160 − 140 − 110 − ns CS hold time during CS falling tCSH.CL 90 − 90 − 65 − ns CS hold time during CS rising tCSH.CH 90 − 90 − 65 − ns tHIGH tLOW tRSK tFSK tDS tDH 125 125 − − 20 30 − − 1 1 − − 95 95 − − 20 30 − − 1 1 − − 65 65 − − 20 30 − − 1 1 − − ns ns µs µs ns ns tSKH.HH 70 − 70 − 45 − ns tSKH.HL 40 − 40 − 30 − ns tSKS.HL 0 − 0 − 0 − ns tSKS.HH 0 − 0 − 0 − ns tOZ tOD tOH tRO tFO − − 0 − − 100 120 − 80 80 − − 0 − − 100 90 − 80 80 − − 0 − − 75 60 − 50 50 ns ns ns ns ns tOZ.HL − 100 − 100 − 75 ns tOD.HH − 80 − 80 − 60 ns WP setup time tWS1 0 − 0 − 0 − ns WP hold time tWH1 0 − 0 − 0 − ns WP release / setup time tWS2 0 − 0 − 0 − ns SCK clock frequency CS deselect time SCK clock time “H” *1 SCK clock time “L” *1 Rising time of SCK clock *2 Falling time of SCK clock *2 SI data input setup time SI data input hold time SCK “L” hold time during HOLD rising SCL “L” hold time during HOLD falling SCK “L” setup time during HOLD falling SCK “L” setup time during HOLD rising Disable time of SO output *2 Delay time of SO output Hold time of SO output Rising time of SO output *2 Falling time of SO output *2 Disable time of SO output during HOLD falling *2 Delay time of SO output during HOLD rising *2 150 − 150 − 100 − ns tWH2 WP release / hold time *1. The clock cycle of the SCK clock (frequency fSCK) is 1/fSCK µs. This clock cycle is determined by a combination of several AC characteristics. Note that the clock cycle cannot be set as (1/fSCK) = tLOW (Min.) + tHIGH (Min.) by minimizing the SCK clock cycle time. *2. These are values of sample and not 100% tested. 6 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Table 12 Item Symbol VCC = 2.5 V to 5.5 V Min. Max. −40°C to +105°C VCC = 3.0 V to 5.5 V Min. Max. VCC = 4.5 V to 5.5 V Min. Max. Unit fSCK − 3.5 − 5.0 − 6.5 MHz CS setup time during CS falling tCSS.CL 90 − 90 − 65 − ns CS setup time during CS rising tCSS.CH 90 − 90 − 65 − ns tCDS 160 − 140 − 110 − ns CS hold time during CS falling tCSH.CL 90 − 90 − 65 − ns CS hold time during CS rising tCSH.CH 90 − 90 − 65 − ns tHIGH tLOW tRSK tFSK tDS tDH 125 125 − − 20 30 − − 1 1 − − 95 95 − − 20 30 − − 1 1 − − 65 65 − − 20 30 − − 1 1 − − ns ns µs µs ns ns tSKH.HH 70 − 70 − 45 − ns tSKH.HL 40 − 40 − 30 − ns tSKS.HL 0 − 0 − 0 − ns tSKS.HH 0 − 0 − 0 − ns tOZ tOD tOH tRO tFO − − 0 − − 100 120 − 80 80 − − 0 − − 100 90 − 70 70 − − 0 − − 75 60 − 50 50 ns ns ns ns ns tOZ.HL − 100 − 100 − 75 ns tOD.HH − 80 − 80 − 60 ns WP setup time tWS1 0 − 0 − 0 − ns WP hold time tWH1 0 − 0 − 0 − ns WP release / setup time tWS2 0 − 0 − 0 − ns SCK clock frequency CS deselect time SCK clock time “H” *1 SCK clock time “L” *1 Rising time of SCK clock *2 Falling time of SCK clock *2 SI data input setup time SI data input hold time SCK “L” hold time during HOLD rising SCL “L” hold time during HOLD falling SCK “L” setup time during HOLD falling SCK “L” setup time during HOLD rising Disable time of SO output *2 Delay time of SO output Hold time of SO output Rising time of SO output *2 Falling time of SO output *2 Disable time of SO output during HOLD falling *2 Delay time of SO output during HOLD rising *2 150 − 150 − 100 − ns tWH2 WP release / hold time *1. The clock cycle of the SCK clock (frequency fSCK) is 1/fSCK µs. This clock cycle is determined by a combination of several AC characteristics. Note that the clock cycle cannot be set as (1/fSCK) = tLOW (Min.) + tHIGH (Min.) by minimizing the SCK clock cycle time. *2. These are values of sample and not 100% tested. Seiko Instruments Inc. 7 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Table 13 Item Symbol VCC = 2.5 V to 5.5 V Min. Max. −40°C to +85°C VCC = 3.0 V to 5.5 V Min. Max. VCC = 4.5 V to 5.5 V Min. Max. Unit fSCK − 4.0 − 5.0 − 7.0 MHz CS setup time during CS falling tCSS.CL 90 − 80 − 60 − ns CS setup time during CS rising tCSS.CH 90 − 80 − 60 − ns tCDS 150 − 120 − 100 − ns CS hold time during CS falling tCSH.CL 90 − 80 − 60 − ns CS hold time during CS rising tCSH.CH 90 − 80 − 60 − ns tHIGH tLOW tRSK tFSK tDS tDH 115 115 − − 20 30 − − 1 1 − − 90 90 − − 20 30 − − 1 1 − − 60 60 − − 20 30 − − 1 1 − − ns ns µs µs ns ns tSKH.HH 70 − 60 − 40 − ns tSKH.HL 40 − 40 − 30 − ns tSKS.HL 0 − 0 − 0 − ns tSKS.HH 0 − 0 − 0 − ns tOZ tOD tOH tRO tFO − − 0 − − 100 110 − 80 80 − − 0 − − 100 85 − 50 50 − − 0 − − 70 55 − 40 40 ns ns ns ns ns tOZ.HL − 100 − 100 − 70 ns tOD.HH − 80 − 75 − 55 ns WP setup time tWS1 0 − 0 − 0 − ns WP hold time tWH1 0 − 0 − 0 − ns WP release / setup time tWS2 0 − 0 − 0 − ns SCK clock frequency CS deselect time SCK clock time “H” *1 SCK clock time “L” *1 Rising time of SCK clock *2 Falling time of SCK clock *2 SI data input setup time SI data input hold time SCK “L” hold time during HOLD rising SCL “L” hold time during HOLD falling SCK “L” setup time during HOLD falling SCK “L” setup time during HOLD rising Disable time of SO output *2 Delay time of SO output Hold time of SO output Rising time of SO output *2 Falling time of SO output *2 Disable time of SO output during HOLD falling *2 Delay time of SO output during HOLD rising *2 150 − 150 − 100 − ns tWH2 WP release / hold time *1. The clock cycle of the SCK clock (frequency fSCK) is 1/fSCK µs. This clock cycle is determined by a combination of several AC characteristics. Note that the clock cycle cannot be set as (1/fSCK) = tLOW (Min.) + tHIGH (Min.) by minimizing the SCK clock cycle time. *2. These are values of sample and not 100% tested. 8 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Table 14 Item Symbol Write time tPR −40°C to +125°C VCC = 2.5 V to 5.5 V Min. Max. − 4.0 Unit ms tCDS CS tCSH.CL tCSS.CH tCSH.CH tCSS.CL SCK tDS SI SO tDH tRSK MSB IN tFSK LSB IN High-Z Figure 3 Serial Input Timing CS tSKS.HL tSKH.HL tSKH.HH SCK tSKS.HH SI tOZ.HL tOD.HH SO HOLD Figure 4 Hold Timing Seiko Instruments Inc. 9 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A tSCK CS tOZ tHIGH SCK tLOW ADDR SI LSB IN tOD tOH tOD tOH SO LSB OUT tRO tFO Figure 5 Serial Output Timing tWS1 tWH1 CS WP Figure 6 Valid Timing in Write Protect tWS2 tWH2 CS WP Figure 7 Invalid Timing in Write Protect 10 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Pin Function 1. CS (Chip select input) Pin This is an input pin to set a chip in the select status. In the “H” input level, the device is in the non-select status and its output is high impedance. The device is in standby as long as it is not in Write inside. The device goes in active by setting the chip select to “L”. Input any instruction code after power-on and a falling of chip select. 2. SI (Serial data input) pin This pin is to input serial data. This pin receives an instruction code, an address and Write data. This pin latches data at rising edge of serial clock. 3. SO (Serial data output) pin This pin is to output serial data. The data output changes at falling edge of serial clock. 4. SCK (Serial clock input) pin This is a clock input pin to set the timing of serial data. An instruction code, an address and Write data are received at a rising edge of clock. Data is output at falling edge of clock. 5. WP (Write protect input) pin This is an input pin to protect memory data when Write instruction (WRITE, WRSR) is being input. By setting this pin to “L”, the WEL bit in the status register is set to “L”. Therefore S-25A010A/020A/040A does not Write to the E2PROM, however, it accepts other instructions. Fix this pin “H” or “L” not to set it in the floating state. Refer to “ Protect Operation” for details. 6. HOLD (HOLD input) pin This pin is used to pause serial communications without setting the device in the non-select status. In the hold status, the serial output goes in high impedance, the serial input and the serial clock go in “Don’t care”. During the hold operation, be sure to set the device in active by setting the chip select ( CS pin) to “L”. Refer to “ Hold Operation” for details. Seiko Instruments Inc. 11 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Instruction Setting Tables 15 and 16 are the lists of instructions for the S-25A010A/020A/040A. The instruction is able to be input by changing the CS pin “H” to “L”. Input the instruction in the MSB first. Each instruction code is organized with 1-byte as shown below. If the S-25A010A/020A/040A receives any invalid instruction code, the device goes in the non-select status. 1. S-25A010A/020A Table 15 Instruction Set Instruction Operation Instruction code SCK input clock 1 to 8 0000 X110 0000 X100 0000 X101 0000 X001 0000 X011 0000 X010 Address SCK input clock 9 to 16 − − b7 to b0 output*1 b7 to b0 input A7*2 to A0 A7*2 to A0 Data SCK input clock 17 to 24 − − − − D7 to D0 output*3 D7 to D0 input Address SCK input clock 9 to 16 − − b7 to b0 output*1 b7 to b0 input A7 to A0 A7 to A0 Data SCK input clock 17 to 24 − − − − D7 to D0 output*3 D7 to D0 input WREN Write enable WRDI Write disable RDSR Read the status register WRSR Write in the status register READ Read memory data WRITE Write memory data *1. Sequential data reading is possible. *2. In the S-25A010A, A7 = Don’t care because the address range is A6 to A0. *3. After outputting data in the specified address, data in the following address is output. Remark X = Don’t care. 2. S-25A040A Table 16 Instruction Set Instruction Operation Instruction code SCK input clock 1 to 8 0000 X110 0000 X100 0000 X101 0000 X001 0000 [A8*2]011 0000 [A8*2]010 WREN Write enable WRDI Write disable RDSR Read the status register WRSR Write in the status register READ Read memory data WRITE Write memory data *1. Sequential data reading is possible. *2. In the S-25A040A, assign bit A8 in the address into the fifth bit in an instruction code. *3. After outputting data in the specified address, data in the following address is output. Remark X = Don’t care. 12 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Operation 1. Status register The status register’s organization is below. The status register can Write and Read by a specific instruction. b7 b6 b5 b4 b3 b2 b1 b0 1 1 1 1 BP1 BP0 WEL WIP Block Protect Bits Write Enable Latch Write In Progress Figure 8 Organization of Status Register The status/control bits of the status register are as follows. 1.1 BP1, BP0 (b3, b2) : Block Protect Bit BP1 and BP0 are composed of the nonvolatile bit. The area size of Software Protect with respect to WRITE instructions is defined by the BP1 and BP0 bits. Rewriting these bits is possible by the WRSR instruction. To protect the memory area against the WRITE instruction, set either or both of bit BP1 and BP0 to “1”. Rewriting bit BP1 and BP0 is possible unless they are in Hardware Protect mode. Refer to “ Protect Operation” for details of “Block Protect”. 1.2 WEL (b1) : Write Enable Latch Bit WEL shows the status of internal Write Enable Latch. Bit WEL is set by the WREN instruction only. If bit WEL is “1”, this is the status that Write Enable Latch is set. If bit WEL is “0”, Write Enable Latch is in reset, so that the S25A010A/020A/040A does not receive the WRITE or WRSR instruction. Bit WEL is reset after these operations; • • • • • The power supply voltage is dropping Power-on After performing WRDI After the Write operation by the WRSR instruction After the Write operation by the WRITE instruction • After setting the WP pin to “L” 1.3 WIP (b0) : Write In Progress Bit WIP is a Read Only bit. It indicates whether the internal memory is in the Write operation or not by the WRITE or WRSR instruction. Bit WIP is “1” during the Write operation but “0” during any other status. Seiko Instruments Inc. 13 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 2. Write enable (WREN) Before writing data (WRITE and WRSR), be sure to set bit Write Enable Latch (WEL). This instruction is to set bit WEL. Its operation is below. After selecting the device by the chip select ( CS ), input the instruction code from serial data input (SI). To set bit WEL, set the device in the non-select status by CS at the 8th clock of the serial clock (SCK). To cancel the WREN instruction, input the clock different from a specified value (n = 8 clock) while CS is in “L”. CS WP SCK High / Low 1 2 3 4 5 Instruction SI SO X High-Z Remark X = Don’t care. Figure 9 WREN Operation 14 Seiko Instruments Inc. 6 7 8 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 3. Write disable (WRDI) The WRDI instruction is one of ways to reset bit Write Enable Latch (WEL). After selecting the device by the chip select ( CS ), input the instruction code from serial data input (SI). To reset bit WEL, set the device in the non-select status by CS at the 8th clock of the serial clock. To cancel the WRDI instruction, input the clock different from a specified value (n = 8 clock) while CS is in “L”. Bit WEL is reset after the operations shown below. • • • • • The power supply voltage is dropping Power-on After performing WRDI After the completion of Write operation by the WRSR instruction After the completion of Write operation by the WRITE instruction • After setting the WP pin to “L” CS WP SCK High / Low 1 2 3 4 5 6 7 8 Instruction X SI SO High-Z Remark X = Don’t care. Figure 10 WRDI Operation Seiko Instruments Inc. 15 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 4. Read the status register (RDSR) Reading data in the status register is possible by the RDSR instruction. During the Write operation, it is possible to confirm the progress by checking bit WIP. Set the chip select ( CS ) “L” first. After that, input the instruction code from serial data input (SI). The status of bit in the status register is output from serial data output (SO). Sequential Read is available for the status register. To stop the Read cycle, set CS to “H”. It is possible to read the status register always. The bits in it are valid and can be read by RDSR even in the Write cycle. However, during the Write cycle in progress, nonvolatile bits BP1 and BP0 are fixed in a certain value. These updated values of bit can be obtained by inputting another new RDSR instruction after the Write cycle has completed. Contrarily, two of Read Only bits WEL and WIP are being updated while the Write cycle is in progress. b7, b6, b5, and b4 are “1” when they are read by the RDSR instruction. CS WP SCK High / Low 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 Instruction X SI Outputs Data in the Status Register SO High-Z b7 b6 Remark X = Don’t care. Figure 11 RDSR Operation 16 Seiko Instruments Inc. b5 b4 b3 b2 b1 b0 b7 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 5. Write in the status register (WRSR) The values of status register (BP1, BP0) can be rewritten by inputting the WRSR instruction. But b7, b6, b5, b4, b1, b0 of status register cannot be rewritten. b7 to b4 are always “1” when reading the status register. Before inputting the WRSR instruction, set bit WEL by the WREN instruction. The operation of WRSR is shown below. Set the chip select ( CS ) “L” first. After that, input the instruction code and data from serial data input (SI). To start WRSR Write (tPR), set the chip select ( CS ) to “H” after inputting data or before inputting a rising of the next serial clock. It is possible to confirm the operation status by reading the value of bit WIP during WRSR Write. Bit WIP is “1” during Write, “0” during any other status. Bit WEL is reset when Write is completed. With the WRSR instruction, the values of BP1 and BP0; which determine the area size the users can handle as the Read Only memory; can be changed. When signal WP is “L”, however, the WRSR instruction is not be performed (Refer to “ Protect Operation”). Bits BP1 and BP0 keep the value which is the one prior to the WRSR instruction during the WRSR instruction. The newly updated value is changed when the WRSR instruction has completed. To cancel the WRSR instruction, input the clock different from a specified value (n = 16 clock) while CS is in “L”. CS WP SCK High / Low 1 2 3 4 5 6 7 8 9 Instruction X SI SO 10 11 12 13 14 15 16 Outputs Data in the Status Register b7 b6 b5 b4 b3 b2 b1 b0 High-Z Remark X = Don’t care. Figure 12 WRSR Operation Seiko Instruments Inc. 17 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 6. Read memory data (READ) The Read operation is shown below. Input the instruction code and the address from serial data input (SI) after inputting “L” to the chip select ( CS ). The input address is loaded to the internal address counter, and data in the address is output from the serial data output (SO). Next, by inputting the serial clock (SCK) keeping the chip select ( CS ) in “L”, the address is automatically incremented so that data in the following address is sequentially output. The address counter rolls over to the first address by increment in the last address. To finish the Read cycle, set CS to “H”. It is possible to raise the chip select always during the cycle. During Write, the Read instruction code is not be accepted or operated. CS WP SCK High / Low 1 2 3 4 5 6 Instruction SI X 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 8-bit Address A7*1 A6 A5 A4 A3 A2 A1 A0 Outputs the First Byte SO High-Z D7 *1 In the S-25A010A, A7 = Don’t care because the address range is A6 to A0. Remark X = Don’t care. Figure 13 Read Operation (S-25A010A/020A) 18 Seiko Instruments Inc. D6 D5 D4 D3 D2 D1 D0 Outputs the Second D7 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A CS WP SCK High / Low 1 2 3 4 5 6 Instruction SI A8*1 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 8-bit Address A7 A6 A5 A4 A3 A2 A1 A0 Outputs the First Byte SO High-Z D7 D6 D5 D4 D3 D2 D1 D0 Outputs the Second D7 *1 In the S-25A040A, assign bit A8 in the address into the fifth bit in an instruction code. Figure 14 Read Operation (S-25A040A) Seiko Instruments Inc. 19 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 7. Write memory data (Write) Figures 15 and 16 show the timing charts when inputting 1-byte data. Input the instruction code, the address and data from serial data input (SI) after inputting “L” to the chip select ( CS ). To start Write (tPR), set the chip select ( CS ) to “H” after inputting data or before inputting a rising of the next serial clock. Bit WIP and WEL are reset to “0” when Write has completed. The S-25A010A/020A/040A can Page Write of 16 bytes. Its function to transmit data is as same as Byte Write basically, but it operates Page Write by receiving sequential 8-bit Write data as much data as page size has. Input the instruction code, the address and data from serial data input (SI) after inputting “L” in CS , as the Write operation (page) shown in Figures 17 and 18. Input the next data while keeping CS in “L”. After that, repeat inputting data of 8bit sequentially. At the end, by setting CS to “H”, the Write operation starts (tPR). 4 of the lower bits in the address are automatically incremented every time when receiving Write data of 8-bit. Thus, even if Write data exceeds 16 bytes, the higher bits in the address do not change. And lower 4 bits in the address roll over so that Write data which is previously input is overwritten. These are cases when the Write instruction is not accepted or operated. • Bit WEL is not set to “1” (not set to “1” beforehand immediately before the Write instruction) • During Write • The address to be written is in the protect area by BP1 and BP0. • The WP signal is in “L”. To cancel the Write instruction, input the clock different from a specified value (n = 16 + m × 8 clocks) while CS is in “L”. 20 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A CS WP SCK High 1 2 3 4 5 6 7 8 9 10 12 13 14 15 16 17 18 A7*1 A6 A5 X 19 20 21 22 23 24 Data Byte 1 8-bit Address Instruction SI 11 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 High-Z SO *1 In the S-25A010A, A7 = Don’t care because the address range is A6 to A0. Remark X = Don’t care. Figure 15 Write Operation (1 byte) (S-25A010A/020A) CS WP SCK High 1 2 3 4 5 6 SO 8 9 10 11 12 13 14 15 16 17 18 8-bit Address Instruction SI 7 A7 A6 A5 A8*1 19 20 21 22 23 24 Data Byte 1 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 High-Z *1 In the S-25A040A, assign bit A8 in the address into the fifth bit in an instruction code. Figure 16 Write Operation (1 byte) (S-25A040A) Seiko Instruments Inc. 21 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A CS WP High 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 SCK SI Data Byte (n) 8-bit Address Instruction A7*1 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 X Data Byte (n+x) D4 D3 D2 D1 D0 High-Z SO *1 In the S-25A010A, A7 = Don’t care because the address range is A6 to A0. Remark X = Don’t care. Figure 17 Write Operation (Page) (S-25A010A/020A) CS WP High 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 SCK Instruction SI SO A8*1 8-bit Address Data Byte (n) A7 A6 A5 A4 A3 A2 A1 A0 D7 D6 D5 D4 D3 D2 D1 D0 High-Z *1 In the S-25A040A, assign bit A8 in the address into the fifth bit in an instruction code. Figure 18 Write Operation (Page) (S-25A040A) 22 Seiko Instruments Inc. Data Byte (n + x) D4 D3 D2 D1 D0 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Protect Operation Table 17 shows the block settings of Write protect. Setting value in Protect Bits (BP1, BP0) in the status register protect data in the area of all/50%/25% of the memory address. Setting signal WP to “L” provides the following settings. • Write protect for the WRITE, WRSR instructions • Reset bit WEL Figures 6 and 7 show the Valid timing in Write protect and Invalid timing in Write protect. Table 17 Block Settings of Write Protect Status Register BP1 BP0 0 0 0 1 1 0 1 1 Area of Write Protect 0% 25% 50% 100% Address of Write protect block S-25A040A S-25A020A S-25A010A None None None 180h to 1FFh C0h to FFh 60h to 7Fh 100h to 1FFh 80h to FFh 40h to 7Fh 000h to 1FFh 00h to FFh 00h to 7Fh Seiko Instruments Inc. 23 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Hold Operation The hold operation is used to pause serial communications without setting the device in the non-select status. In the hold status, the serial data output goes in high impedance, and both of the serial data input and the serial clock go in “Don’t care”. Be sure to set the chip select ( CS ) to “L” to set the device in the select status during the hold status. Generally, during the hold status, the device holds the select status. But if setting the device in the non-select status, the users can finish the operation even in progress. Figure 19 shows the hold operation. Set Hold ( HOLD ) to “L” when the serial clock (SCK) is in “L”, Hold ( HOLD ) is switched at the same time the hold status starts. If setting Hold ( HOLD ) to “H”, Hold ( HOLD ) is switched at the same time the hold status ends. Set Hold ( HOLD ) to “L” when the serial clock (SCK) is in “H”; the hold status starts when the serial clock goes in “L” after Hold ( HOLD ) is switched. If setting Hold ( HOLD ) to “H”, the hold status ends when the serial clock goes in “L” after Hold ( HOLD ) is switched. Hold status Hold status SCK HOLD Figure 19 Hold Operation 24 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Write Protect Function during the Low Power Supply Voltage The S-25A010A/020A/040A has a built-in detection circuit which operates with the low power supply voltage. The S25A010A/020A/040A cancels the Write operation (WRITE, WRSR) when the power supply voltage drops and poweron, at the same time, goes in the Write protect status (WRDI) automatically to reset bit WEL. The detection voltage is 1.20 V typ., the release voltage is 1.35 V typ., and its hysteresis is approx. 0.15 V (Refer to Figure 20). To operate Write, after the power supply voltage dropped once but rose to the voltage level which allows Write again, be sure to set the Write Enable Latch bit (WEL) before operating Write (WRITE, WRSR). In the Write operation, data in the address written during the low power supply voltage is not assured. Power supply voltage Hysteresis approx. 0.15 V Release voltage (+VDET) 1.35 V Typ. Detection voltage (−VDET) 1.20 V Typ. Cancel the Write instruction Set in Write protect (WRDI) automatically Figure 20 Operation during Low Power Supply Voltage I/O Pin 1. Connection of input pin All input pins in S-25A010A/020A/040A have the CMOS structure. Do not set these pins in high impedance during operation when you design. Especially, set the CS input in the non-select status “H” during power-on/off and standby. The error Write does not occur as long as the CS pin is in the non-select status “H”. Set the CS pin to VCC via a resistor (the pull-up resistor of 10 kΩ to 100 kΩ). To prevent the error for sure, it is recommended to set other input pins than the CS pin via a pull-up resistor. 2. Equivalent circuit of I/O pin Figures 21 and 22 show the equivalent circuits of input pins in S-25A010A/020A/040A. A pull-up and pull-down elements are not included in each input pin, pay attention not to set it in the floating state when you design. Figure 23 shows the equivalent circuit of the output pin. This pin has the tri-state output of “H” level/“L” level/high impedance. Seiko Instruments Inc. 25 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A 2. 1 Input pin CS, SCK Figure 21 CS , SCK Pins SI, WP, HOLD Figure 22 SI, WP , HOLD Pins 2. 2 Output pin VCC SO Figure 23 SO Pin 3. Precaution for use • Absolute maximum ratings: Do not operate these ICs in excess of the absolute maximum ratings (as listed on the data sheet). Exceeding the supply voltage rating can cause latch-up. • Operations with moisture on the E2PROM pins may occur malfunction by short-circuit between pins. Especially, in occasions like picking the E2PROM up from low temperature tank during the evaluation. Be sure that not remain frost on the E2PROM pin to prevent malfunction by short-circuit. Also attention should be paid in using on environment, which is easy to dew for the same reason. 26 Seiko Instruments Inc. 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Precautions ● Do not apply an electrostatic discharge to this IC that exceeds the performance ratings of the built-in electrostatic protection circuit. ● SII claims no responsibility for any and all disputes arising out of or in connection with any infringement of the products including this IC upon patents owned by a third party. Seiko Instruments Inc. 27 125°C OPERATION SPI SERIAL E2PROM FOR AUTOMOTIVE ELECTRIC COMPONENT Rev.1.0_01 S-25A010A/020A/040A Product Name Structure S-25AxxxA 0 A − J8T2 G D Burn-in type D: Wafer burn-in Package name (abbreviation) and IC packing specification J8T2: 8-Pin SOP (JEDEC), Tape Fixed Product name S-25A010A: 1 Kbit S-25A020A: 2 Kbits S-25A040A: 4 Kbits 28 Seiko Instruments Inc. 5.02±0.2 8 5 1 4 1.27 0.20±0.05 0.4±0.05 No. FJ008-A-P-SD-2.1 TITLE No. SOP8J-D-PKG Dimensions FJ008-A-P-SD-2.1 SCALE UNIT mm Seiko Instruments Inc. 4.0±0.1(10 pitches:40.0±0.2) 2.0±0.05 ø1.55±0.05 0.3±0.05 ø2.0±0.05 8.0±0.1 2.1±0.1 5°max. 6.7±0.1 1 8 4 5 Feed direction No. FJ008-D-C-SD-1.1 TITLE SOP8J-D-Carrier Tape No. FJ008-D-C-SD-1.1 SCALE UNIT mm Seiko Instruments Inc. 60° 2±0.5 13.5±0.5 Enlarged drawing in the central part ø21±0.8 2±0.5 ø13±0.2 No. FJ008-D-R-SD-1.1 TITLE SOP8J-D-Reel No. FJ008-D-R-SD-1.1 SCALE UNIT QTY. mm Seiko Instruments Inc. 2,000 • • • • • • The information described herein is subject to change without notice. Seiko Instruments Inc. is not responsible for any problems caused by circuits or diagrams described herein whose related industrial properties, patents, or other rights belong to third parties. The application circuit examples explain typical applications of the products, and do not guarantee the success of any specific mass-production design. When the products described herein are regulated products subject to the Wassenaar Arrangement or other agreements, they may not be exported without authorization from the appropriate governmental authority. Use of the information described herein for other purposes and/or reproduction or copying without the express permission of Seiko Instruments Inc. is strictly prohibited. The products described herein cannot be used as part of any device or equipment affecting the human body, such as exercise equipment, medical equipment, security systems, gas equipment, or any apparatus installed in airplanes and other vehicles, without prior written permission of Seiko Instruments Inc. Although Seiko Instruments Inc. exerts the greatest possible effort to ensure high quality and reliability, the failure or malfunction of semiconductor products may occur. The user of these products should therefore give thorough consideration to safety design, including redundancy, fire-prevention measures, and malfunction prevention, to prevent any accidents, fires, or community damage that may ensue.