Advanced CAT25CXXX Supervisory Circuits with SPI Serial E2PROM, Precision Reset Controller and Watchdog Timer FEATURES ■ Watchdog Timer on CS ■ 10 MHz SPI Compatible ■ 1,000,000 Program/Erase Cycles ■ 1.8 to 6.0 Volt Operation ■ 100 Year Data Retention ■ Hardware and Software Protection ■ Self-Timed Write Cycle ■ Zero Standby Current ■ 8-Pin DIP/SOIC, 16-Pin SOIC and 14-Pin TSSOP ■ Low Power CMOS Technology ■ Page Write Buffer ■ SPI Modes (0,0 &1,1) ■ Block Write Protection ■ Commercial, Industrial and Automotive – Protect 1/4, 1/2 or all of E2PROM Array Temperature Ranges ■ Programmable Watchdog Timer ■ Active High or Low Reset Outputs ■ Built-in inadvertent Write Protection – Precision Power Supply Voltage Monitoring – 5V, 3.3V, 3V and 1.8V Options – VCC Lock Out DESCRIPTION The CAT25CXXX is a single chip solution to three popular functions of EEPROM Memory, precision reset controller and watchdog timer. The EEPROM Memory is a 2K/4K/8K/16K/32K-Bit SPI Serial CMOS E2PROM internally organized as 256x8/512x8/1024x8/2048x8/ 4096x8 bits. Catalyst’s advanced CMOS Technology substantially reduces device power requirements. The 2K/4K devices feature a 16-byte page write buffer. The 8K/16K/32K devices feature a 32-byte page write buffer.The device operates via the SPI bus serial interface and is enabled though a Chip Select (CS). In addition to the Chip Select, the clock input (SCK), data in (SI) and data out (SO) are required to access the device. The reset function of the 25CXXX protects the system during brown out and power up/down condtions. During system failure the watchdog timer feature protects the microcontroller with a reset signal. The CAT25CXXX is designed with software and hardware write protection features including Block Lock protection. The device is available in 8-pin DIP, 8-pin SOIC, 16pin SOIC and 14-pin TSSOP packages. PIN CONFIGURATION TSSOP Package (U14) CS SO NC NC NC WP VSS 1 2 3 4 5 6 7 14 13 12 11 10 9 8 VCC RESET/RESET NC NC NC SCK SI © 1998 by Catalyst Semiconductor, Inc. Characteristics subject to change without notice SOIC Package (S16) CS SO NC NC NC NC WP VSS 1 2 3 4 5 6 7 8 16 15 14 13 12 11 10 9 SOIC Package (S) VCC RESET/RESET NC NC NC NC SCK SI CS SO WP VSS 9-95 1 2 3 4 8 7 6 5 VCC RESET/RESET SCK SI DIP Package (P) CS SO WP VSS 1 2 3 4 8 7 6 5 VCC RESET/RESET SCK SI Advanced CAT25CXXX PIN FUNCTIONS BLOCK DIAGRAM SENSE AMPS SHIFT REGISTERS Pin Name Function SO Serial Data Output SCK Serial Clock WP Write Protect VCC +1.8V to +6.0V Power Supply VSS Ground CS Chip Select SI Serial Data Input RESET/RESET Reset I/O NC No Connect COLUMN DECODERS WORD ADDRESS BUFFERS SO SI CS CONTROL LOGIC I/O CONTROL SPI CONTROL LOGIC WP SCK BLOCK PROTECT LOGIC E2PROM ARRAY XDEC DATA IN STORAGE HIGH VOLTAGE/ TIMING CONTROL STATUS REGISTER RESET/RESET Reset Controller High Precision Watchdog V CC Monitor 25CXXX F02.1 RELIABILITY CHARACTERISTICS Symbol Parameter Min. Max. Units Reference Test Method 1,000,000 Cycles/Byte MIL-STD-883, Test Method 1033 NEND(3) Endurance TDR(3) Data Retention 100 Years MIL-STD-883, Test Method 1008 VZAP(3) ESD Susceptibility 2000 Volts MIL-STD-883, Test Method 3015 ILTH(3)(4) Latch-Up 100 mA JEDEC Standard 17 Power-Up Timing(1)(2) (1) (2) (3) (4) Symbol Parameter Max. Units tPUR Power-up to Read Operation 1 ms tPUW Power-up to Write Operation 1 ms This parameter is tested initially and after a design or process change that affects the parameter. tPUR and tPUW are the delays required from the time VCC is stable until the specified operation can be initiated. This parameter is tested initially and after a design or process change that affects the parameter. Latch-up protection is provided for stresses up to 100 mA on address and data pins from –1V to VCC +1V. Stock No. 21085-01 4/98 9-96 Advanced CAT25CXXX ABSOLUTE MAXIMUM RATINGS* *COMMENT Temperature Under Bias ................. –55°C to +125°C Stresses above those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions outside of those listed in the operational sections of this specification is not implied. Exposure to any absolute maximum rating for extended periods may affect device performance and reliability. Storage Temperature ....................... –65°C to +150°C Voltage on any Pin with Respect to Ground(1) ............ –2.0V to +VCC +2.0V VCC with Respect to Ground ............... –2.0V to +7.0V Package Power Dissipation Capability (Ta = 25°C) ................................... 1.0W Lead Soldering Temperature (10 secs) ............ 300°C Output Short Circuit Current(2) ........................ 100 mA D.C. OPERATING CHARACTERISTICS VCC = +1.8V to +6.0V, unless otherwise specified. Limits Symbol Parameter Min. Typ. Max. Units Test Conditions ICC1 Power Supply Current (Operating Write) 5 mA VCC = 5V @ 5MHz SO=open; CS=Vss ICC2 Power Supply Current (Operating Read) 0.4 mA VCC = 5.5V FCLK = 5MHz ISB Power Supply Current (Standby) 0 µA CS = VCC VIN = VSS or VCC ILI Input Leakage Current 2 µA ILO Output Leakage Current 3 µA VIL(3) Input Low Voltage -1 VCC x 0.3 V VIH(3) Input High Voltage VCC x 0.7 VCC + 0.5 V VOL1 Output Low Voltage 0.4 V VOH1 Output High Voltage VOL2 Output Low Voltage VOH2 Output High Voltage VCC - 0.8 V 0.2 VCC-0.2 VOUT = 0V to VCC, CS = 0V 4.5V≤VCC<5.5V IOL = 3.0mA IOH = -1.6mA V 1.8V≤VCC<2.7V V IOL = 150µA IOH = -100µA Note: (1) The minimum DC input voltage is –0.5V. During transitions, inputs may undershoot to –2.0V for periods of less than 20 ns. Maximum DC voltage on output pins is VCC +0.5V, which may overshoot to VCC +2.0V for periods of less than 20 ns. (2) Output shorted for no more than one second. No more than one output shorted at a time. (3) This parameter is tested initially and after a design or process change that affects the parameter. 9-97 Stock No. 21085-01 4/98 Advanced CAT25CXXX Figure 1. Sychronous Data Timing tCS VIH CS VIL tCSH tCSS VIH tWH SCK VIL tH tSU VIH tWL VALID IN SI VIL tV VOH SO tHO tDIS HI-Z HI-Z VOL A.C. CHARACTERISTICS Limits 1.8, 2.5 SYMBOL PARAMETER Min. 4.5V-5.5V Max. Min. Test Max. UNITS Conditions tSU Data Setup Time 50 10 ns VIH = 2.4V tH Data Hold Time 50 20 ns CL = 100pF tWH SCK High Time 200 40 ns VOL = 0.8V tWL SCK Low Time 200 40 ns VOH = 2.0v fSCK Clock Frequency DC tLZ HOLD to Output Low Z tRI(1) 2 10 MHz 50 50 ns Input Rise Time 2 2 µs tFI(1) Input Fall Time 2 2 µs tHD HOLD Setup Time 100 40 ns tCD HOLD HOLD Time 100 40 ns tWC Write Cycle Time 10 5 ms tV Output Valid from Clock Low 200 80 ns tHO Output HOLD Time tDIS Output Disable Time 250 75 ns tHZ HOLD to Output High Z 100 50 ns tCS CS High Time 250 100 ns tCSS CS Setup Time 250 100 ns tCSH CS HOLD Time 250 100 ns 0 DC 0 NOTE: (1) This parameter is tested initially and after a design or process change that affects the parameter. Stock No. 21085-01 4/98 9-98 ns CL = 50pF CL = 100pF Advanced CAT25CXXX FUNCTIONAL DESCRIPTION RESET/RESET RESET: RESET I/O RESET These are open drain pins and can be used as reset trigger inputs. By forcing a reset condition on the pins the device will initiate and maintain a reset condition. RESET pin must be connected through a pull-down and RESET pin must be connected through a pull-up device. The CAT25CXXX supports the SPI bus data transmission protocol. The synchronous Serial Peripheral Interface (SPI) helps the CAT25CXXX to interface directly with many of today’s popular microcontrollers. The CAT25CXXX contains an 8-bit instruction register. (The instruction set and the operation codes are detailed in the instruction set table) CS CS: Chip Select CS is the Chip select pin. CS low enables the CAT25CXXX and CS high disables the CAT25CXXX. CS high takes the SO output pin to high impedance and forces the devices into a Standby Mode (unless an internal write operation is underway) The CAT25CXXX draws ZERO current in the Standby mode. A high to low transition on CS is required prior to any sequence being initiated. A low to high transition on CS after a valid write sequence is what initiates an internal write cycle. After the device is selected with CS going low, the first byte will be received. The part is accessed via the SI pin, with data being clocked in on the rising edge of SCK. The first byte contains one of the six op-codes that define the operation to be performed. PIN DESCRIPTION SI: Serial Input SI is the serial data input pin. This pin is used to input all opcodes, byte addresses, and data to be written to the 25CXXX. Input data is latched on the rising edge of the serial clock. WP WP: Write Protect WP is the Write Protect pin. The Write Protect pin will allow normal read/write operations when held high. When WP is tied low and the WPEN bit in the status register is set to “1”, all write operations to the status register are inhibited. WP going low while CS is still low will interrupt a write to the status register. If the internal write cycle has already been initiated, WP going low will have no effect on any write operation to the status register. The WP pin function is blocked when the WPEN bit is set to 0. SO: Serial Output SO is the serial data output pin. This pin is used to transfer data out of the 25CXXX. During a read cycle, data is shifted out on the falling edge of the serial clock. SCK: Serial Clock SCK is the serial clock pin. This pin is used to synchronize the communication between the microcontroller and the 25CXXX. Opcodes, byte addresses, or data present on the SI pin are latched on the rising edge of the SCK. Data on the SO pin is updated on the falling edge of the SCK. INSTRUCTION SET Instruction Opcode Operation WREN 0000 0110 Enable Write Operations WRDI 0000 0100 Disable Write Operations RDSR 0000 0101 Read Status Register WRSR 0000 0001 Write Status Register READ 0000 X011(1) Read Data from Memory WRITE 0000 X010(1) Write Data to Memory Note: (1) X=O for 25C02X/08X/16X/32X. X=A8 for 25C04X STATUS REGISTER 7 6 5 4 3 2 1 0 WPEN X WD1 WD0 BP1 BP0 WEL RDY 9-99 Stock No. 21085-01 4/98 Advanced CAT25CXXX Status Register The Status Register indicates the status of the device. The RDY (Ready) bit indicates whether the CAT25CXXX is busy with a write operation. When set to 1 a write cycle is in progress and when set to 0 the device indicates it is ready. This bit is read only.The WEL (Write Enable) bit indicates the status of the write enable latch . When set to 1, the device is in a Write Enable state and when set to 0 the device is in a Write Disable state. The WEL bit can only be set by the WREN instruction and can be reset by the WRDI instruction. The WPEN (Write Protect Enable) is an enable bit for the WP pin. The WP pin and WPEN bit in the status register control the programmable hardware write protect feature. Hardware write protection is enabled when WP is low and WPEN bit is set to high. The user cannot write to the status register, (including the block protect bits and the WPEN bit) and the block protected sections in the memory array when the chip is hardware write protected. Only the sections of the memory array that are not block protected can be written. Hardware write protection is disabled when either WP pin is high or the WPEN bit is zero. The BPO and BP1 (Block Protect) bits indicate which blocks are currently protected. These bits are set by the user issuing the WRSR instruction. The user is allowedto protect quarter of the memory, half of the memory or the entire memory by setting these bits. Once protectedthe user may only read from the protected portion of the array. These bits are non-volatile. The watchdog timer bits, WD0 and WD1, select the watchdog time-out period. These nonvolatile bits are programmed with the WRSR instruction. BLOCK PROTECTION BITS Status Register Bits BP1 BPO Array Address Protected Protection 0 0 None No Protection 0 1 25C02X: C0-FF 25C04X: 180-1FF 25C08X: 0300-03FF 25C16X: 0600-07FF 25C32X: 0C00-0FFF Quarter Array Protection 1 0 25C02X: 80-FF 25C04X: 100-1FF 25C08X: 0200-03FF 25C16X: 0400-07FF 25C32X: 0800-0FFF Half Array Protection 1 1 25C02X: 00-FF 25C04X: 000-1FF 25C08X: 0000-03FF 25C16X: 0000-07FF 25C32X: 0000-0FFF Full Array Protection WATCHDOG TIMER BITS WD1 WD0 Watchdog Timer Time-Out (Typical) 0 0 1.4 Seconds 0 1 600 Milliseconds 1 0 200 Milliseconds 1 1 Disabled Stock No. 21085-01 4/98 9-100 Advanced CAT25CXXX DEVICE OPERATION FOR THE MEMORY FUNCTION Write Enable and Disable The CAT25CXXX contains a write enable latch. This latch must be set before any write operation. The device powers up in a write disable state when Vcc is applied. WREN instruction will enable writes (set the latch) to the device. WRDI instruction will disable writes (reset the latch) to the device. Disabling writes will protect the device against inadvertent writes. READ Sequence The part is selected by pulling CS low. The 8-bit read instruction is transmitted to the CAT25CXXX, followed by the 16-bit address for 25C08X/16X/32X (only 10-bit addresses are used for 25C08X, 11-bit addresses are used for 25C16X, and 12-bit addresses are used for 25C32X. The rest of the bits are don't care bits) and 8bit address for 25C02X/04X (for the 25C04X, bit 3 of the read data instruction contains address A8). After the correct read instruction and address are sent, the data stored in the memory at the selected address is shifted out on the SO pin. The data stored in the memory at the next address can be read sequentially by continuing to provide clock pulses. The internal address pointer is automatically incremented to the next higher address after each byte of data is shifted out. When the highest address is reached, the address counter rolls over to 0000H allowing the read cycle to be continued indefinitely. The read operation is terminated by pulling the CS high. To read the status register, RDSR instruction should be sent. The contents of the status register are shifted out on the SO line. The status register may be read at any time even during a write cycle. Read sequece is illustrated in Figure 4. Reading status register is illustrated in Figure 5. WRITE Sequence The CAT25CXXX powers up in a Write Disable state. Prior to any write instructions, the WREN instruction must be sent to CAT25CXXX. The device goes into w rite enable state by pulling the CS low and then clocking the WREN instruction into CAT25CXXX. The CS must be brought high after the WREN instruction to enable writes to the device. If the write operation is initiated immediately after the WREN instruction without CS being brought high, the data will not be written to the array because the write enable latch will not have been properly set. Also, for a successful write operation the address of the memory location(s) to be programmed must be outside the protected address field location selected by the block protection level. WRITE PROTECT ENABLE OPERATION WPEN 0 WP X WEL 0 Protected Blocks Protected Unprotected Blocks Protected Status Register Protected 0 X 1 Protected Writable Writable 1 Low 0 Protected Protected Protected 1 Low 1 Protected Writable Protected X High 0 Protected Protected Protected X High 1 Protected Writable Writable Figure 2. WREN Instruction Timing SK CS SI SO 0 0 0 0 0 1 1 0 HIGH-Z 9-101 Stock No. 21085-01 4/98 Advanced CAT25CXXX Byte Write Once the device is in a Write Enable state, the user may proceed with a write sequence by setting the CS low, issuing a write instruction via the SI line, followed by the 16-bit address for 25C08X/16X/32X (only 10-bit addresses are used for 25C08X, 11-bit addresses are used for 25C16X, and 12-bit addresses are used for 25C32X. The rest of the bits are don't care bits) and 8bit address for 25C02X/04X (for the 25C04X, bit 3 of the read data instruction contains address A8). Programming will start after the CS is brought high. The low to high transition of the CS pin must occur during the SCK low time, immediately after clocking the least significant bit of the data. Figure 6 illustrates byte write sequence. Page Write The CAT25CXXX features page write capability. After the initial byte, the host may continue to write up to 16 bytes of data to the CAT25C02X/04X and 32 bytes of data for 25C08X/16X/32X. After each byte of data received, lower order address bits are internally incremented by one; the high order bits of address will remain constant.The only restriction is that the X (X=16 for 25C02X/04X and X=32 for 25C08X/16X/32X) bytes must reside on the same page. If the address counter reaches the end of the page and clock continues, the counter will “roll over” to the first address of the page and overwrite any data that may have been written. The CAT25CXXX is automatically returned to the write disable state at the completion of the write cycle. Figure 8 illustrates the page write sequence. During an internal write cycle, all commands will be ignored except the RDSR (Read Status Register) instruction. To write to the status register, the WRSR instruction should be sent. Only Bit 2, Bit 3 and Bit 7 of the status register can be written using the WRSR instruction. Figure 7 illustrates the sequence of writing to status register. The Status Register can be read to determine if the write cycle is still in progress. If Bit 0 of the Status Register is set at 1, write cycle is in progress. If Bit 0 is set at 0, the device is ready for the next instruction. Figure 3. WRDI Instruction Timing SK CS SI 0 0 0 0 0 1 0 0 HIGH-Z SO 25C128 F05 Figure 4. Read Instruction Timing RESET 0 1 2 3 4 5 6 7 8 9 10 20 21 22 23 24 25 26 27 28 29 30 SK CS SI 0 0 0 0 0 0 1 1 BYTE ADDRESS* SO 7 *Please check the instruction set table for address Stock No. 21085-01 4/98 9-102 6 5 4 3 2 1 0 Advanced CAT25CXXX Figure 5. RDSR Timing CS 0 1 2 3 4 5 6 7 8 9 10 11 7 6 5 4 12 13 14 2 1 SCK SI DATA OUT HIGH IMPEDANCE SO 3 0 MSB 25C128 F09 Figure 6. Write Instruction Timing 0 1 2 3 4 5 6 7 8 21 22 23 24 25 26 27 28 29 30 31 SK CS SI 0 0 0 0 0 0 1 0 D7 D6 D5 D4 D3 D2 D1 D0 ADDRESS SO Figure 7. WRSR Timing CS 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 1 SCK DATA IN INSTRUCTION 7 SI 6 5 4 3 0 SO 25C128 F08 9-103 Stock No. 21085-01 4/98 Advanced CAT25CXXX time out period (the time out period is defined by the watchdog timer bits WD0 an d WD1) for lack of activity. 25CXXX is designed with the Watchdog Timer feature on the CS input. For the 25CXXX, if the microcontroller does not toggle the CS pin within the time out period the Watchdog Timer times out. This will generate a reset condition on reset outputs. The Watchdog Timer is cleared by any transition on CS. DEVICE OPERATION FOR THE SUPERVISORY CIRCUIT Reset Controller Description The CAT25CXXX provides a precision RESET controller that ensures correct system operation during brownout and power-up/down conditions. It is configured with open drain RESET outputs. During power-up, the RESET outputs remain active until VCC reaches the VTH threshold and will continue driving the outputs for approximately 200ms (tPURST) after reaching VTH. After the tPURST timeout interval, the device will cease to drive reset outputs. At this point the reset outputs will be pulled up or down by their respective pull up/pull down devices. During power-down, the RESET outputs will begin driving active when VCC falls below VTH. The RESET outputs will be valid so long as VCC is >1.0V (VRVALID). As long as the reset signal is asserted, the Watchdog Timer will not count and will stay cleared. Reset Threshold Voltage From the factory the 25CXXX is offered in six different variations of reset threshold voltages. They are 4.504.75V, 4.25-4.50V, 3.00-3.15V, 2.85-3.00V, 2.55-2.70V and 1.7-1.8V. To provide added flexibility to design engineers using this product, the 25CXXX is designed with an additional feature of programming the reset threshold voltage. This allows the user to change the existing reset threshold voltage to one of the other five reset threshold voltages. Once the reset threshold voltage is selected it will not change even after cycling the power, unless the user uses the programmer to change the reset threshold voltage. However, the programming function is available only through third party programmer manufacturers. Please call Catalyst for a list of programmer manufacturers who support this function. The RESET pins are I/Os; therefore, the CAT25CXXX can act as a signal conditioning circuit for an externally applied reset. The inputs are level triggered; that is, the RESET input in the 25CXXX will initiate a reset timeout after detecting a high and the RESET input in the 25CXXX will initiate a reset timeout after detecting a low. Watchdog Timer The Watchdog Timer provides an independent protection for microcontrollers. During a system failure, the CAT25CXXX will respond with a reset signal after a Figure 8. Page Write Instruction Timing 0 1 2 3 4 5 6 7 8 21 22 23 24-31 32-39 SK CS SI 0 0 0 0 0 0 1 0 ADDRESS SO Stock No. 21085-01 4/98 9-104 Data Byte 1 Data Byte 2 Data Byte 3 Data Byte N Advanced CAT25CXXX RESET CIRCUIT CHARACTERISTICS Symbol Parameter tGLITCH Glitch Reject Pulse Width VRT Reset Threshold Hystersis VOLRS Reset Output Low Voltage (IOLRS=1mA) VOHRS Reset Output High Voltage Vcc-0.75 Reset Threshold (Vcc=5V) (25CXXX-45) 4.50 4.75 Reset Threshold (Vcc=5V) (25CXXX-42) 4.25 4.50 Reset Threshold (Vcc=3.3V) (25CXXX-30) 3.00 3.15 Reset Threshold (Vcc=3.3V) (25CXXX-28) 2.85 3.00 Reset Threshold (Vcc=3V) (25CXXX-25) 2.55 2.70 Reset Threshold (Vcc=1.8V) (25CXXX-17) 1.70 1.80 tPURST Power-Up Reset Timeout 130 270 ms tRPD VTH to RESET Output Delay 5 µs VRVALID RESET Output Valid VTH Min. Max. Units 100 ns 15 mV 0.4 V V 1 Figure 9. RESET Output Timing V V t GLITCH VTH VRVALID VCC t PURST t RPD t PURST RESET t RPD RESET 9-105 Stock No. 21085-01 4/98 Advanced CAT25CXXX DESIGN CONSIDERATIONS The CAT25CXXX powers up in a write disable state and in a low power standby mode. A WREN instruction must be issued to perform any writes to the device after power up. Also,on power up CS should be brought low to enter a ready state and receive an instruction. After a successful byte/page write or status register write the CAT25CXXX goes into a write disable mode. CS must be set high after the proper number of clock cycles to start an internal write cycle. Access to the array during an internal write cycle is ignored and programming is continued. On power up,SO is in a high impedance. If an invalid op code is received, no data will be shifted into the CAT25CXXX, and the serial output pin (SO) will remain in a high impedance state until the falling edge of CS is detected again. The VCC sense provides write protection when VCC falls below the reset threshold value (VTH). The VCC lock out inhibits writes to the serial EEPROM whenever VCC falls below (power down) VTH or until VCC reaches the reset threshold (power up) VTH. ORDERING INFORMATION Prefix CAT Optional Company ID Device # 25C16 Product Number 25C32: 32K 25C16:16K 25C08: 8K 25C04: 4K 25C02: 2K Suffix 1 RESET 1. RESET 2. RESET -30 I S Temperature Range Blank = Commercial (0˚C to +70˚C) I = Industrial (-40˚C to +85˚C) A = Automotive (-40˚ to +105˚C)* Package P = PDIP S = 8-pin SOIC S16 = 16-pin SOIC U14 = 14-pin TSSOP * -40˚C to +125˚C is available upon request TE13 Tape & Reel TE13: 2000/Reel Reset Threshold Voltage 45: 4.5-4.75V 42: 4.25-4.5V 30: 3.0-3.15V 28: 2.85-3.0V 25: 2.55-2.7V 17: 1.7-1.8V Notes: (1) The device used in the above example is a 25C161SI-30TE13 (RESET, SOIC, Industrial Temperature, 3.0-3.15 Reset Threshold Voltage, Tape & Reel) Stock No. 21085-01 4/98 9-106