This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Software I2C in slave mode

I want to simulate an I2C slave device using a generic 8051 MPU which doesn't have hardware I2C(not like 80C552). I know it is easy to implement software simulated I2C in master mode, but I want to turn my 8051 MPU to be a slave device. How can?

Parents
  • Thanks Michael, I've already known your simulation DLL. You did a great job. Yes, your I2C simulation works in slave mode, but your I2c_lib only works in master mode, right? What I want is to let my 8051 MPU work in slave mode, so that other MPU, or PC can send data to it via I2C. Anyway, it is not critical, I can use another I2C device like I2C memory to store the intermedial data, or use UART to transfer data. But I'm interested in finding a way that costs little. That's why I don't want to use on-chip I2C controller or UART or third I2C device.

Reply
  • Thanks Michael, I've already known your simulation DLL. You did a great job. Yes, your I2C simulation works in slave mode, but your I2c_lib only works in master mode, right? What I want is to let my 8051 MPU work in slave mode, so that other MPU, or PC can send data to it via I2C. Anyway, it is not critical, I can use another I2C device like I2C memory to store the intermedial data, or use UART to transfer data. But I'm interested in finding a way that costs little. That's why I don't want to use on-chip I2C controller or UART or third I2C device.

Children