Hello, > What is the date code on the SX52? Some older versions are not > supported with the SX-Key Rev E. > http://www.sxlist.com/techref/ubicom/sx48-52.htm The datecode is AB0022AT so it should be ok, i guess. > Is the failure reliable? If not, it may be a communications > failure between the SX-Key and the PC or excessive noise or bad > connection between the key and 52. I've seen a lot of "strange" > things with SX-Keys. The failure is reliable but it doesn't seem to give exactly the same results when single stepping, running with the debugger or running without the debugger. Here is a program that does fail, both single stepped with the debugger and run without the debugger. When run with the debugger it reports 'Sleeping' and doesn't lit either the red or green led, though: DEVICE OSCXT2,BOR42,DRT18MS FREQ 10_000_000 RESET Startup r_LED_GREEN equ re b_LED_GREEN equ 0 f_LED_GREEN equ r_LED_GREEN.b_LED_GREEN m_LED_GREEN equ 1<> 8) mov REF,#'A' loop mov w,ROM_H mov m,w mov w,ROM_L call _iread_ test w snz jmp success xor w,REF sz jmp fail inc REF inc ROM_L snz inc ROM_H jmp loop fail clrb f_LED_RED skip success clrb f_LED_GREEN jmp $ org $300 _iread_doit iread retp org $b00 string dw 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',0 I have had a lot of other problems when doing the software for my current project; Doing a retp without setting the page bits, reading from a register to w but w isn't correct after the read, rtcc rollover interrupt not triggered and now this. Some of these errors I have discovered without the debugger and could verify with the debugger, some only seems to exist with the debugger or act differently with the debugger. Most of the errors have disappeared when moving the code around to other banks or just within the same bank. Is there something I can do to reduce the amount of 'strange' things with the SX-Key, except replacing it? The original program I posted did succeed without the debugger but the program I have here more resembles my real program that does fail without (and with) the debugger. These 'strange' things are beginning to take up too much time from real programming work and changing IDE might work to some extent but not entirely since some errors still appear without the IDE. > > Try a test program that counts up a register from "A" and > compairs it with the data from the IREAD and turns on an LED if > they don't match, then run it off the SX-Key. If it works, > consider replaceing the SX-Key with rev F (latest) from Parallax > Inc or switch to the SX-DEV. > http://www.sxlist.com/techref/ubicom/debuggers.htm > > --- > James Newton: PICList.com webmaster, former Admin #3 > mailto:jamesnewton@piclist.com 1-619-652-0593 phone > http://www.piclist.com/member/JMN-EFP-786 > PIC/PICList FAQ: http://www.piclist.com ============================== Ruben Jvnsson AB Liros Electronic Box 9124, 200 39 Malmv, Sweden TEL INT +46 40142078 FAX INT +46 40947388 ruben@pp.sbbs.se ============================== -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics