Searching \ for '[SX] Serial Communication - Input from Pin' in subject line. ()
Make payments with PayPal - it's fast, free and secure! Help us get a faster server
FAQ page: www.piclist.com/techref/ubicom/lib/io/index.htm?key=serial+serial
Search entire site for: 'Serial Communication - Input from Pin'.

Exact match. Not showing close matches.
PICList Thread
'[SX] Serial Communication - Input from Pin'
2005\07\05@223832 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

I like to get the state from an input pin (high/low) checked as often as possible and transfer the data (0/1) via serial to the PC.

Is there any basic source code available for this?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610
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)

2005\07\05@224601 by beann/a

flavicon
face
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)

2005\07\05@225811 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Thank you very much Bean, that will give me a good start on it. How would the code look like when I get the state from pin0 to pin7 (8 Bit) and transfer it with the same rate to the serial port?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79612
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)

2005\07\05@231827 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Even easier...
--------------------------------------------------------
DEVICE SX28, OSCHS3, TURBO, STACKX, OPTIONX
FREQ 50_000_000
InPort VAR RC ' Make this to either RB or RC
SOutPin VAR RB.1 ' Change this to whatever pin you want serial output from
PROGRAM Start
Start:
 SEROUT SOutPin, N115200, InPort
GOTO Start
----------------------------------------------------------
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#m79613
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)

2005\07\05@234600 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Looks really easy! I will give it a try...

Thank you very much for your support.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79616
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)

2005\07\06@031648 by Peter Van der Zeen/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Peter Van der Zee wrote:

Hi Bean;
But I believe that at 115,200 bits per second, the byte transmission rate is 11,520 bytes per second. Remember, the are 10 bit times per byte.

So the input would be sampled and transmitted 11,520 times per second.

Can a PC reliably keep up with that on a continuous streaming basis? I not certain, but I would not bet on that. Probably depends on the number of buffers in the PC's UART, and whatever else WINDOZE is doing.

If the user indeed needs (only) the absolute fastest transmission out of an SX, that can be reliably accomplished continuously at 5  megabits per second, and in bursts at 10 megabits per second. That however is well beyond most (all?) PC's ability to keep up.

Cheers,
Peter (pjv)
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79620
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)

2005\07\06@082844 by Coriolisn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Coriolis wrote:

There is the USB2SER, the chip is capable of 12Mbps (~1.2MBps), though it needs an eeprom configuration chip (something that is absent on the USB2SER), I think it is capable of 1 or 2 Mbps without it.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79672
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)

2005\07\07@232712 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Bean,
I bought the USB-Serial adapter your company is featuring. Does it matter which pin I use for the output in order to receive data in the PC?

If I send data the USB-serial device should be blinking (red/green leds) th same way when I do program it, right?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79905
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)

2005\07\08@051738 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

You cannot send serial data to the PC through the SX-Key (except debugging data via the debugger); you'll need to connect the SX to the PC through a MAX232 or similar adapter.  In many cases you can make a direct connection and program the SX in a mode that will be compatible with the PC, but it's best to switch to RS232 levels.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79916
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)

2005\07\08@081725 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Jon is correct. You need to dedicate one of the SX's I/O pins to serial output. Sometimes you can just hook it upto the serial port and sometimes it won't work (it depends on the hardware in the PC).
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#m79934
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)

2005\07\08@093123 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon & Bean,
Thank you for the reply. Can I use the USB2SER module you offer:
http://www.parallax.com/detail.asp?product_id=28024
If
not, is there any hardware available that I can buy to hook the SX board up to my PC via Serila or USB? When I ordered the kit I was under the impression I can do this with the kit.

Thank you
Thomas Herold
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79941
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)

2005\07\08@095045 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Yes, you can use it to take the TTL output from your SX chip and send it to the PC through a USB connection.  Just make sure you have the FTDI VCP driver installed so that you can use the USB port holding the USB2SER as a standard COM port.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79944
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)

2005\07\08@100308 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Thank you Jon,
Is it the same driver that comes with the serial to USB adapter? I bought this adapter with the SX board.

http://www.parallax.com/detail.asp?product_id=800-00030
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79945
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)

2005\07\08@105512 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Yes.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m79954
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)

2005\07\13@174402 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon or Bean,
I got my USB2Ser device today:
http://www.parallax.com/detail.asp?product_id=28024 and plugged it onto the SX board. But I can't get data out of it!

In the documentation to the USB2SER it says that the red and green LED's for TX & RX activity light up.

I use this simple basic program:

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
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80572
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)

2005\07\13@204030 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

1) Did you install the FTDI VCP driver?
2) All pins are made inputs unless you use NOSTARTUP -- you don't need to make "InPin" an input.
3) You have no pacing between bytes and are sending them at a pretty fair clip; could this be part of the problem.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80586
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)

2005\07\13@223553 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon,
Thanks a lot. I installed the driver again and was running your test program. The debugger shows the signal coming out on the programmed pin.

I plugin the USB2SER adapter but nothing happens, no lights blinking and no data is coming out. Any ideas?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80594
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)

2005\07\14@051746 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

You may damaged the USB2SER adapter as it is not compatible with the SX-Key programming port.  As has been stated several times in this thread you must use a I/O pin for communications; in my demo program I'm using RA.1.  I connect this to the USB2SER.RX pin with a wire (22-guage solid wire works well).  I also connect the USB2SER.Vss pin to Vss of my circuit.  With the proper serial mode (True), the program works fine.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80608
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)

