Baudrate limititaion for BS2Px
pathikgohil85
Posts: 21
Hello Folks,
I am working on application which is using 9600 and 19200 baudrate. I am planning to expand my application 3 times what it is right now. I have few question at my mind before I start further.
Can I have information about baud limits for BS2Px?
What is the max serial out baud rate a BS2p can handle?
Is 19200 max baudrate for BA2Px?
Pathik Gohil
I am working on application which is using 9600 and 19200 baudrate. I am planning to expand my application 3 times what it is right now. I have few question at my mind before I start further.
Can I have information about baud limits for BS2Px?
What is the max serial out baud rate a BS2p can handle?
Is 19200 max baudrate for BA2Px?
Pathik Gohil
Comments
Propeller will do 115K easily.
Jim
As I mentioned before, all of the Stamps are unbuffered and the actual receive Baud that can practically be handled depends on the details of your program.
baud = 4000000/(baudmode + 20)
so a baudmode of 84 give 38461 baud, which works ok with most 38400 baud systems. And a baudmode of 14 gives 117647, which is close enough to 115kbaud to work with most receivers. That is not to say that the throughput occur at that rate. The Stamp will insert a delay between bytes that amounts to an extension of the stop bit. That depends on the way that the data is formatted, but on the original BS2 it is 150 microseconds minimum, which is an extra 1.5 stop bits at 9600 baud. In a PBASIC loop, that extra time between bytes extends out to milliseconds.
For reception, the stamp can receive at those speeds only if it is sitting on the SERIN command ready for a start bit when that start bit occurs. Then once it receives a byte it takes some time to process the data before it can be ready and sitting there again waiting for the next start bit. Workarounds use extra stop bits or pacing on the transmitting end, or the flow control pins. It can be done to achieve higher baud rates if you have programmatic control at both ends of the process, for example, a BASIC Stamp talking to another BASIC Stamp.
I have some suggestions at this link.