cancel
Showing results for 
Search instead for 
Did you mean: 

for SPC570S50E1CEFAR, can STM provide sample code of i2c slave? thx!

Eric.Li
Associate II
 
This discussion has been locked for participation. If you have a question, please start a new topic in order to ask your question
5 REPLIES 5
ODOUV.1
ST Employee

Hello,

you can have a look to this previous post:

Serial clock and Serial data on SPC5STUDIO evaluation board

Best regards.

Eric.Li
Associate II

hello sir/madam,

for the software I2C demo: "SPC560Dxx_RLA I2C Test Application for Discovery", it seems be an i2c master demo. would you please a demo for i2c slave? thx!

Regards,

Eric Li

ODOUV.1
ST Employee

Hi Mr Li,

you are perfectly right; this example code is master side only.

The reason is that 90% of time the MCU is using I2C software to control a slave HW component.

We do not have slave example at SPC5Studio side.

So you will have to find another example code on Internet to develop your slave part.

You may ask in STM32 forum ?

Best regards,

Oliver

Eric.Li
Associate II

hi sir,

do you mean it is able to use STM32's i2c slave sample code on SPC7 despite they come from different product line and have different operating clock/speed,...etc? thx!

Regards,

Eric Li

ODOUV.1
ST Employee

Hello Sir,

no, I mean as soon as you need to find another sample code (from every company/organization), you may ask to STM32 forum if they have one (I don't know as I work only on SPC5 family)

Best regards,

-Oliver