cancel
Showing results for 
Search instead for 
Did you mean: 

I2C and SPI emalution on GPIO pins

vbruno1
Associate III
Posted on May 10, 2016 at 14:35

Hello, I need comunicate with EEPROM, 24, 93 and 95 series EEPROM.

My micro is STM32F103, there is no I2C, SPI pin free to use.

I will emulate these protocol I2C, SPI and Microwire on GPIO pins, always with the same pins, which will have to emulate the protocols.

You know libraries or examples that make these?

Thank you so much!

1 REPLY 1
slimen
Senior
Posted on May 10, 2016 at 15:55

Hello,

You can find this firmware package (

https://my2.st.com/content/my_st_com/en/products/embedded-software/mcus-embedded-software/stm32-embedded-software/stm32cube-expansion-software/x-cube-spi-emul.license%3d1462887532921.html

) which contains the source code of the SPI emulator with all the drivers needed to run the example.

This can can help you in SPI configuration and get inspiration to achieve your goal within STM32F1.

You can refer to this

http://www2.st.com/content/ccc/resource/technical/document/application_note/ca/35/2d/0c/97/93/49/fe/DM00173754.pdf/files/DM00173754.pdf/jcr:content/translations/en.DM00173754.pdf

which describes how to implement SPI emulator.

Regards