please dont rip this site

Ken Webster says:

After the 8th bit, the EEPROM should pull the data line low for an ACK or leave it high for NACK. The IIC bus must be pulled high with resistors (1k or 10k depending on how fast you want to go) and the PIC must only drive low (not drive high) .. open-drain outputs are ideal for this but you can achieve the same effect by seting the PORT bits low and using the TRIS bits to drive the line low or let the resistors pull it high.

I have code for a 17C756 talking to a 24C64 here:

It is commented .. I think pretty well but I haven't gotten anyone else's opinions yet.

The port initializations (after reset) are here:

Note that RA2 and RA3 are open-drain outputs on the 17C756, specifically designed for IIC or similar applications. On a normal output you would simply program the PORT bit low and toggle the TRIS bit in the same manner as the PORT bits are toggled in my 17C756 code.



file: /Techref/mem/eeprom/24c64.htm, 1KB, , updated: 2003/3/31 07:07, local time: 2024/6/15 15:42,

 ©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE!

<A HREF=""> mem eeprom 24c64</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type a nice message (short messages are blocked as spam) in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?


Welcome to!


Welcome to!