hpaluch-pil / nucleo-93cxx

Attempt to read serial EEPROM 93Cxx using STM32F767ZI-Nucleo board

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to access EEPROM 93LC66C

Here is an attempt how to access contents of 93LC66C and 93LC86 serial EEPROMs (see also 93LC66C PDF and 93LC86 PDF) into RAM of STM NUCLEO-F767ZI development board. Please read my Getting started with ST NUCLEO F767ZI Board for development setup instructions.

WARNING!

Currently this code copies data from EEPROM U1 to EEPROM U2.

Everything on this project is WITHOUT ANY WARRANTY! Use on your own risk!

Known bugs and limitations:

  • it once copies data from U1 to U2 and then loops forever.
  • only 16-bit EEPROM data organization is tested (8-bit data support is programmed but not yet tested)
  • now using micro-second delay code from LonelyWolf STM32 GitHub (the code has been heavily modified for STM32CubeF7 though)

Source tree

The GPIO_IOToggle/ is versioned as overlay (only changed files there) of target directory:

STM32Cube_FW_F7_V1.14.0\Projects\STM32F767ZI-Nucleo\Examples\GPIO\GPIO_IOToggle\ 

For development you need to download and extract en.stm32cubef7.zip from STM32CubeF7:

Connecting 93LC66C and 94LC86 to Nucleo

Currently we are connecting to EEPROMs for debug purposes.

Here is table how the 1st 93LC66C (data source) should be connected to STM NUCLEO-F767ZI:

Nucleo Conn. Nucleo PIN Nucleo Func 93LC66C PIN
CN8 7 +3V3 8 Vcc
CN8 11 GND 5 GND (Vss)
CN10 31 PB0 1 1 CS
CN10 2 PF13 2 CLK
CN10 8 PF14 3 D (input)
CN10 12 PF15 4 Q (output)

  1. The PB0 is also connected to green LED LD1. But it is OK because there is U7 - Op-Amp TSV631 connected to PB0 with high impedance input (no need to worry about CS signal load). See STM32 Nucleo-144 boards, Figure 20. Extension connectors for details.

Here are additional connections for the 2nd EEPROM 93LC86 (data target):

Nucleo Conn. Nucleo PIN Nucleo Func 93LC86 PIN
CN10 24 PE10 1 CS
CN10 26 PE12 2 CLK
CN10 28 PE14 3 D (input)
CN10 30 PE15 4 Q (output)

Current schematic is (made in ExpressSCH 6.1.4 - part of ExpressPCB freeware):

Schematic STM NUCLEO-F767ZI with 93LCxx EEPROMs

Image of STM NUCLEO-F767ZI with 93LCxx EEPROMs

About

Attempt to read serial EEPROM 93Cxx using STM32F767ZI-Nucleo board


Languages

Language:C 100.0%