even paraty setup
stef
Posts: 173
Hi
I always use the Fullduplex.spin for serial comunication. It is working fine. Now I need to interface to a device that has specification 2400,8,E,1.
The baud rate is not a problem to set up.
How do I specify the E (Even parity)??
Stef
I always use the Fullduplex.spin for serial comunication. It is working fine. Now I need to interface to a device that has specification 2400,8,E,1.
The baud rate is not a problem to set up.
How do I specify the E (Even parity)??
Stef
Comments
Search for "FD_Serial_Conf.spin" in the forum, this object should do what you want.
Andy
FDS.tx((CH & %1111111) | (((CH<<1) ^ (CH<<2) ^ (CH<<3) ^ (CH<<4) ^ (CH<<5) ^ (CH<<6) ^ (CH<<7) ^ %10000000) & %10000000))
On receive, you'd do a similar calculation, but compare the result with what was actually received.
I'm going to try it out.
Stef
http://www.freeopenbook.com/pc-hardware-nutshell-2/pchardnut2-CHP-22-SECT-1.html