2005\07\14@123615 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon,
I understand, is there anyway to test the USB2SER to find out if it is still working?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80691
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)

2005\07\14@130315 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Sure, hook it up to your SX and send data to it, view with Hyperterminal.  Then write another program that uses SERIN and connect the TX output of the USB2SER to the SX.  It shouldn't take more than 15 minutes or so to determine if everything is working.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80703
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)

2005\07\14@131731 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

I hooked it up as you said with connecting Ra.1 to RX Pin and also connecting the Vss to the Vss pin. The SX program is running fine, I tested the pin with my scope.

The USB2SER does not show any LED's blinking and Hyperterminal is not showing anything as well. Meaning I damaged it?

As soon as I connect the RX pin and the VSS the USB2SER should start blinking, right?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80707
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)

2005\07\14@142854 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Well, according to the USB2SER docs (hint, hint), the red led should light when data is being received on the TX line (I know this seems backwards, but it is correct) and the green light when data is coming from the RX line -- that happens on my setup.  After looking at the schematic I think your adapter should have been saved by its design: there are 1K resistors in the TX and RX line.  The RES line got connected to the OSC1 pin on your SX, and as it goes to the collector of a transistor I doubt any damage was caused.

I used the attached program to suss everything out.  Run the program with these connections to your USB2SER:

RA.0 ----- TX
RA.1 ----- RX
Vss ----- Vss
The program starts with a loop that just receives.  Fire up Hyperterminal, select the comm port assigned to your USB2SER, then open the connection -- you should have to press a key 10 times (the red LED will light with each keypress).  After that, when you press a key the SX will echo it back with a little ">> " prefix -- the green LED will light when this happens.  Note that at 115200 the LEDs are on nearly simultaneously.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80726
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)

2005\07\14@150016 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon,
Thank you so much for your support...

I get 2 errors running your program:

Line 71: Error 5, Pass 1: Byte Parameter expected RXBYTE
Line 75: Error 5, Pass 1: Byte Parameter expected RXBYTE
I am running version SX-Key version 3.1.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80731
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)

2005\07\14@153045 by Forrestn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Forrest wrote:

You probably have an old version of SX/B installed. The latest version 1.31 was released on July 8 and you can download it here (attached to the first message) http://forums.parallax.com/forums/default.aspx?f=7&m=54473
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80738
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)

2005\07\14@163834 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon,
Again, thanks so much for all the help. After updating the compiler your Serin Serout Test program runs!

The other sample programn 'High Speed Serout' still doesn't work. At least I know the USB2SER adapter is working and I may need to experiment with baud rates. Probably the communication is very sensitive at high speed.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80749
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)

2005\07\14@175003 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Check your connections -- everything runs great on this end.  I'm glad your USB2SER isn't damaged and that you're getting close.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=79610#m80756
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)

2005\07\14@183034 by heroldn/a

flavicon
face
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)

2005\07\15@065347 by beann/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote:

Herold,
 Please post the program you are using.
 If the PAUSE 1 is inside the loop that will really slow down the speed, you could try "PAUSEUS 100" which is only 0.1ms.
Bean.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80798
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)

2005\07\15@071059 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Herold,
Part of the problem you're going to have is overrunning the PC buffer -- can your PC/program handle that much data?  What I found was without the delay in the loop, characters were getting corrupted.  You might use Bean's suggestion an change the PAUSE 1 to PAUSEUS 100.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80802
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)

2005\07\15@105737 by heroldn/a

flavicon
face
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)

2005\07\15@122707 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

Sounds like the problem is in the PC end of things....

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80858
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)

2005\07\15@123444 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Jon, would you be able to check on your end what is the max data that you can reveive in your PC?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80862
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)

2005\07\15@123608 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

No, I have no way of doing that.  I think it's clear this problem has moved out of the realm of Parallax.  You might want to check with the folks at REALbasic to see what can be done to process data more quickly.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80863
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)

2005\07\15@124121 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

I understand, thnaks again for all the help.

Good question, I thought it is the easierst way for me to do it. I don't know how to connect the pins to a serial cable. Do you think the USB2SER slows things so much down?

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80866
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)

2005\07\15@124556 by Jon Williamsn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Jon Williams wrote:

I don't know how to be more plain: the problem is not in the USB2SER -- I fully believe it's in your PC and how the data is being handled on that end.  Kind of like the old "I Love Lucy" episode when she was working in the candy factory; at one point the speed of the conveyor belt got so fast that she couldn't handle all the candy coming her way.  I think that's what's happing in your RB program.

---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80869
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)

2005\07\15@150059 by heroldn/a

flavicon
face
In SX Microcontrollers, SX/B Compiler and SX-Key Tool, herold wrote:

Hello Jon,
You are right, the problems are on the PC end - exactly with the Realbasic program.

I downloaded a serial test program and mesured the port - I get a maximum of 65K per second there, which is great.

Probably I need a special DLL to handle the data with Realbasic, I have wrote them an email.

Thank you Jon
---------- End of Message ----------

You can view the post on-line at:
http://forums.parallax.com/forums/default.aspx?f=7&p=2&m=79610#m80901
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)

More... (looser matching)
- Last day of these posts
- In 2005 , 2006 only
- Today
- New search...