FM33256/FM3316 SPI Companion w/ FRAM
operation. Sending the WREN op-code will allow
the user to issue subsequent op-codes for write
operations. These include writing the Status
Register, writing the Processor Companion, and
writing the memory.
Command Structure
There are eight commands called op-codes that can
be issued by the bus master to the FM33xx. They are
listed in the table below. These op-codes control the
functions performed by the memory and Processor
Companion. They can be divided into three
categories. First, there are commands that have no
Sending the WREN op-code causes the internal
Write Enable Latch to be set. A flag bit in the Status
Register, called WEL, indicates the state of the
latch. WEL=1 indicates that writes are permitted.
Attempting to write the WEL bit in the Status
Register has no effect on the state of this bit. The
WEL bit will automatically be cleared on the rising
edge of /CS following a WRDI, WRSR, WRPC, or
WRITE op-code. No other op-code affects the state
of the WEL bit. This prevents further writes to the
Status Register, FRAM memory, or the companion
register space without another WREN command.
Figure 13 below illustrates the WREN command
bus configuration.
subsequent operations. They perform
a single
function, such as, enabling a write operation. Second
are commands followed by one data byte, either in or
out. They operate on the Status Register. The third
group includes commands for memory and Processor
Companion transactions followed by address and one
or more bytes of data.
Table 4. Op-code Commands
Name
Description
Op-code
00000110b
00000100b
00000101b
00000001b
00000011b
00000010b
00010011b
00010010b
Set Write Enable Latch
Write Disable
WREN
WRDI
RDSR
WRSR
READ
WRITE
RDPC
WRPC
Read Status Register
Write Status Register
Read Memory Data
Write Memory Data
Read Proc. Companion
Write Proc. Companion
WRDI – Write Disable
The WRDI command disables all write activity by
clearing the Write Enable Latch. The user can verify
that writes are disabled by reading the WEL bit in
the Status Register and verifying that WEL=0.
Figure 14 illustrates the WRDI command bus
configuration.
WREN – Set Write Enable Latch
The FM33xx will power up with writes disabled. The
WREN command must be issued prior to any write
CS
0
1
2
3
4
5
1
6
1
7
0
SCK
SI
0
0
0
0
0
Hi-Z
SO
Figure 13. WREN Bus Configuration
CS
0
1
2
3
4
5
1
6
0
7
0
SCK
0
0
0
0
0
SI
Hi-Z
SO
Figure 14. WRDI Bus Configuration
Rev. 1.0
Dec. 2006
Page 19 of 28