shreyas.p
Newbie level 3
I'm doing a project named "Implementation of I2C Protocol"
I'm required to show the working of I2C protocol using a micro controller (say AT89s52) as a master and two slave-devices.
Slave Device #1: LCD
Slave Device #2: Not decided yet
I did some research on the internet and learned that 89s52 doesn't have hardware I2C interface. So either I will have to go for a microcontroller that does support I2C interface or implement bit-banging to implement I2C.
I have never implement bit-banging. So anyone of you have knowledge about it, please share it with me.
I have searched on the internet and found some bit-banging examples. I have attached it alongwith this thread. Please see.
I'm trying to interface LCD via any general purpose I/O expander
eg. PCF8574
As I'll be having more than 1 device on the I2C BUS, I'm confused as to how to address a specific device.
For eg. I want to display "Hello" on LCD (slave device #1), how do I address it and then write the data to it?? :roll:
Also if someone has any suggestions for the second slave device, please comment.
Some info on I2C:
I2C Bus Technical Overview and FAQ - Embedded Systems Academy
Thanks in advance.
I'm required to show the working of I2C protocol using a micro controller (say AT89s52) as a master and two slave-devices.
Slave Device #1: LCD
Slave Device #2: Not decided yet
I did some research on the internet and learned that 89s52 doesn't have hardware I2C interface. So either I will have to go for a microcontroller that does support I2C interface or implement bit-banging to implement I2C.
I have never implement bit-banging. So anyone of you have knowledge about it, please share it with me.
I have searched on the internet and found some bit-banging examples. I have attached it alongwith this thread. Please see.
I'm trying to interface LCD via any general purpose I/O expander
eg. PCF8574
As I'll be having more than 1 device on the I2C BUS, I'm confused as to how to address a specific device.
For eg. I want to display "Hello" on LCD (slave device #1), how do I address it and then write the data to it?? :roll:
Also if someone has any suggestions for the second slave device, please comment.
Some info on I2C:
I2C Bus Technical Overview and FAQ - Embedded Systems Academy
Thanks in advance.