1. Overview
️· Device: GD25LD80C (a serial flash memory device)
️· Key Features:
- Serial Peripheral Interface (SPI)
- Multiple operating modes (read, program, erase)
- Hardware protection mode
- Fast read modes
2. Command Set
This section describes the available commands and their sequences. Here's a breakdown of each with what they do:
️· Write Enable (WREN) (06H): Sets the Write Enable Latch (WEL) to 1. Required before any programming or status write operations.
️· Write Disable (WRDI) (04H): Resets the Write Enable Latch (WEL) to 0.
️· Read Status Register (RDSR) (05H): Reads the contents of the Status Register. Used to check operation status, especially the Write In Progress (WIP) bit.
️· Write Status Register (WRSR) (01H): Allows writing to the Status Register. Can change block protection settings and enable/disable hardware protection. Requires a preceding WREN command.
️· Read Data Bytes (READ) (03H): Reads data from memory. Supports sequential reads.
️· Fast Read (0BH): Reads data at a higher speed than the standard Read command.
️· Dual Output Fast Read (3BH): Reads data at a higher speed and outputs 2 bits per clock cycle (dual output).
️· Page Program (PP) (02H): Programs (writes) data to the flash memory. Requires a WREN command. Supports partial page programming.
3. Detailed Command Sequences & Considerations
️· Page Program (PP):
- Requires WREN first.
- Sends command code (02H), 3-byte address, then data.
- More than 256 bytes sent: Only the last 256 bytes are programmed (previous ones are discarded).
- Less than 256 bytes sent: Entire data is programmed to the specified addresses.
- CS must stay low during the entire sequence.
- After the last data byte, CS goes high.
- A self-timed program cycle begins (duration tPP).
- WEL is reset after the program cycle.
- Cannot program pages protected by block protection.
4. Status Register Bits (Important for Understanding Behavior)
️· WEL (Write Enable Latch): Must be set to 1 before any program, erase, or status write operation.
️· WIP (Write In Progress): Indicates whether a program or erase cycle is currently in progress.
️· SRP (Status Register Protect): Part of hardware protection.
️· BP2, BP1, BP0 (Block Protect bits): Used to define read-only areas.
️· S6, S5: Always read as 0.
5. Operating Conditions/Timing
️· CS (Chip Select): Must be low during most commands.
️· DI (Data Input): Serial data input.
️· DO (Data Output): Serial data output.
️· SCK (Serial Clock): Clock signal for serial communication.
️· fR: Maximum read frequency.
️· fC: Maximum clock frequency for Fast Read.
️· tPP: Duration of the Page Program cycle.
️· tW: Duration of the Write Status Register cycle.
6. Identification
️· Provides a table showing the Operation Code, M7-M0, ID15-ID8 and ID7-ID0 values for the chip.
Key Takeaways & Important Reminders
️· WREN is essential: You almost always need to issue a WREN command before programming or writing to the status register.
️· CS must stay low: Chip Select (CS) must be low for most operation sequences.
️· Understand WIP: The WIP bit is critical for determining when a write operation is complete before sending another command.
️· Page Programming limitations: Be aware of the 256-byte limit for page programming.
️· Block protection: The block protect bits define read-only areas.