Hi for all,
can somebody share some working C code (mikroC or CCS C or any...) for I2C communication between one PIC16F887 like master PIC and one PIC16F887 like slave pic?
thanks in advance and
best regards
Despite at least that Master I2C APIs are avaliable at CCS compiler, I prefer to use some handshake driver wrote in C, due to allow further compatibility to other core platforms.
I have written a CCS C I2C master slave code. It is working fine for one master and one slave, but if one master and more than one slave is used, it hangs. I will post the code soon.
Collegues, maybe somebody need this,
I attach for you working I2C Master Slave code for PIC16F887 at 12MHz,
code is writen for mikroC Pro for Pic v4.6,
this example work on real hardware, not simulation,
best regards