serial lcd baud question
carl vianelli
Posts: 11
hello everyone,
I am just curious of the baud number in the BS2 code.
32 is for 19200 baud rate.
84 is for 9600 baud rate..
I don't know what the number is for 2400 baud rate.
but anyway,my question is where these numbers come from?
Is it a math thing? or is it just a set number?
I have been looking at different literature and I can't find a reason for these numbers.
also, isn't the 19200 baud rate the best to use? or is there benefit for slower baud rates?
thanks for any explanations...... joe
I am just curious of the baud number in the BS2 code.
32 is for 19200 baud rate.
84 is for 9600 baud rate..
I don't know what the number is for 2400 baud rate.
but anyway,my question is where these numbers come from?
Is it a math thing? or is it just a set number?
I have been looking at different literature and I can't find a reason for these numbers.
also, isn't the 19200 baud rate the best to use? or is there benefit for slower baud rates?
thanks for any explanations...... joe
Comments
Yeah, the baudmode subject is a bit confusing. It basically defines the data transfer rate.
If you look up the SERIN command in the reference manual or the Stamp IDE help, you'll find the full description.
Good success!
here is a table to calculate the baud, parity, and polarity
[code]
Baudmode Calculation
Determine the bit period (bits 0 - 11)
BS2, BS2e, and BS2pe = INT(1,000,000
I didn't think to look in the reference manual,I was trying to find info on the devices data sheets.
I really like the baudmode calculation, I thought there was some kind of math involved, of course.
thank you both again!!
For future reference, open the original post in advanced mode and change the prefix selection to "solved".
I've done this for you.