In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote: Hello Jon, I simplified the program for my learning. Here is what happens: After programming it I plugin the USB cable into my computer. The RX lights flashed for a few seconds and than no more. But it should continue to flash as it runs a infinite loop. Th eouput pin looks fine, I checke with my scope. The same happens in the debugger, the LED for the pin flashed a few times and than goes solid. I tried with PAUSE 500 and it's the same. It should blink, right? char VAR Bit temp1 VAR Byte ' work vars temp2 VAR Byte ' ============================================================ PROGRAM Start ' ============================================================ ' ------------------------------------------------------------------------- ' Subroutine Declarations ' ------------------------------------------------------------------------- TXCHAR SUB 1 ' send char at baud ' ------------------------------------------------------------------------- ' Program Code ' ------------------------------------------------------------------------- Start: DO char = 1 TXCHAR char PAUSE 1 char = 0 TXCHAR char PAUSE 1 LOOP END ' ------------------------------------------------------------------------- ' Subroutine Code ' ------------------------------------------------------------------------- ' Use: TXCHAR theChar {, repeats} ' -- transmits "theChar", "repeats" times TXCHAR: temp1 = __PARAM1 ' get character SEROUT Sout, Baud, temp1 ' send the character RETURN ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80757 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)