On 23/12/2010 03:20, Thomas E Hunt wrote: > Thanks for taking the time to read! This is my first post to the > list. I am a Java developer who has been playing with Pic microchips > for about a year as a hobby. I pulled code from AN976 to get a pic > 16f876a working with a 24LC256 eeprom. The code works fine on the > breadboard. In gpsim, I time out on Ack polling. For gpsim, I set SDA > and SCL to pullup resistors. A0, A1, A2, and WP all to pulldown > resistors. The code falls into a timeout on acknowledgement polling. > > I tried just the read routine. I set the value of address zero of > the eeprom module ( alias myRam ), using myRam.eeData[0] =3D $40. I > dumped that to file myRam.txt. I see the data value for index zero set > to hex 40 in the dump. Then I stepped through the code. The code > executes, but I get value 0x1F. I'm using the latest 0.25.0 version of > gpsim. If there is a better list to post to, please let me know. I > didn't want to post a user problem to the gpsim developer's list. More > details/code on request. > Thanks! > Tom Welcome to the list - if I understand right, your code works fine when=20 the PIC is programmed, just not in gpsim. I googled it and as I assumed discovered that it is simulation software=20 for PICs - the main page notes under support: Thegpsim-devel=20 mailing list is=20 devoted to gpsim specific issues. While primarily intended for gpsim=20 development, this list may also be used as a user resource to ask any=20 question. Judging from this I think your question would be welcomed at the mailing=20 list (and more likely get a quicker/better answer) Hope this helps a bit - good luck.. --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .