Baud Rate help
Archiver
Posts: 46,084
TC-
BASIC Stamp Programming Manual 2.0, page 296:
BS2p: = INT(2,500,000 / baud rate) - 20
per my occasionally reliable arithmetic:
= INT(2,500,000 / 115,200) - 20
= 21 - 20
= 1
If maximum speed is not crucial, consider slowing things down for
reliability.
Regards,
Steve
On 29 Nov 01 at 0:25, iamturbo2000@y... wrote:
> I am working on a project that uses SEROUT. The info I got, says
> that I can do a 115.2K baud rate. In the demo sorce code says that,
> for the BS2sx, 16390 = 38.4K baud rate. My question is what would I
> put in SEROUT for 115.2K baud rate for a BS2p?
BASIC Stamp Programming Manual 2.0, page 296:
BS2p: = INT(2,500,000 / baud rate) - 20
per my occasionally reliable arithmetic:
= INT(2,500,000 / 115,200) - 20
= 21 - 20
= 1
If maximum speed is not crucial, consider slowing things down for
reliability.
Regards,
Steve
On 29 Nov 01 at 0:25, iamturbo2000@y... wrote:
> I am working on a project that uses SEROUT. The info I got, says
> that I can do a 115.2K baud rate. In the demo sorce code says that,
> for the BS2sx, 16390 = 38.4K baud rate. My question is what would I
> put in SEROUT for 115.2K baud rate for a BS2p?
Comments
I can do a 115.2K baud rate. In the demo sorce code says that, for
the BS2sx, 16390 = 38.4K baud rate. My question is what would I put
in SEROUT for 115.2K baud rate for a BS2p?
Thanks
TC