M24C02-RBN6TP
AI

## Overview of M24C02-RBN6TP
The **M24C02-RBN6TP** is a 2-Kbit serial I²C Bus EEPROM (Electrically Erasable Programmable Read-Only Memory) manufactured by **STMicroelectronics**. It is widely used for storing small amounts of data that must be preserved when power is removed, such as configuration settings, device IDs, or calibration data.
---
### 1. Key Technical Specifications
The following table summarizes the primary electrical and operational characteristics of the device:
| Feature | Specification |
| :--- | :--- |
| **Memory Size** | 2 Kbit (256 bytes x 8 bits) |
| **Interface** | I²C (Two-wire serial interface) |
| **Operating Voltage** | 1.8V to 5.5V |
| **Clock Frequency** | 400 kHz (Fast Mode) |
| **Write Cycle Time** | 5 ms (Maximum) |
| **Endurance** | 4 million write cycles |
| **Data Retention** | 200 years |
| **Operating Temp** | -40°C to +85°C |
| **Package** | PDIP8 (Plastic Dual-in-line Package) |
---
### 2. Pinout Configuration
The M24C02-RBN6TP typically comes in an 8-pin package. Each pin serves a specific function for communication or power:
| Pin Number | Name | Description |
| :--- | :--- | :--- |
| 1, 2, 3 | E0, E1, E2 | **Chip Enable:** Used to define the device's I²C address (allows multiple devices on the same bus). |
| 4 | VSS | **Ground:** 0V reference. |
| 5 | SDA | **Serial Data:** Bi-directional pin for data transfer. |
| 6 | SCL | **Serial Clock:** Input for synchronization. |
| 7 | WC | **Write Control:** Hardware protection (if HIGH, write operations are inhibited). |
| 8 | VCC | **Supply Voltage:** 1.8V to 5.5V. |
---
### 3. Functional Features
* **Byte and Page Write:** The device supports writing a single byte or a page of up to 16 bytes.
* **Random and Sequential Read:** Data can be read starting from a specific address or sequentially from the current address.
* **Write Protection:** The `WC` pin provides hardware-level security. When connected to VCC, the entire memory becomes read-only.
* **Low Power Consumption:** It features a very low active current (approx. 2mA) and a standby current of less than 1µA.
---
### 4. Implementation Example (Pseudo-Code)
To interact with the M24C02 via I²C, the following logic is generally applied:
```c
// Example: Writing 0xAA to address 0x10
I2C_Start();
I2C_Send_DeviceAddress(0xA0); // Device ID + Write bit
I2C_Send_WordAddress(0x10); // Memory location
I2C_Send_Data(0xAA); // Data to store
I2C_Stop();
Delay(5ms); // Wait for internal write cycle
```
---
- ⤷
What are the differences between the M24C02 and M24C04 versions?
- ⤷ How do the E0
- ⤷ E1
- ⤷ and E2 pins determine the I2C address?
- ⤷ What happens if the WC pin is left floating in a circuit?