PDA

View Full Version : 8E1 using SERIN2 or SERIN



RONKON
- 11th April 2006, 17:52
hi my name is David, from Mexico, i don't speack english.

i have a problem, i need comunicated with a device, the comunication is eleven bits - one start, eight data, one parity (even), and one stop. There are the specifications. aaaaa and speed is 4800. I know whit speed 4800 is

Baud CON 188

But.... For 8E1?????


I Need your help, please.
Thanks

David
Sonora,Mexico.

paul borgmeier
- 12th April 2006, 07:41
David,

For SERIN2:
4600 baud
without parity, bit 13 = 0 (see manual)
0000000010111100 = 188

with parity, bit 13 = 1 (see manual)
0010000010111100 = 8380

To enable 8 data bits with parity enabled, add this define at the top of your code. (see manual)

DEFINE SER2_BITS 9 ' Set Serin2 data bits to 8 when parity is enabled

This should work.

Good Luck,

Paul Borgmeier
Salt Lake City, Utah
USA

RONKON
- 12th April 2006, 17:26
Thanks Paul, your informacion has been of great importance.


greetings David Sonora Mexico