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?
Are there any sample code existing for the slave (software) I can look at? I know of no slave software that does not use IIC hardware. What keeps you from replacing the chip with one that has IIC hardware? e.g. the Philips P89C66x series are pin compatible with any standard '51 and have IIC hardware. Erik
I am not entirely rigid with the chip. However I have access to two bipom board with atmel 89S53. I will ideally like to be able to utilise thses two board since I already have easy access to connect LCD and keypad which I have already interface. The alternative will be to use SPI however, I am using MicroIDE which doesn't recognised the special function register SPDR,SPCR,SPSR. If any one know how this can be done grateful for any assistance. Or maybe I'll try Keil.
I am not entirely rigid with the chip. However I have access to two bipom board with atmel 89S53. You can replace the 89S53 with a pin compatible P89C66x. The P89C66x is ISP via the serial port, so if the board has a RS232 connection, you will have ISP. Erik