In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: HIGH and LOW do in fact make the specified pin an output, but why go through the trouble if the pin is already set to output state -- you can simply write a one or zero to the port bit. Asynchronous serial communications (what you're using with SEROUT ans SERIN) requires an accurate clock source, and the internal clock is not that accurate. Using an external clock (e.g., a resonator) will allow serial comms to work properly, which will allow you to connect your SX to other devices with a serial link. I updated your program in my (anal retentive) programming style using a template, like the one in the help file -- you might find it useful. I created a function for SERIN that has a 250 ms timeout, so you should be able to get the LED to blink. Don't be worried that the subroutines/functions look a little complicated; they're really not -- it's just that SX/B is closer to assembly than PBASIC is. The upside is that they're re-usable and will ultimately save you programming code space and time. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=264135#m264227 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)