Have a look at the microchip web site, under application notes. Also look for the PICDEM2 demo board. There you will find also the source code for connecting to the I2C.
Also have a look at: www.microchipc.com.
Good luck.
emkay only wants to read an external I2C. Lest not confuse him.
Also, if you read the Errata for the PIC16F88 you will see that:
the SSP and/or CCP (capture mode) module
and PORTB pull-ups are enabled, then evaluate
the functionality of the SSP (I2C™/SPI™)
or CCP (Capture mode) module to ensure
proper operation within your application.
tjalps, what do you mean? i'm trying to use i2c between 2 PICs (16f876)by HW I2C but the slave can't receive data from master. I'm sure master is ok because it can drive another I2C device correctly.
I'm programming in C.
do I consider to change way of communicating? Have I any hope to manage in it?
16F876 is OK because it uses MSSp and I now it works properly. I'm using thema as slaves in my aplication . I have 10 slaves on 400k and they work wery well. Post your code and I'll check what is wrong with your code.
if i'm not mistaken...that website provide info on programming using C...but i'm looking programmed usingh assembly languange..
is there any reference project?...
i found Nigel's site that have tutorial on this one but using software routine...i'm prefer to use hardware routine since pic16f88 have internal one...
anybody..pls guide me or give some advice...i'm beginner,
I found this in my codesample directory. So i dont know even where i got it from...
It for the PIC16F877 and its in ASM... The 16F877 has also MSS, so i hope it will guide you to your path...
Good luck.
Sorry, cant load the code. been trying for 1 hour! its only 100k.
Will load it tomorrow...