In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: How often the state of the input pin can be checked is going to be dictated by the speed of the serial transfer. At 115200 baud that would be about 11520 times a second. The code would be very simple: -------------------------------------------------------------------- DEVICE SX28, OSCHS3, TURBO, STACKX, OPTIONX FREQ 50_000_000 InPin VAR RB.0 ' Change this to whatever pin you want to monitor SOutPin VAR RB.1 ' Change this to whatever pin you want serial output from Temp VAR BYTE PROGRAM Start Start: INPUT InPin Again: Temp=InPin SEROUT SOutPin, N115200, Temp GOTO Again ----------------------------------------------------- Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79611 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)