You may also be interested in
Analog converter, Converter, Non-volatile memory, Microcontroller, Microprocessor supervisor
Text version of the page
FM33256/FM3316 SPI Companion w/ FRAM Command Structure WRDI – Write Disable 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 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. 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. Table 4. Op-code Commands Name Description Op-code WRENSet Write Enable Latch 00000110bWRDIWrite Disable 00000100bRDSRRead Status Register 00000101bWRSRWrite Status Register 00000001bREADRead Memory Data 00000011bWRITEWrite Memory Data 00000010bRDPCRead Proc. Companion 00010011bWRPCWrite Proc. Companion 00010010bWREN – Set Write Enable Latch The FM33xx will power up with writes disabled. The WREN command must be issued prior to any write 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. 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, F-RAM memory, or the companion register space without another WREN command. Figure 13 below illustrates the WREN command bus configuration.CSSCKSISO 0 1 2 3 4 5 6 70 0 0 00 1 1 0Hi-ZFigure 13. WREN Bus ConfigurationCSSCKSISO 0 1 2 3 4 5 6 70 0 0 00 1 0 0Hi-ZFigure 14. WRDI Bus ConfigurationRev. 1.1 Dec. 2007 Page 19 of 28 |
|