|
| 1 | +.. _adafruit_24lc32: |
| 2 | + |
| 3 | +Adafruit 24LC32 EEPROM Shield |
| 4 | +############################# |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +The `Adafruit 24LC32 EEPROM Shield`_ features a `Microchip 24LC32 EEPROM`_ (or |
| 10 | +equivalent) and two STEMMA QT connectors. |
| 11 | +It has a size of 32 kbit (4 kByte). |
| 12 | + |
| 13 | +.. figure:: adafruit_24lc32.webp |
| 14 | + :align: center |
| 15 | + :alt: Adafruit 24LC32 EEPROM Shield |
| 16 | + |
| 17 | + Adafruit 24LC32 EEPROM Shield (Credit: Adafruit) |
| 18 | + |
| 19 | + |
| 20 | +Requirements |
| 21 | +************ |
| 22 | + |
| 23 | +This shield can be used with boards which provide an I2C connector, for |
| 24 | +example STEMMA QT or Qwiic connectors. |
| 25 | +The target board must define a ``zephyr_i2c`` node label. |
| 26 | +See :ref:`shields` for more details. |
| 27 | + |
| 28 | + |
| 29 | +Pin Assignments |
| 30 | +=============== |
| 31 | + |
| 32 | ++--------------+------------------------------+ |
| 33 | +| Shield Pin | Function | |
| 34 | ++==============+==============================+ |
| 35 | +| SDA | 24LC32 I2C SDA | |
| 36 | ++--------------+------------------------------+ |
| 37 | +| SCL | 24LC32 I2C SCL | |
| 38 | ++--------------+------------------------------+ |
| 39 | +| WP | 24LC32 write protection | |
| 40 | ++--------------+------------------------------+ |
| 41 | +| A0 - A2 | 24LC32 I2C address selection | |
| 42 | ++--------------+------------------------------+ |
| 43 | + |
| 44 | +See :dtcompatible:`atmel,at24` for documentation on how to adjust the |
| 45 | +devicetree file, for example to make the EEPROM read-only. |
| 46 | + |
| 47 | + |
| 48 | +Programming |
| 49 | +*********** |
| 50 | + |
| 51 | +Set ``--shield adafruit_24lc32`` when you invoke ``west build``. For example |
| 52 | +when running the :zephyr:code-sample:`eeprom` sample: |
| 53 | + |
| 54 | +.. zephyr-app-commands:: |
| 55 | + :zephyr-app: samples/drivers/eeprom |
| 56 | + :board: adafruit_qt_py_rp2040 |
| 57 | + :shield: adafruit_24lc32 |
| 58 | + :goals: build |
| 59 | + |
| 60 | +.. _Adafruit 24LC32 EEPROM Shield: |
| 61 | + https://learn.adafruit.com/adafruit-24lc32-i2c-eeprom-breakout-32kbit-4-kb |
| 62 | + |
| 63 | +.. _Microchip 24LC32 EEPROM: |
| 64 | + https://www.microchip.com/en-us/product/24lc32 |
0 commit comments