On 23/12/2010 03:59, Oli Glaser wrote: > 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 > the PIC is programmed, just not in gpsim. > I googled it and as I assumed discovered that it is simulation software > for PICs - the main page notes under support: > > Thegpsim-devel > mailing list is > devoted to gpsim specific issues. While primarily intended for gpsim > development, this list may also be used as a user resource to ask any > question. > > Judging from this I think your question would be welcomed at the mailing > list (and more likely get a quicker/better answer) > Hope this helps a bit - good luck.. > > Just in case the above sounded a bit unwelcoming, it wasn't intended as=20 such - pretty sure someone here will have some decent advice. I just=20 think it's worth posting at the gpsim list as well (as mentioned, it=20 sounds like it's almost certainly the simulator at fault here, and they=20 will probably be keen to hear about it if it's a bug) --=20 http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .