AN202493 Migrating from SPI nvSRAM to SPI F-RAM.pdf

AN202493
Migrating from SPI nvSRAM to SPI F-RAM™
Author: Shivendra Singh
Associated Part Family: SPI nvSRAM, SPI F-RAM
Associated Code Examples: None
Related Application Notes: AN304, AN89659
AN202493 provides guidelines for migrating from SPI nvSRAM to SPI F-RAM™. It recommends equivalent SPI
F-RAM devices, describes package and feature differences, and discusses the hardware and firmware modifications
that need to be made for a successful migration.
Contents
1
2
Introduction ...............................................................1
SPI nvSRAM and SPI F-RAM Compatibility .............3
2.1
Pin Compatibility ..............................................3
2.2
Package Compatibility .....................................3
2.3
Command (Opcode) Compatibility ...................6
2.4
Status Register Compatibility ...........................8
2.5
Device Spec Compatibility ...............................9
3
Hardware Compatibility .......................................... 12
3.1
SPI nvSRAM with WP (CY14xxxxQ1 and
CY14xxxxQ1A) Pin Layout ......................................... 12
3.2
SPI
nvSRAM
with
VCAP
(AutoStore)
(CY14xxxxQ2 and CY14xxxxQ2A) Pin Layout ........... 13
3.3
SPI F-RAM Pin Layout ................................... 13
4
Firmware Compatibility ........................................... 14
1
4.1
4.2
4.3
Sleep Mode (SLEEP) Command ................... 14
Read Device ID (RDID) Command ................ 15
Read
Serial
Number
(RDSN,
SNR)
Command ....................................................... 15
4.4
nvSRAM Special Features............................. 16
5
Summary ................................................................ 16
Document History............................................................ 17
Worldwide Sales and Design Support ............................. 18
Products .......................................................................... 18
®
PSoC Solutions ............................................................. 18
Cypress Developer Community....................................... 18
Technical Support ........................................................... 18
Introduction
F-RAM (ferroelectric random-access memory) is a nonvolatile memory that uses a ferroelectric capacitor to store
data. The data written in F-RAM is nonvolatile instantaneously. Unlike EEPROM and flash, F-RAM writes data to
nonvolatile memory at bus speed.
nvSRAM is a SRAM memory with a nonvolatile element embedded in each memory cell. The embedded nonvolatile
elements incorporate Silicon-Oxide-Nitride-Oxide-Silicon (SONOS) Quantum Trap technology. The SRAM provides
infinite read and write cycles, while the Quantum Trap cells offer highly reliable nonvolatile storage of data. Data
transfers from the SRAM to the nonvolatile elements (STORE operation) take place automatically at power down. On
power up, data is restored to the SRAM from the nonvolatile memory (RECALL operation).
Cypress has been supporting a few SPI nvSRAM parts with the status NRND (not recommended for new designs)
and is offering replacement options for these devices with its SPI F-RAM products. This application note provides
details on migrating from SPI nvSRAM to SPI F-RAM. It discusses the differences in packaging, features, and timing
and the modifications required in hardware and firmware to make the migration successful. Table 1 lists the
suggested SPI F-RAM replacement parts for the SPI nvSRAM.
®
Refer to the application notes AN304 – SPI Guide for F-RAM™ and AN89659 – Interfacing SPI F-RAM with PSoC 4
for SPI F-RAM design guidelines and a firmware example.
www.cypress.com
Document No. 002-02493 Rev.**
1
Migrating from SPI nvSRAM to SPI F-RAM™
This application note uses the generic part numbers CY14xxxxQ1x and CY14xxxxQ2x to represent the SPI nvSRAM
part options in the 8-pin DFN package built using the first SPI nvSRAM silicon (Rev **). Similarly, the CY14xxxxQ1xA
and CY14xxxxQ2xA part numbers are used to represent the SPI nvSRAM part options in the 8-pin SOIC package
built using the new SPI nvSRAM silicon (Rev A).
Table 1. SPI nvSRAM to SPI F-RAM Migration Options
nvSRAM Parts
Density
Package
Part No.
64 Kb
256 Kb
512 Kb
SPI
Freq.
8-pin SOIC
CY14MB064Q2B 40 MHz
8-pin SOIC
CY14MB064Q2A 40 MHz
8-pin SOIC
CY14ME064Q2A 40 MHz
8-pin DFN
CY14B256Q2
40 MHz
8-pin SOIC
CY14B256Q2A
40 MHz
8-pin SOIC
CY14E256Q5A
40 MHz
8-pin SOIC
CY14B512Q2A
40 MHz
8-pin DFN
CY14B101Q2
40 MHz
8-pin SOIC
CY14B101Q2A
40 MHz
Suggested F-RAM (Replacement) Parts
Voltage
Temp.
2.7 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
2.7 V to
– 40 ˚C to
3.6 V
+ 105 ˚C
4.5 V to
– 40 ˚C to
5.5 V
+ 105 ˚C
2.7 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
2.7 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
4.5 V to
– 40 ˚C to
5.5 V
+ 105 ˚C
2.7 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
2.7 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
2.7 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
Part No.
SPI
Freq.
FM25CL64B
20 MHz
FM25CL64B
16 MHz
FM25640B
4 MHz
FM25V02A
40 MHz
FM25V02A
40 MHz
Voltage
Temp.
2.7 V to
– 40 ˚C to
3.65 V
+ 85 ˚C
3.0 V to
– 40 ˚C to
3.6 V
+ 125 ˚C
4.5 V to
- 40 ˚C to
5.5 V
+ 125 ˚C
2.0 V to
– 40 ˚C to
3.6 V
+ 85 ˚C
2.0 V to
– 40 ˚C to
3.6 V
+85 ˚C
No suggested replacement part
FM25V05
40 MHz
FM25V20A
40 MHz
FM25VN10
FM25V10
40 MHz
2.0 V to
– 40 ˚C to
3.6 V
+85 ˚C
2.0 V to
– 40 ˚C to
3.6 V
+85 ˚C
2.0 V to
– 40 ˚C to
3.6 V
+85 ˚C
VCC =
1024 Kb
2.7 V
to 3.6 V
16-pin SOIC
CY14V101Q3
40 MHz
VCCQ =
– 40 ˚C to
+ 85 ˚C
No suggested replacement part
1.65 V
to 1.95 V
The suggested SPI F-RAM parts are similar to the SPI nvSRAM parts in their features and access protocols,
operating conditions, density, and package type, but they are not identical and pin-for-pin drop-in replacements.
Therefore, you need to be aware of the differences when replacing an SPI nvSRAM with an SPI F-RAM. This
application note discusses the similarities and differences between the two to assist you during the migration.
www.cypress.com
Document No. 002-02493 Rev **
2
Migrating from SPI nvSRAM to SPI F-RAM™
2
SPI nvSRAM and SPI F-RAM Compatibility
This section discusses the similarities and differences between SPI nvSRAMs and SPI F-RAMs with respect to
attributes such as pin and package, commands (opcode), features and specifications, hardware, and firmware.
Review these attributes and make the necessary changes in your design.
2.1
Pin Compatibility
All I/O pins except Pin 3 match between SPI nvSRAM and SPI F-RAM, as described in Table 2. Pin 3 is the write
protect (WP) pin in SPI F-RAM, while it is the VCAP pin in SPI nvSRAM in the CY14xxxxQ2x/CY14xxxxQ2xA
packages. The SPI nvSRAM pinout in the CY14xxxxQ1x/CY14xxxxQ1xA packages is identical to that in the SPI
F-RAM 8-pin package.
Table 2. Pin Comparison
Pin No
nvSRAM Pin
(CY14xxxxQ1x/
CY14xxxxQ1xA)
nvSRAM Pin
(CY14xxxxQ2x/
CY14xxxxQ2xA)
F-RAM Pin
(FM25xxxx)
1
CS
CS
CS
Chip Select: Activates the device when pulled LOW.
Driving this pin HIGH puts the device in low-power
standby mode.
2
SO
SO
SO
Serial Output: Pin for output of data through SPI.
Pin Description
Write Protect: Implements hardware write protection in
SPI.
2.2
AutoStore Capacitor: Supplies power to the nvSRAM
during power loss to STORE data from the SRAM to
nonvolatile elements. If AutoStore is not needed, the VCAP
pin must be left as NC (no connect). It must never be
connected to ground.
3
WP
VCAP
WP
4
VSS
VSS
VSS
Ground
5
SI
SI
SI
Serial Input: Pin for input of all SPI instructions and data.
Serial Clock: Runs at speeds up to a maximum of the SPI
clock frequency (fSCK). Serial input is latched at the rising
edge of the clock. Serial output is driven at the falling
edge of the clock.
6
SCK
SCK
SCK
7
HOLD
HOLD
HOLD
8
VCC
VCC
VDD
HOLD Pin: Suspends serial operation.
Power supply
Package Compatibility
This section describes the SPI nvSRAM and SPI F-RAM package compatibility for migration. Table 3 lists the
packages, package dimensions, and applicability to SPI nvSRAMs and SPI F-RAMs.
Table 3. Package Comparison
Package,
Spec No.
Length
(mm)
Width
(mm)
Height
(mm)
Pitch
(mm)
Exposed Pad
(mm)
SPI nvSRAM
SPI
F-RAM
8-pin SOIC,
51-85066
4.89 ±
0.09
6.02 ± 0.18
1.64 ± 0.09
1.27
NA
√
√
8-pin DFN,
001-85260
4.5 ± 0.10
4.0 ± 0.10
0.75 ± 0.05
0.95
L = 3.6 ± 0.10
W = 2.6 ± 0.10
NA
√
www.cypress.com
Document No. 002-02493 Rev **
3
Migrating from SPI nvSRAM to SPI F-RAM™
2.2.1
Package,
Spec No.
Length
(mm)
Width
(mm)
Height
(mm)
Pitch
(mm)
Exposed Pad
(mm)
SPI nvSRAM
SPI
F-RAM
8-pin DFN,
001-85579
5.0 ± 0.10
6.0 ± 0.10
0.75 ± 0.05
1.27
L = 4.0 ± 0.10
W = 2.3 ± 0.10
NA
√
8-pin DFN,
001-50671
5.0 ± 0.10
6.0 ± 0.10
0.75 ± 0.05
1.27
L = 4.0 ± 0.10
W = 3.0 ± 0.10
√
NA
8-Pin SOIC Package
All SPI nvSRAM 8-pin SOIC package dimensions (see Figure 1) are identical to those of the SPI F-RAM 8-pin
package. Therefore, migrating from SPI nvSRAM to SPI F-RAM does not require a package footprint update in the
PCB layout.
Figure 1. 8-Pin SOIC (150 Mils) Package Outline, 51-85066
ALL DIMENSIONS ARE IN INCHES
MIN.
(MILLIMETERS)
.
MAX.
2.2.2
8-Pin DFN Package
The SPI nvSRAM 8-pin DFN package (see Figure 2) dimensions are not identical to those of the SPI F-RAM 8-pin
DFN package (see Figure 3 and Figure 4) for all density options. Therefore, migrating from SPI nvSRAM to SPI
F-RAM may require a package footprint change in the PCB layout. Refer to Table 3 for the DFN package footprint
differences between SPI nvSRAM and the suggested SPI F-RAM replacement part.
www.cypress.com
Document No. 002-02493 Rev **
4
Migrating from SPI nvSRAM to SPI F-RAM™
Figure 2. SPI nvSRAM 8-Pin DFN (5 × 6 × 0.85 mm) Package Outline, 001-50671
Exposed Pad
ALL DIMENSIONS ARE IN MILLIMETERS.
Figure 3. SPI F-RAM 8-Pin DFN (5 × 6 × 0.75 mm) Package Outline, 001-85579
Exposed Pad
ALL DIMENSIONS ARE IN MILLIMETERS.
www.cypress.com
Document No. 002-02493 Rev **
5
Migrating from SPI nvSRAM to SPI F-RAM™
Figure 4. F-RAM 8-Pin DFN (4.0 × 4.5 × 0.8 mm) Package Outline, 001-85260
Exposed Pad
ALL DIMENSIONS ARE IN MILLIMETERS.
Note: The SPI F-RAM exposed pad is not connected to the die and hence should be left floating. Ensure that the
exposed pad of the SPI F-RAM DFN package is not soldered on the PCB when migrating. Soldering it will cause the
SPI F-RAM die to be exposed to excessive heat, which can result in bit failures and margin loss.
2.3
Command (Opcode) Compatibility
Table 4 compares the SPI nvSRAM and SPI F-RAM opcodes.
Table 4. Command (Opcode) Comparison
Command
Opcode
(Hex)
Command
Description
SPI
nvSRAM
SPI
F-RAM
WREN
06h
Set write enable latch
√
√
WRDI
04h
Reset write enable
latch
√
√
RDSR
05h
Read Status Register
√
√
WRSR
01h
Write Status Register
√
√
READ
03h
Read memory data
√
√
WRITE
02h
Write memory data
√
√
0Bh
Fast read memory
data
FSTRD
www.cypress.com
Comments
Identical features between SPI nvSRAM and
SPI F-RAM.
Supported in all 128-Kb and above F-RAM
densities.
√
√
Document No. 002-02493 Rev **
Supported in revision “A” silicon of SPI
nvSRAM CY14xxxxQxA with SPI access
above 40 MHz SPI.
6
Migrating from SPI nvSRAM to SPI F-RAM™
Command
Opcode
(Hex)
Command
Description
SPI
nvSRAM
SPI
F-RAM
Comments
Supported in all 128-Kb and above F-RAM
densities.
SLEEP
B9h
Enter sleep mode
√
√
Supported in revision “A” silicon of SPI
nvSRAM CY14xxxxQxA.
Refer to the Sleep Mode (SLEEP) Command
section for details on the SLEEP command
differences between SPI nvSRAM and SPI
F-RAM.
Supported in all 128-Kb and above F-RAM
densities.
RDID
9Fh
Read device ID
√
√
Supported in revision “A” silicon of SPI
nvSRAM CY14xxxxQxA.
Refer to the Read Device ID (RDID)
Command section for details on the RDID
command differences between SPI nvSRAM
and SPI F-RAM.
Supported only in F-RAM with the unique
serial number feature (FM25VN10).
RDSN/
SNR
C3h
Read serial number
√
√
Supported in revision “A” silicon of SPI
nvSRAM CY14xxxxQxA.
Refer to the Read Serial Number (RDSN,
SNR) Command section for details on the
RDSN command differences between SPI
nvSRAM and SPI F-RAM.
Supported in revision “A” silicon of SPI
nvSRAM CY14xxxxQxA. Not supported in
SPI F-RAM.
Applications using the write serial number
(WRSN) feature in SPI nvSRAM cannot
migrate to SPI F-RAM.
WRSN
C2h
Write serial number
√
X
STORE
3Ch
Software STORE
√
X
RECALL
60h
Software RECALL
√
X
ASENB
59h
AutoStore Enable
√
X
ASDISB
19h
AutoStore Disable
√
X
FAST_RDSR
09h
Fast Status Register
read
√
X
FAST_RDID
FAST_RDSN
www.cypress.com
99h
C9h
Fast read device ID
Fast serial number
read
√
√
X
X
Document No. 002-02493 Rev **
You can implement the serial number write
by reserving an 8-byte space in the main
memory array. However, this reserved space
cannot be made “read only,” unlike in SPI
nvSRAM, by setting the SNL bit in the Status
Register to make the serial number read
only.
These are SPI nvSRAM specific commands.
They are undefined opcodes for the SPI
F-RAM and will be ignored when executed.
Refer to the nvSRAM Special Features
section for details on these commands and
their use considerations when migrating to
SPI F-RAM.
Supported in revision “A” silicon of SPI
nvSRAM CY14xxxxQxA with SPI access
above 40 MHz SPI.
These are undefined opcodes for the SPI
F-RAM and will be ignored when executed.
7
Migrating from SPI nvSRAM to SPI F-RAM™
2.4
Status Register Compatibility
Status Register access in SPI nvSRAM and SPI F-RAM is identical. However, some “don‟t care” bits in the SPI
nvSRAM are writeable, while they are read-only bits in SPI F-RAM. Table 5 shows the Status Register bit definitions
for the two parts and their compatibility.
Table 5. Status Register Comparison
Status Register
SPI nvSRAM
SPI F-RAM
Bit0
RDY#
Don‟t care
Comments
Read-only bit indicates the ready status of the device to perform
a memory access. This bit is set to „1‟ by the device while a
STORE or Software RECALL cycle is in progress.
This is a don‟t care bit in SPI F-RAM.
Bit1
WEN
WEL
Bit2
BP0
BP0
Bit3
BP1
BP1
Bit4
Don‟t care
Don‟t care
Identical behavior in SPI nvSRAM (Rev “A” silicon) and SPI FRAM. These bits are read only and always return „0‟ upon read.
Bit5
Don‟t care
Don‟t care
Bits are writeable and volatile in the first revision of SPI nvSRAM
(CY14xxxxQx). On power up, bits are written with „0‟.
Identical behavior in SPI nvSRAM and SPI F-RAM
Set to '1' to lock the serial number written using the special
WRSN command in revision “A” silicon of SPI nvSRAM
CY14xxxxQxA.
Bit6
SNL
Don‟t care
This bit is writeable and is volatile in the first revision of SPI
nvSRAM (CY14xxxxQx). On power up, it is written with „0‟.
This bit is the read-only bit in 256-Kb SPI F-RAMs and always
returns „0‟ upon read. SPI F-RAMs of 512 Kb and above return „1‟
upon read.
Bit7
WPEN
WPEN
Identical behavior in SPI nvSRAM and SPI F-RAM
Note: Bits 4 to 6 are don‟t care bits for SPI F-RAM. The default value of these three bits can be ignored when
migrating from SPI nvSRAM to SPI F-RAM.
www.cypress.com
Document No. 002-02493 Rev **
8
Migrating from SPI nvSRAM to SPI F-RAM™
2.5
Device Spec Compatibility
Table 6, Table 7, and Table 8 list all the spec differences between the two parts. A few parameters warrant some
system-level analysis before replacing SPI nvSRAM with SPI F-RAM. These include output load, startup time, and
power ramp (power up and power down). Figure 5 and Figure 6 depict the power cycle timing of SPI nvSRAM and
SPI F-RAM respectively.
Table 6. DC Parameter Comparison
Parameter
Description
SPI nvSRAM
VDD
Power supply
voltage
2.7 V to 3.6 V
VIH
Input high voltage
4.5 V to 5.5 V
SPI F-RAM
2.0 V to 3.60 V
2.7 V to 3.65 V
4.5 V to 5.5 V
2.0 V to
0.7 x VDD to
VCC + 0.5 V
VDD + 0.3 V
Comments
SPI F-RAM operating range is wider than
that of SPI nvSRAM. Therefore, migrating
from SPI nvSRAM to SPI F-RAM does not
require any change in the power supply
voltage.
The VIH (min) of SPI F-RAM follows the
CMOS logic level and is proportional to the
input power supply (VDD). The VIH (min) of
SPI nvSRAM is a fixed level at a minimum of
2.0 V. Hence, you must evaluate the VIH
(min) compatibility when migrating to SPI
F-RAM.
The VIH (max) of SPI F-RAM is VDD + 0.3 V,
while it is VCC + 0.5 V for SPI nvSRAM. This
limits the overshoot voltage at SPI F-RAM
input pins and should be adjusted when
migrating.
VIL
Input low voltage
–0.5 V to 0.8 V
–0.3 V to 0.3 x
VDD
The VIL (max) of SPI F-RAM follows the
CMOS logic level and is proportional to the
input power supply (VDD). The VIL (max) of
SPI nvSRAM is a fixed level at a maximum
of 0.8 V. Hence, you must evaluate the VIL
(max) compatibility when migrating to SPI
F-RAM.
The VIL (min) of SPI F-RAM is –0.3 V, while it
is –0.5 V for SPI nvSRAM. This limits the
undershoot voltage at SPI F-RAM input pins
and should be adjusted when migrating.
CY14xxxxQ1/
CY14xxxxQ2:
2.0 V (min)
IOUT = –2 mA
2.4 V (min)
VOH
Output high voltage
CY14xxxxQ1A/
CY14xxxxQ2A:
IOH = –1 mA
2.4 V (min)
VDD – 0.8 V (min)
For VCC = 3 V
(typical)
IOH = –2 mA
IOUT = –2 mA
VDD – 0.2 V (min)
No change is required when migrating from
SPI nvSRAM to SPI F-RAM in a typical
system configuration.
However, a heavily loaded system bus must
ensure that VOH remains within the logic
levels for inputs.
IOH = –100 µA
VCC –0.4 V (min)
For VCC = 5 V
(typical)
IOUT = -2 mA
www.cypress.com
Document No. 002-02493 Rev **
9
Migrating from SPI nvSRAM to SPI F-RAM™
Parameter
Description
SPI nvSRAM
SPI F-RAM
0.4 V (max)
VOL
0.4 V (max)
Output low voltage
IOUT = 4.0 mA
IOL = +2 mA
0.2 V (max)
IOL = +150 µA
VVCAP
VVCAP
Storage capacitor
42 µF to 180 µF
No change is required when migrating from
SPI nvSRAM to SPI F-RAM in a typical
system configuration.
However, a heavily loaded system bus must
ensure that VOL remains within the logic
levels for inputs.
NA
This is an nvSRAM specific pin for the
AutoStore operation. This pin/function and
associated parameters are not applicable to
SPI F-RAM.
VCC (max) for
3 V (typical)
Maximum voltage
driven on VCAP pin
by the device
Comments
NA
VCC – 0.5 V (max)
for
5 V (typical)
Note: All other DC parameters (except current parameters) not listed in Table 6 are equivalent. Since F-RAM is an
energy-efficient nonvolatile memory technology, all DC current specifications for SPI F-RAM are better than those for
SPI nvSRAM.
Table 7. AC Parameter Comparison
SPI nvSRAM
SPI F-RAM
Parameter Description
Units
Parameter
Min
Max
Parameter
40
fSCK
Min
Comments
Max
Clock frequency, SCK
fSCK
Clock HIGH time
tCH
11
tCH
11
ns
Clock LOW time
tCL
11
tCL
11
ns
Chip select setup
tCSS
10
tCSU
10
ns
Chip select hold
tCSH
10
tCH
10
ns
Output disable time
tHZCS
20
tOD
12
ns
SPI F-RAM output disables
faster than that of SPI
nvSRAM. There is no impact
when migrating to SPI F-RAM.
Output data valid time
tCO
9
tODV
9
ns
Identical
Output hold time
tOH
ns
Identical
ns
This timing is higher for SPI
F-RAM. You should evaluate
and adjust this parameter
accordingly when migrating to
SPI F-RAM.
CS HIGH time
tCS
0
20
Data in rise time
40
tOH
tD
0
40
MHz
tR
50
ns
tF
50
ns
Not specified
Data in fall time
Identical
Not specified in SPI nvSRAM.
You should evaluate and
adjust this parameter
accordingly when migrating to
SPI F-RAM.
Data setup time
tSD
5
tSU
5
ns
Identical
Data hold time
tHD
5
tH
5
ns
Identical
www.cypress.com
Document No. 002-02493 Rev **
10
Migrating from SPI nvSRAM to SPI F-RAM™
SPI nvSRAM
SPI F-RAM
Parameter Description
Units
Parameter
Min
Max
Parameter
Min
HOLD setup time
tSH
5
tHS
10
ns
HOLD time
tHH
5
tHH
10
ns
HOLD LOW to HI-Z
tHHZ
15
tHZ
20
ns
HOLD HIGH to data active
tHLZ
15
tLZ
20
ns
Comments
Max
This timing is higher for SPI
F-RAM. You should evaluate
and adjust this parameter
accordingly when migrating to
SPI F-RAM.
Table 8. Power Parameter Comparison
SPI nvSRAM
SPI F-RAM
Parameter Description
Parameter
Power-up RECALL
duration
Min
Max
Parameter
Min
Comments
ms
No impact when migrating
to SPI F-RAM. System
can optimize firmware to
improve system
performance.
tFA
20
STORE cycle duration
tSTORE
8
ms
Time allowed to complete
SRAM write cycle
tDELAY
25
ms
2.65
V
4.4
V
VSWITCH
(3 V)
tPU
Units
Max
1
Low-voltage trigger level
VSWITCH
(5 V)
VCC rise time
tVCCRISE
150
Not specified
VDD power-up ramp rate
tVR
Not specified
VDD power-down ramp rate
Last access ( CS HIGH) to
power down VDD (min)
Time for nvSRAM to wake
up from sleep mode
Time to enter sleep mode
after issuing SLEEP
instruction
Time to enter standby
mode after CS going HIGH
www.cypress.com
tWAKE
20
tSLEEP
8
tSB
100
µs
50
These are nvSRAM
specific parameters and
are not applicable to SPI
F-RAM.
No impact when migrating
to SPI F-RAM. System
can optimize firmware to
improve system
performance.
This spec is indirectly
associated with the SPI
F-RAM tVR spec.
µs/V
SPI nvSRAM does not
impose any restriction on
the VCC ramp rate.
tVF
100
µs/V
When migrating to SPI
F-RAM, you must ensure
that the SPI F-RAM VDD
power ramp rate is within
its specified limit.
tPD
0
µs/V
No impact when migrating
to SPI F-RAM
ms
No impact when migrating
to SPI F-RAM. System
can optimize firmware to
improve system
performance.
ms
SPI F-RAM enters sleep
as soon as CS toggles
LOW to HIGH after the
SLEEP command is
entered.
µs
No impact when migrating
to SPI F-RAM
tREC (tRDP)
0.45
NA
Not specified
Document No. 002-02493 Rev **
11
Migrating from SPI nvSRAM to SPI F-RAM™
Figure 5. SPI nvSRAM Power Cycle Timing
Figure 6. SPI F-RAM Power Cycle Timing
3
Hardware Compatibility
SPI nvSRAMs support two pin configurations for the 8-pin SOIC and 8-pin DFN packages, as shown in Figure 7 and
Figure 8 .
3.1
SPI nvSRAM with WP (CY14xxxxQ1 and CY14xxxxQ1A) Pin Layout
The two SPI nvSRAM package pin layouts shown in Figure 7 are identical to the SPI F-RAM pin layout. The SPI
F-RAM pin layout shown in Figure 9 is a pin-for-pin drop-in replacement when migrating from SPI nvSRAM to SPI
F-RAM.
Figure 7. SPI nvSRAM with WP (CY14xxxxQ1 and CY14xxxxQ1A)
SPI nvSRAM
(Rev A)
CY14xxxxQ1A
8-pin SOIC
www.cypress.com
SPI nvSRAM
(Rev 0)
CY14xxxxQ1
8-pin DFN
Document No. 002-02493 Rev **
12
Migrating from SPI nvSRAM to SPI F-RAM™
3.2
SPI nvSRAM with VCAP (AutoStore) (CY14xxxxQ2 and CY14xxxxQ2A) Pin Layout
The two SPI nvSRAM package pin layouts shown in Figure 8 are identical to the SPI F-RAM pin layout (except for the
VCAP pin). The SPI F-RAM pin layout is shown in Figure 9.
Figure 8. SPI nvSRAM with AutoStore (CY14xxxxQ1 and CY14xxxxQ1A)
SPI nvSRAM
(Rev 0)
CY14xxxxQ2
8-pin DFN
SPI nvSRAM
(Rev A)
CY14xxxxQ2A
8-pin SOIC
It will be a pin-for-pin drop-in replacement (except for the VCAP pin) when migrating from SPI nvSRAM to SPI F-RAM.
The VCAP pin on the SPI nvSRAM package is the hardware write protect (WP) pin for SPI F-RAM. The WP pin is an
input pin and is not biased internally; therefore, this pin remains floating when not connected on the PCB. When
migrating to SPI F-RAM on the same footprint, you must ensure that the WP pin is properly biased for a successful
operation. When the WP is biased at logic HIGH, it enables the Status Register write. When the WP pin is biased at
logic LOW, it disables the Status Register write (write protect) when the WPEN bit in the Status Register is also set to
„1‟.
3.3
SPI F-RAM Pin Layout
The SPI F-RAM provides only one pin layout option for both the 8-pin SOIC and 8-pin DFN packages, as shown in
Figure 9.
Figure 9. SPI F-RAM Pin Layout
SPI F-RAM
8-pin SOIC
SPI F-RAM
8-pin DFN
The 8-pin SOIC package footprint for SPI F-RAM is identical to that of SPI nvSRAM. Therefore, migrating to SPI
F-RAM does not require the package PCB footprint to change.
The 8-pin DFN package dimension for the SPI F-RAM can vary from that of the SPI nvSRAM 8-pin DFN as discussed
in the Package Compatibility section. Therefore, migrating from the SPI nvSRAM 8-pin DFN to the SPI F-RAM 8-pin
DFN is not always a drop-in replacement and will require the PCB layout to change if the package dimensions are
different.
Note: Replacing SPI nvSRAM with the VCAP option will require the hardware schematic and layout to be updated to
either connect the controller I/O to control the WP pin of SPI F-RAM or connect an external pull-up on WP to keep the
pin HIGH to disable the write protect if not used.
www.cypress.com
Document No. 002-02493 Rev **
13
Migrating from SPI nvSRAM to SPI F-RAM™
4
Firmware Compatibility
The SPI host controller firmware for SPI nvSRAM access will work as is for SPI F-RAM except for the nvSRAM
special features. The nvSRAM special features such as AutoStore, AutoStore Enable, AutoStore Disable, software
STORE, and software RECALL are not applicable to SPI F-RAM. In nvSRAM, data is first written to SRAM and then
transferred to nonvolatile cells during AutoStore or software STORE. In F-RAM, data is nonvolatile instantaneously;
hence, these features are not relevant.
4.1
Sleep Mode (SLEEP) Command
On the lower density SPI F-RAMs (64 Kb and below), the standby current is equivalent or lower than the sleep mode
current (sleep mode current (IZZ) of SPI) of SPI nvSRAM. Hence, the sleep mode is not provided in the lower density
SPI F-RAM devices. The sleep mode is offered in the 128-Kb and above density SPI F-RAMs, and the sleep mode
(SLEEP) command execution is similar to that of the SPI nvSRAM SLEEP command. However, the sleep mode entry
timing and wake timing differ between the two, as shown in Figure 10 and Figure 11.
Figure 10. SPI nvSRAM SLEEP Command
Figure 11. SPI F-RAM SLEEP Command
Notes:

