In SX Microcontrollers, SX/B Compiler and SX-Key Tool, AmitJ wrote: I'm running an SX48 and everytime I try to run code with the 50MHz resonator everything crashes after about a minute. The code will run fine if I generate the clock signal from the SX key and have the resonator disconnected. I've checked the resonator circuit many times but I think that's hooked up right. When I try a new resonator it will crash after a different amount of time. I'm pretty sure the resonator itself is fine because it works fine on a development board. The code I'm running is simple. I've included a schematic of my resonator cuicuit and the code i'm running for reference. Has anyone experienced anything like this before? Any help would be greatly appreciated. DEVICE SX48, OSCHS3 IRC_CAL IRC_FAST FREQ 50_000_000 ' ------------------------------------------------------------------------- ' IO Pins ' ------------------------------------------------------------------------- Rx var RC.7 Cts var RC.6 Tx var RC.5 Rts var RC.4 GLED var RC.0 ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- DataOut var byte DataIn var byte ' ========================================================================= PROGRAM Start ' ========================================================================= ' ------------------------------------------------------------------------- ' Program Code ' ------------------------------------------------------------------------- Start: ' initialization code here DataOut = 137 Main: ' main code here Serout Tx, N57600, Dataout toggle GLED pause 100 GOTO Main ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=135682 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)