CY15B016Q
the slave responds through the SO pin. Multiple slave devices
may share the SI and SO lines as described earlier.
these three bits are ‘don’t care’, Cypress recommends that these
bits be set to 0s to enable seamless transition to higher memory
densities.
The CY15B016Q has two separate pins for SI and SO, which can
be connected with the master as shown in Figure 2.
Serial Opcode
For a microcontroller that has no dedicated SPI bus, a
general-purpose port may be used. To reduce hardware
resources on the controller, it is possible to connect the two data
pins (SI, SO) together and tie off (HIGH) the HOLD and WP pins.
Figure 3 shows such a configuration, which uses only three pins.
After the slave device is selected with CS going LOW, the first
byte received is treated as the opcode for the intended operation.
CY15B016Q uses the standard opcodes for memory accesses.
Invalid Opcode
If an invalid opcode is received, the opcode is ignored and the
device ignores any additional serial data on the SI pin until the
next falling edge of CS, and the SO pin remains tristated.
Most Significant Bit (MSB)
The SPI protocol requires that the first bit to be transmitted is the
Most Significant Bit (MSB). This is valid for both address and
data transmission.
Status Register
CY15B016Q has an 8-bit Status Register. The bits in the Status
Register are used to configure the device. These bits are
described in Table 3 on page 7.
The 16-Kbit serial F-RAM requires a 2-byte address for any read
or write operation. Because the address is only 11 bits, the first
five bits which are fed in are ignored by the device. Although
Figure 2. System Configuration with SPI port
SCK
MOSI
MISO
SCK
CY15B016Q
HOLD WP
SCK
CY15B016Q
HOLD WP
SI SO
SI SO
SPI
Microcontroller
CS
CS
C S 1
H O LD 1
W P 1
C S 2
H O LD 2
W P 2
Figure 3. System Configuration without SPI port
P1.0
P1.1
SCK
CY15B016Q
HOLD WP
SI SO
Microcontroller
CS
P1.2
For both these modes, the input data is latched in on the rising
SPI Modes
edge of SCK starting from the first rising edge after CS goes
active. If the clock starts from a HIGH state (in mode 3), the first
rising edge after the clock toggles is considered. The output data
is available on the falling edge of SCK.
CY15B016Q may be driven by a microcontroller with its SPI
peripheral running in either of the following two modes:
■ SPI Mode 0 (CPOL = 0, CPHA = 0)
■ SPI Mode 3 (CPOL = 1, CPHA = 1)
Document Number: 002-10555 Rev. *C
Page 5 of 20