Hi all,
I'm a newbie to Microchip PICs having used other 8-bit controllers and I've run into a problem I don't quite understand.
I simply cannot get I2C communication to work. I want to use the 16F872 as an I2C slave device, but it just doesn't respond.
I've tried both Application Note 734 assembler program and the example EX_SLAVE.C that comes with the CCS C Compiler but with the same result.
As a master I've tried both an ETX-format PC and a PC with I2C USB adapter. When the master tries to address the PIC at address 0x22, there is no response at all according to the oscilloscope.
As the other Philips chips on the bus work and the problem still remains when I disconnect everything except the pull-up:s and the PIC I guess the problem isn't electrical.
Is there any special considerations/settings when programming the PIC from MPLAB to enable SSP or can you suggest any other possible error sources?