At 12:18 AM 9/11/96 +0200, you wrote: > Hi!! > I'm wondering if there is anybody out there who have used the I2C >X24C01PI-3 memory on PIC16C65. I could use some help for this matter. I >trying to use the >:65 as a master and because of that I'm initialize the I2C as '''''Master. >Slave idel'''''. >1) How do I initialize the I2C port correctly ? > I already have open collector for SCL and SDA???? > Can the 'hard' slave part mess up my transaction in > one or another way??? >2) Are there any libary routes for I2C master support??? >3) Are there any samples whit I2C EEPROM:s??? > No, don't try to use the hardware I2C in the PIC's for master mode! I've made many attempts at this with the '74 to no avial... finnally figured out that master mode IS NOT SUPPORTED on the PIC's UART! You must abandon the hardware methode and bit-bang out to normal I/O lines. There's an ap-note for this in the handbook. If I where you, though, I'd buy the MPC "C" compiler from CCS. They have a "C" file already written for you to do this. It's only $99, and it sure makes alot of codeing easier! Especially for the larger PIC's! I have been using this compiler to interface to a 24LC01 for some time now with no difficulties. Shawn