arduino-dataflash
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Status register format.

The status register can be used to determine device state (ready/busy) or to retrieve the result of an operation. More...

Macros

#define AT45_READY   0x80
 Ready/busy status is indicated using bit 7 of the status register.
 
#define AT45_COMPARE   0x40
 Result of the most recent Memory Page to Buffer Compare operation.
 
#define AT45_PROTECT   0x02
 Bit 1 in the Status Register is used to provide information to the user whether or not the sector protection has been enabled or disabled, either by software-controlled method or hardware-controlled method.
 
#define AT45_PAGESIZE_PWR2   0x01
 Bit 0 indicates whether the page size of the main memory array is configured for "power of 2" binary page size (512 bytes) (bit=1) or standard Dataflash page size (528 bytes) (bit=0).
 
#define AT45_SIZE_CODE   0x2C
 Bits 5, 4, 3 and 2 indicates the device density.
 

Detailed Description

The status register can be used to determine device state (ready/busy) or to retrieve the result of an operation.

Macro Definition Documentation

#define AT45_COMPARE   0x40

Result of the most recent Memory Page to Buffer Compare operation.

If this bit is equal to 0, then the data in the main memory page matches the data in the buffer. If it's 1 then at least 1 byte in the main memory page does not match the data in the buffer.

#define AT45_PAGESIZE_PWR2   0x01

Bit 0 indicates whether the page size of the main memory array is configured for "power of 2" binary page size (512 bytes) (bit=1) or standard Dataflash page size (528 bytes) (bit=0).

#define AT45_PROTECT   0x02

Bit 1 in the Status Register is used to provide information to the user whether or not the sector protection has been enabled or disabled, either by software-controlled method or hardware-controlled method.

1 means that the sector protection has been enabled and 0 that it has been disabled.

#define AT45_READY   0x80

Ready/busy status is indicated using bit 7 of the status register.

If bit 7 is a 1, then the device is not busy and is ready to accept the next command. If bit 7 is a 0, then the device is in a busy state.

#define AT45_SIZE_CODE   0x2C

Bits 5, 4, 3 and 2 indicates the device density.

The decimal value of these four binary bits does not equate to the device density; the four bits represent a combinational code relating to differing densities of Dataflash devices. The device density is not the same as the density code indicated in the JEDEC device ID information. The device density is provided only for backward compatibility.