cancel
Showing results for 
Search instead for 
Did you mean: 

Can STM32F103RB6 operate via I2C with STM8S103?

hkwong
Associate
Posted on February 07, 2017 at 16:57

I want to use STM32F103RB6 MCU to connect to STM8S103 MCU via I2C. Can I get data of STM8S103 via STM32F103RB6 and control the operation of STM8S103 by STM32F103RB6 via I2C interface? These two MCUs operate in different frequency. The STM8S103 MCU is the master running the electronic device. The STM32F103RB6 is a slave. I want to get data of STM6S103 about PWM, sensor data via STM32F103RB6 and display the data via wifi to smartphone. The wifi module is connected to STM32F103RB6. I have no idea how to do that.

2 REPLIES 2
Posted on February 07, 2017 at 17:20

I2C is agnostic to different frequencies of the microcontrollers. The Master controls the clock speed and rate on the bus.

Maybe you should start with simpler projects, or break this one down into smaller/simpler ones you can solve yourself?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
T J
Lead
Posted on February 07, 2017 at 21:21

Yes, you can make this work, the slave IIC port does not care about the frequency as long as it is below 100KHz  (400KHz in some systems.)

IIC is a difficult interface, it is not easy for a beginner like me...

SPI is much easier. Uarts easy, Canbus was difficult.

you can expect to spend 2-5 days on difficult process functions.