CAV25128
http://onsemi.com
4
Pin Description
SI: The serial data input pin accepts opcodes, addresses
and data. In SPI modes (0,0) and (1,1) input data is latched
on the rising edge of the SCK clock input.
SO: The serial data output pin is used to transfer data out of
the device. In SPI modes (0,0) and (1,1) data is shifted out
on the falling edge of the SCK clock.
SCK: The serial clock input pin accepts the clock provided
by the host and used for synchronizing communication
between host and CAV25128.
CS
: The chip select input pin is used to enable/disable the
CAV25128. When CS
is high, the SO output is tristated
(high impedance) and the device is in Standby Mode (unless
an internal write operation is in progress). Every
communication session between host and CAV25128 must be
preceded by a high to low transition and concluded with a low
to high transition of the CS
input.
WP
: The write protect input pin will allow all write
operations to the device when held high. When WP
pin is
tied low and the WPEN bit in the Status Register (refer to
Status Register description, later in this Data Sheet) is set to
“1”, writing to the Status Register is disabled.
HOLD
: The HOLD input pin is used to pause transmission
between host and CAV25128, without having to retransmit
the entire sequence at a later time. To pause, HOLD
must be
taken low and to resume it must be taken back high, with the
SCK input low during both transitions. When not used for
pausing, it is recommended the HOLD
input to be tied to
V
CC
, either directly or through a resistor.
Functional Description
The CAV25128 device supports the Serial Peripheral
Interface (SPI) bus protocol, modes (0,0) and (1,1). The
device contains an 8bit instruction register. The instruction
set and associated opcodes are listed in Table 7.
Reading data stored in the CAV25128 is accomplished by
simply providing the READ command and an address.
Writing to the CAV25128, in addition to a WRITE
command, address and data, also requires enabling the
device for writing by first setting certain bits in a Status
Register, as will be explained later.
After a high to low transition on the CS
input pin, the
CAV25128 will accept any one of the six instruction
opcodes listed in Table 7 and will ignore all other possible
8bit combinations. The communication protocol follows
the timing from Figure 2.
The CAV25128 features an additional Identification Page
(64 bytes) which can be accessed for Read and Write
operations when the IPL bit from the Status Register is set
to “1”. The user can also choose to make the Identification
Page permanent write protected.
Table 7. 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 0011 Read Data from Memory
WRITE 0000 0010 Write Data to Memory
Figure 2. Synchronous Data Timing
CS
SCK
SI
SO
t
CNH
t
CSS
t
WH
t
WL
t
SU
t
H
HIZ
VALID
IN
VALID
OUT
t
CSH
t
RI
t
FI
t
V
t
V
t
HO
t
CNS
t
CS
HIZ
t
DIS
CAV25128
http://onsemi.com
5
Status Register
The Status Register, as shown in Table 8, contains a
number of status and control bits.
The RDY
(Ready) bit indicates whether the device is busy
with a write operation. This bit is automatically set to 1 during
an internal write cycle, and reset to 0 when the device is ready
to accept commands. For the host, this bit is read only.
The WEL (Write Enable Latch) bit is set/reset by the
WREN/WRDI commands. 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 BP0 and BP1 (Block Protect) bits determine which
blocks are currently write protected. They are set by the user
with the WRSR command and are nonvolatile. The user is
allowed to protect a quarter, one half or the entire memory,
by setting these bits according to Table 9. The protected
blocks then become readonly.
The WPEN (Write Protect Enable) bit acts as an enable for
the WP
pin. Hardware write protection is enabled when the
WP
pin is low and the WPEN bit is 1. This condition
prevents writing to the status register and to the block
protected sections of memory. While hardware write
protection is active, only the nonblock protected memory
can be written. Hardware write protection is disabled when
the WP
pin is high or the WPEN bit is 0. The WPEN bit, WP
pin and WEL bit combine to either permit or inhibit Write
operations, as detailed in Table 10.
The IPL (Identification Page Latch) bit determines
whether the additional Identification Page (IPL = 1) or main
memory array (IPL = 0) can be accessed both for Read and
Write operations. The IPL bit is set by the user with the
WRSR command and is volatile. The IPL bit is
automatically reset after read/write operations.
The LIP bit is set by the user with the WRSR command
and is nonvolatile. When set to 1, the Identification Page is
permanently write protected (locked in Readonly mode).
Note: The IPL and LIP bits cannot be set to 1 using the
same WRSR instruction. If the user attempts to set (“1”)
both the IPL and LIP bit in the same time, these bits cannot
be written and therefore they will remain unchanged.
Table 8. STATUS REGISTER
7 6 5 4 3 2 1 0
WPEN IPL 0 LIP BP1 BP0 WEL RDY
Table 9. BLOCK PROTECTION BITS
Status Register Bits
Array Address Protected Protection
BP1 BP0
0 0 None No Protection
0 1 30003FFF Quarter Array Protection
1 0 20003FFF Half Array Protection
1 1 00003FFF Full Array Protection
Table 10. WRITE PROTECT CONDITIONS
WPEN WP WEL Protected Blocks Unprotected Blocks Status Register
0 X 0 Protected Protected 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
CAV25128
http://onsemi.com
6
WRITE OPERATIONS
The CAV25128 device powers up into a write disable
state. The device contains a Write Enable Latch (WEL)
which must be set before attempting to write to the memory
array or to the status register. In addition, the address of the
memory location(s) to be written must be outside the
protected area, as defined by BP0 and BP1 bits from the
status register.
Write Enable and Write Disable
The internal Write Enable Latch and the corresponding
Status Register WEL bit are set by sending the WREN
instruction to the CAV25128. Care must be taken to take the
CS
input high after the WREN instruction, as otherwise the
Write Enable Latch will not be properly set. WREN timing
is illustrated in Figure 3. The WREN instruction must be
sent prior to any WRITE or WRSR instruction.
The internal write enable latch is reset by sending the
WRDI instruction as shown in Figure 4. Disabling write
operations by resetting the WEL bit, will protect the device
against inadvertent writes.
Figure 3. WREN Timing
SCK
SI
SO
00000
110
HIGH IMPEDANCE
Dashed Line = mode (1, 1)
CS
Figure 4. WRDI Timing
SCK
SI
SO
00000
100
HIGH IMPEDANCE
Dashed Line = mode (1, 1)
CS

CAV25128VE-GT3

Mfr. #:
Manufacturer:
ON Semiconductor
Description:
EEPROM 128KB SPI SER CMOS EEPROM
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet