In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdg8934 wrote: JonnyMac, I'm questioning if there may be something wrong with the DEBUG circuitry in my SX-Key. When I run your 24LC512.sxb using DEBUG the results state: eeWord 271 even if I uncomment the other comments in the MAIN routine (e.g. PUT_EE 0, 0, $FFFF eeWord = GET_EE2 0, 0 ... etc.). I also noticed that you have OSCHS2 set at 20 MHz. I thought that you can damage your SX-Key if running DEBUG with a resonator installed. I even changed the statements to: DEVICE SX28, OSC4MHZ, TURBO, STACKX, OPTIONX, BOR42 FREQ 4_000_000 ID "24LC512" and did not use a resonator either time and still got the 271 answer for eeWord. If I run other programs like EEPROM from you or BEAN I got the same answer everytime even if I changed the value and the address. I then decided to run a program you wrote for the Basic Stamp to test the EEPROM itself. I used both a 24LC32A and a 24LC128 and they both seemed to PASS. The program was 24LC32.BS2. I did follow the wiring as per the SXB Help 1_51.pdf (page 82) and also tried the I2C example and did not get the results I would expect. I tied pins 1-4,7 to GND and pin 8 to +5 along with the (2) 4.7K resistors to +5v and the other ends to SDA and SCL respectively. Is there any other test I can use to make sure that my problem is not with my SX-Key? My SX-Key is fairly new and I know not to insert a resonator in when using DEBUG. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=205344#m205941 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)