vvmm
Newbie level 5
- Joined
- Jun 20, 2010
- Messages
- 8
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Bucharest, Romania, Romania
- Activity points
- 1,363
Hi,
I am new to I2C communication and I studied Microchip's documentation and some tutorials online. I need to make 2 PICs communicate with each-other (master-slave). In this basic first scenario I have two buttons at the master, ON and OFF. When I press them I want to drive the LED from the slave PIC. I send one byte: 0xAB for ON, 0xBA for OFF. The simulation seems to work, but not all the time, and sometimes doesn't work at all or intermittent. I have attached the Proteus project if someone can help me with at least a hint.
Follow-up question for I2C: Does the MSSP module automatically send ACKs? Is my implementation in the attached project correct? (I didn't check for SSPOV, BF, WCOL conditions because I assumed they don't happen in my scenario)
Thanks,
Mihai
I am new to I2C communication and I studied Microchip's documentation and some tutorials online. I need to make 2 PICs communicate with each-other (master-slave). In this basic first scenario I have two buttons at the master, ON and OFF. When I press them I want to drive the LED from the slave PIC. I send one byte: 0xAB for ON, 0xBA for OFF. The simulation seems to work, but not all the time, and sometimes doesn't work at all or intermittent. I have attached the Proteus project if someone can help me with at least a hint.
Follow-up question for I2C: Does the MSSP module automatically send ACKs? Is my implementation in the attached project correct? (I didn't check for SSPOV, BF, WCOL conditions because I assumed they don't happen in my scenario)
Thanks,
Mihai