SPI nvSRAM takes about 8 ms (tSLEEP, max) after the SLEEP command is registered to enter sleep. SPI F-RAM
enters sleep at the CS rising edge. The 8-ms tSLEEP wait time is not required in SPI F-RAM. This can be an
improvement when migrating from SPI nvSRAM to SPI F-RAM.

SPI nvSRAM takes about 20 ms (tWAKE, max) to wake up from sleep after CS is toggled LOW. SPI
F-RAM takes about 450 µs (tREC, max) to wake up from sleep after CS is toggled LOW. The SPI F-RAM wakeup
performance is superior to that of SPI nvSRAM, and this can be an improvement when migrating from SPI
nvSRAM to SPI F-RAM.
www.cypress.com
Document No. 002-02493 Rev **
14
Migrating from SPI nvSRAM to SPI F-RAM™
4.2
Read Device ID (RDID) Command
The read Device ID feature is not available in all SPI F-RAMs with 64 Kb and lower densities. These devices will
ignore the read device ID (RDID) command like any other unsupported SPI commands. All SPI F-RAMs with 128 Kb
and above densities support the read Device ID command similar to the SPI nvSRAM. However, the RDID output
differs between the two devices. The SPI nvSRAM returns a 4-byte ID, while SPI F-RAM returns a 9-byte ID. When
migrating from SPI nvSRAM to SPI F-RAM, the firmware needs to be updated to read the 9-byte ID from SPI F-RAM.
Refer to Figure 12 and Figure 13 for details.
Figure 12. Read Device ID in SPI nvSRAM
Figure 13. Read Device ID in SPI F-RAM
4.3
Read Serial Number (RDSN, SNR) Command
The read serial number (SNR) feature is available only in the 1-Mb, 3-V SPI F-RAM (FM25VN10). The other F-RAMs
will ignore the read SNR command like any other unsupported SPI commands. The serial number in nvSRAM is user
writeable with the write serial number (WRSN) command, but in SPI F-RAM, it is a factory-programmed read-only
number. The instruction to read the serial number is identical between the two, as shown in Figure 14. Migrating from
SPI nvSRAM to SPI F-RAM does not require any firmware change.
www.cypress.com
Document No. 002-02493 Rev **
15
Migrating from SPI nvSRAM to SPI F-RAM™
Figure 14. Read Serial Number (SPI nvSRAM and SPI F-RAM)
4.4
nvSRAM Special Features
The firmware for SPI nvSRAM may contain extra logic due to nvSRAM-specific features such as AutoStore, software
STORE, software RECALL, AutoStore Enable, and AutoStore Disable. This extra logic can be removed when
migrating to SPI F-RAM.
4.4.1
AutoStore
AutoStore is a unique feature of nvSRAM that automatically stores SRAM data to SONOS cells during power down.
This STORE uses an external capacitor (VCAP) and enables the device to safely STORE the data in the nonvolatile
memory when power goes down. When migrating to SPI F-RAM, the capacitor on the VCAP pin is replaced by the WP
pin of the SPI F-RAM. No firmware update is required when migrating to SPI F-RAM.
4.4.2
Software STORE
Software STORE is a unique feature of nvSRAM to trigger a STORE operation through a special SPI instruction. The
nonvolatile STORE operation is initiated by executing a STORE instruction. This feature is used when nvSRAM
AutoStore is disabled through a special ASDISB command and the system uses the Software STORE command to
save SRAM data to nonvolatile memory on demand. The system using this nvSRAM special feature cannot migrate
to SPI F-RAM. However, a majority of applications use the nvSRAM AutoStore feature for data logging.
4.4.3
Software RECALL
Software RECALL is a unique feature of nvSRAM that allows you to initiate a RECALL operation to restore the
content of nonvolatile memory to the SRAM. This is done by issuing a RECALL instruction. This feature is used in
applications in which the possibility of soft errors is high, and systems use RECALL to overwrite the affected SRAM
content with good data. Since SPI F-RAM soft error rate (SER) performance is superior to that of SPI nvSRAM,
migrating to SPI F-RAM can achieve the same SER performance without requiring any firmware change. SPI F-RAM
will ignore the software RECALL command.
4.4.4
AutoStore Enable and AutoStore Disable
AutoStore Enable (ASENB) and AutoStore Disable (ASDISB) are SPI commands to enable and disable the
AutoStore operation in SPI nvSRAM. Since SPI F-RAM does not support the AutoStore feature, these two commands
are don‟t care commands for the SPI F-RAM and will be ignored. Migrating from SPI nvSRAM to SPI F-RAM does not
require any firmware change for these two features.
5
Summary
This application note discussed the options for migrating from SPI nvSRAM to SPI F-RAM devices. A few differences
between the two devices in terms of package parameters, features, opcodes, and electrical parameters need to be
considered when migrating. The majority of designs that use the specified SPI nvSRAM devices, however, can
migrate to SPI F-RAM with a few hardware and software changes.
www.cypress.com
Document No. 002-02493 Rev **
16
Migrating from SPI nvSRAM to SPI F-RAM™
Document History
Document Title: AN202493 - Migrating from SPI nvSRAM to SPI F-RAM™
Document Number: 002-02493
Revision
**
ECN
5054662
www.cypress.com
Orig. of
Change
Submission
Date
ZSK
12/18/2015
Description of Change
New application note.
Document No. 002-02493 Rev **
17
Migrating from SPI nvSRAM to SPI F-RAM™
Worldwide Sales and Design Support
Cypress maintains a worldwide network of offices, solution centers, manufacturer‟s representatives, and distributors. To find
the office closest to you, visit us at Cypress Locations.
PSoC® Solutions
Products
Automotive
cypress.com/go/automotive
psoc.cypress.com/solutions
Clocks & Buffers
cypress.com/go/clocks
PSoC 1 | PSoC 3 | PSoC 4 | PSoC 5LP
Interface
cypress.com/go/interface
Cypress Developer Community
Lighting & Power Control
cypress.com/go/powerpsoc
Memory
cypress.com/go/memory
PSoC
cypress.com/go/psoc
Touch Sensing
cypress.com/go/touch
USB Controllers
cypress.com/go/usb
Wireless/RF
cypress.com/go/wireless
Community | Forums | Blogs | Video | Training
Technical Support
cypress.com/go/support
PSoC is a registered trademark and F-RAM is a trademark of Cypress Semiconductor Corp. All other trademarks or registered trademarks referenced
herein are the property of their respective owners.
Cypress Semiconductor
198 Champion Court
San Jose, CA 95134-1709
Phone
Fax
Website
: 408-943-2600
: 408-943-4730
: www.cypress.com
© Cypress Semiconductor Corporation, 2015. The information contained herein is subject to change without notice. Cypress Semiconductor
Corporation assumes no responsibility for the use of any circuitry other than circuitry embodied in a Cypress product. Nor does it convey or imply any
license under patent or other rights. Cypress products are not warranted nor intended to be used for medical, life support, life saving, critical control or
safety applications, unless pursuant to an express written agreement with Cypress. Furthermore, Cypress does not authorize its products for use as
critical components in life-support systems where a malfunction or failure may reasonably be expected to result in significant injury to the user. The
inclusion of Cypress products in life-support systems application implies that the manufacturer assumes all risk of such use and in doing so indemnifies
Cypress against all charges.
This Source Code (software and/or firmware) is owned by Cypress Semiconductor Corporation (Cypress) and is protected by and subject to worldwide
patent protection (United States and foreign), United States copyright laws and international treaty provisions. Cypress hereby grants to licensee a
personal, non-exclusive, non-transferable license to copy, use, modify, create derivative works of, and compile the Cypress Source Code and derivative
works for the sole purpose of creating custom software and or firmware in support of licensee product to be used only in conjunction with a Cypress
integrated circuit as specified in the applicable agreement. Any reproduction, modification, translation, compilation, or representation of this Source
Code except as specified above is prohibited without the express written permission of Cypress.
Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, WITH REGARD TO THIS MATERIAL, INCLUDING, BUT
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. Cypress reserves the
right to make changes without further notice to the materials described herein. Cypress does not assume any liability arising out of the application or
use of any product or circuit described herein. Cypress does not authorize its products for use as critical components in life-support systems where a
malfunction or failure may reasonably be expected to result in significant injury to the user. The inclusion of Cypress‟ product in a life-support systems
application implies that the manufacturer assumes all risk of such use and in doing so indemnifies Cypress against all charges.
Use may be limited by and subject to the applicable Cypress software license agreement.
www.cypress.com
Document No. 002-02493 Rev **
18