In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: JonnyMac and others, I have not done anything with "my program yet" when checking for correct values using DEBUG. As stated before the chips appear to "PASS" (using one of your BS2 eeprom programs like 24LC32.bs2) when connected with 2 PULL UP 4.7K resistors so I know I have it wired correctly as seen in the drawing that Mike Cook just posted. My question was with whether DEBUG was working correctly. It seems when I am setting a value in my program such as the WORD variable Coin = 1234 (with or without an EEPROM connected), and then use a BREAK and a WATCH COIN,16,UDEC .... I would expect to get back 1234 but usually get some other strange number repeatedly. So I think I need to see if DEBUG is correctly working first before I can even look at the EEPROM issues. It is similar results too when using Byte variables too like tmpB1 = 30. Back to EEPROM issue for a moment... Are saying that I DONT need to use the (2) 4.7K resistors? That is nice but a bit confusing since drawings always show them like in the SXB Help 1_51.pdf (page 82) with "SDA PIN RA.0 INPUT PULL UP" and "SCL PIN RA.1 INPUT PULL UP" statements. I have been using them just like the other drawing the Mike Cook posted below. As far as my subroutine...I did notice that I needed to have the LSB and MSB listing swapped to look like this: [code] SUB RW_Display tmpW1 = 0 IF Coin = 0 THEN Coin_MSB = EERead tmpW1 tmpW1 = 1 Coin_LSB = EERead tmpW1 ELSE tmpW1 = 0 EEWrite tmpW1, Coin_MSB tmpW1 = 1 EEWrite tmpW1, Coin_LSB ENDIF Value = Coin LCD_Coin ENDSUB However, what should go into the first address the MSB or the LSB byte? I'll get back to this when I know my SX=Key DEBUG is working correctly. Is there a good program to use to verify this since when I set a variable like Coin or tmpB1 and then try to see what is written with a Watch statement, it is always wrong (not 0 but could be any number that you would not think is correct). Thanks again for your help![/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=205344#m206007 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)