In SX Microcontrollers, SX/B Compiler and SX-Key Tool, tdodds wrote: :redface: HELP! I need to have a time delay before sending a character string at powerup as part of my application. When I added the PAUSE statement to my code to get the delay, I kept getting a garbled initial character. After a lot of trial and error, I pared the code down to a bare minimum and found that if the PAUSE comes first, there is a garble every time on powerup, and if the SEROUT comes first, there is never a garbled initial character. Here is my test code: This works just fine: DEVICE SX28, OSCXT2, TURBO, STACKX, OPTIONX, BOR26 IRC_CAL IRC_SLOW FREQ 20_000_000 PROGRAM START START: OUTPUT RA.1 MAIN: SEROUT RA.1,T9600,71 PAUSE 254 GOTO MAIN This produces an initial garbled character on powerup every time: DEVICE SX28, OSCXT2, TURBO, STACKX, OPTIONX, BOR26 IRC_CAL IRC_SLOW FREQ 20_000_000 PROGRAM START START: OUTPUT RA.1 MAIN: PAUSE 254 SEROUT RA.1,T9600,71 GOTO MAIN Is this an SX/B compiler bug? How can I get rid of this garble and still get an initial time delay before sending after a power up?? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=125135 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)