In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Rsadeika wrote: Here is a new snippet, right out of Guenthers book. I had this code setup on my SX28 tech board, so I know that it works. I made the modification for it to run on my SX52 board. All I have is an LED circuit on the breadboard, just as described in the book. Again, what is expected is a pause, turn the LED on, a pause, turn the LED off, jmp to the top of the loop and do it over again and again. When I run it, the LED turns on and never turns off, no pauses what so ever. In the tutorial a freq 50_000_000 is used, so the freq are matched. The only difference is, the tut uses OSCHS2, I use the OSCHS3. So, I am wondering, does the SX52 have some kind of effect on the pause part of the the code. On the SX28 you could definitely see the LED pause. Ray *****CODE ;;; ;; tut003sx52.src ;;; device sx52 device oschs3 ;High speed crystal, 1MHz - 75MHz IRC_CAL IRC_FAST ;For use with external crystal/oscillator freq 50_000_000 RESET Main org $08 Counter1 ds 1 Counter2 ds 1 Counter3 ds 1 org $100 Main mov w,#$1f ;SX52 specific mov m,w mov !rd, #%11111110 Loop decsz Counter1 jmp Loop decsz Counter2 jmp Loop decsz Counter3 jmp Loop clrb rd.0 Loop1 decsz Counter1 jmp Loop1 decsz Counter2 jmp Loop1 decsz Counter3 jmp Loop1 setb rd.0 jmp Loop end ;End of code ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=100433#m100645 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)