Back to Esp Idf

README

examples/peripherals/spi_master/hd_eeprom/README.md

6.1-dev1.1 KB
Original Source
Supported TargetsESP32ESP32-C2ESP32-C3ESP32-C5ESP32-C6ESP32-C61ESP32-H2ESP32-H21ESP32-H4ESP32-P4ESP32-S2ESP32-S3

SPI master half duplex EEPROM example

This code demonstrates how to use the SPI master half duplex mode to read/write a AT93C46D EEPROM (8-bit mode). There is also an Kconfig option EXAMPLE_USE_SPI1_PINS allowing use the SPI1 (bus with code Flash connected on official modules).

Connections

For different chip and host used, the connections may be different. Here show a example diagram of hardware connection, you can freely change the GPIO defined in start of main/spi_eeprom_main.c and change the hardware relatively.

ESP32
HostSPI1
VCC3.3V
GNDGND
DO7
DI8
SK6
CS13
ORGGND

Notes

If you meet timeout issues, please check your connections.