Page 1 of 1

Simple i2c

Posted: Thu Apr 29, 2021 11:29 pm
by Pharaoh1989
Hello

Does anyone have a simple i2c for master receive data from another pic? I’m using a pic16f877A as master and pic16F886 as a slave, cannot get any data from it

Cheers for the help

Re: Simple i2c

Posted: Sat May 29, 2021 9:35 am
by chipfryer27
Hi

I2C isn't usually too troublesome. Are you using pull ups on the SDA/ SCL lines and keeping track lengths / connections short?

Regards

Re: Simple i2c

Posted: Thu Jun 10, 2021 10:47 am
by Pharaoh1989
Hi

Yes I can transmit data to a slave but not get any data back, I'm wanting to sent one byte to the slave and receive 8 bytes back.

cheers