Baud rate setting...
FORD
Posts: 221
Hi All,
I am trying to interface with some equipment which uses the following serial settings...
4800 bps.
Even parity.
8 data bits.
1·stop bit.
(4800,E,8,1).
My problem is that the stamp manual doesnt give any info for data which is 8 bit, even parity.
Is there a trick to making it compatable with even parity ?...
Have I missed something ?...
or is it not possible ?.
Cheers,
Chris.
Western Australia.
I am trying to interface with some equipment which uses the following serial settings...
4800 bps.
Even parity.
8 data bits.
1·stop bit.
(4800,E,8,1).
My problem is that the stamp manual doesnt give any info for data which is 8 bit, even parity.
Is there a trick to making it compatable with even parity ?...
Have I missed something ?...
or is it not possible ?.
Cheers,
Chris.
Western Australia.
Comments
Post Edit [noparse][[/noparse]011207] --
Using SERIN/SEROUT, Stamps can only do 8-N-1 or 7-E-1
Post Edited (PJ Allen) : 1/12/2007 10:55:07 PM GMT
I think the manufacturer must mean 7 data bits, even parity, they have it written as 8,E,1.
I will try changing the baud rate setting to suit 7,E,1 and see how it goes.
Cheers,
Chris
Stands to reason, yes?
[noparse][[/noparse]Remember, the data is sent/received least significant bit FIRST.]
Post Edit [noparse][[/noparse]011207] -- "Woe is me, for I am undone."· One needn't go to all this trouble to fab 7-E-1, as the Stamp already supports that.· But, if one wanted to do ODD parity (7-O-1)... they'd need only to change the Parity bits in the examples above.
Post Edited (PJ Allen) : 1/12/2007 10:58:03 PM GMT
BTW, I'm using a bs2p.
I am now sure that it will be transmitting 8 data bits.
If this is the case, i dont think it will be possible to even add an extra parity bit in code, because the stop bit will take the place of the parity bit, so I'm snookered.
I was thinking I could still just use a stamp for rx, but I guess the same will be the case on the rx line, as the tx equipment will be sending data as E,8,1, and the parity bit will be where the stamp expects a stop bit. Looks like the code you sent me will need to be used on an sx.
I'll try to knock up an sx program which will interface between the stamp and the comms to the equipment, and convert the E,8,1 to N,8,1.
Cheers,
Chris
I would use one of the following BAUDEMODES for the BS-2P:
Inverted· True
· 25076·· 8692
Let us know how you make out with that. The Stamp has no problem with EVEN parity.
Regards,
Bruce Bates