In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote: I have posted the program I use. It is very simplified, in the loop there is only the Serout command left. With this settings I get about 5kb in data per second, but the transmission is no more correct. But 5K is not even considered highspeed. I switched from the Basic Stamp BSX2e to this SX board as I though I get more speed out of it, but in terms of serial communiation it is not more. With a PAUSEUS 100 I get max 2kb in data, which I find is really slow. With a baud rate of 115200 how many bytes per second is possible? I cannot believe that my serial card cannot handle more than 2k per second as Jon stated. ' ------------------------------------------------------------------------- ' Device Settings ' ------------------------------------------------------------------------- DEVICE SX28, OSCXT2, TURBO, STACKX, OPTIONX FREQ 50_000_000 ' ------------------------------------------------------------------------- ' IO Pins ' ------------------------------------------------------------------------- TestBtn VAR RA.0 Sout VAR RA.1 ' ------------------------------------------------------------------------- ' Constants ' ------------------------------------------------------------------------- Baud CON "N115200" ' ------------------------------------------------------------------------- ' Variables ' ------------------------------------------------------------------------- char VAR Byte temp1 VAR Byte ' work vars temp2 VAR Byte ' ========================================================================= PROGRAM Start ' ========================================================================= ' ------------------------------------------------------------------------- ' Subroutine Declarations ' ------------------------------------------------------------------------- TXCHAR SUB 1 ' send char at baud ' ------------------------------------------------------------------------- ' Program Code ' ------------------------------------------------------------------------- Start: char = "X" DO TXCHAR char 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#m80837 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)