Im trying to communicate with i2c two Picīs a master and a slave of course. I attemp to do a communication with 3 slaves later but at first i have to do it with a single one. Im having problems initiating the i2c protocol.
Im using MPLAB to create the master and slave code. Using MPSIM and checking the ssp registers i see that the code is right in theory but once i try it on the chip it doesnt work. I cant initiate the Start condition i activate the SSPEN flag in SSPCON2 in the simulation it works pefectly but in the chip polling the register i can see that the flag have never been set i dont know which problem i have but please i need some help
Bookmarks