M95256-RMW3G
AI

## Overview of M95256-RMW3G
The **M95256-RMW3G** is a high-performance, electrically erasable programmable memory (EEPROM) manufactured by STMicroelectronics. It is designed for applications requiring non-volatile storage with high endurance and data retention.
---
### 1. Key Technical Specifications
| Feature | Specification |
| :--- | :--- |
| **Memory Size** | 256 Kbit (32,768 x 8 bits) |
| **Interface** | SPI (Serial Peripheral Interface) |
| **Max Clock Frequency** | 20 MHz (at 4.5V - 5.5V) / 5 MHz (at 1.8V) |
| **Operating Voltage (Vcc)** | 1.8V to 5.5V |
| **Package Type** | SO8N (150 mil width) |
| **Temperature Range** | -40°C to +125°C (Automotive Grade 3) |
| **Endurance** | 4 Million write cycles |
| **Data Retention** | 200 Years |
---
### 2. Functional Pins Description
The device uses a standard 8-pin configuration common for SPI EEPROMs:
* **S (Chip Select):** Activates the device when pulled low.
* **D (Serial Data Input):** Used to transfer data into the device.
* **Q (Serial Data Output):** Used to read data out of the device.
* **C (Serial Clock):** Provides the timing for the serial interface.
* **W (Write Protect):** Hardware protection to prevent write operations to the status register.
* **HOLD (Hold):** Pauses communication without deselecting the device.
* **Vcc/Vss:** Power supply and Ground.
---
### 3. Core Features
* **Byte and Page Write:** Supports writing a single byte or a page of up to 64 bytes in a single instruction.
* **Write Protection:** Includes flexible software protection (SRWD bit) and hardware protection (W pin) for specific memory blocks.
* **Enhanced Reliability:** The "3G" suffix indicates a specific process technology and automotive-grade qualification, ensuring stability in harsh environments.
* **Low Power Consumption:** Optimized for battery-powered applications with low standby and active currents.
---
### 4. Part Number Breakdown: M95256-RMW3G
```text
M95 - Family (SPI EEPROM)
256 - Density (256 Kbit)
-R - Operating Voltage (1.8V to 5.5V)
MW - Package (SO8N, 150 mil width)
3 - Temperature Range (-40 to +125 °C)
G - RoHS Compliant / Halogen Free
```
- ⤷
How does the SPI mode 0 and mode 3 compatibility work for this chip?
- ⤷ What are the specific write-protection modes available for the memory array?
- ⤷ Can you provide a code example for initializing this EEPROM using an MCU?