Sign in

username:

password:



Not a member?

Search rabbit-semi



Search tips

Subscribe to rabbit-semi



Ads

Discussion Groups

Discussion Groups | Rabbit-Semi | how to open serial port C with 7databits, 2 stopbits and even parity.

This is a group for folks designing and programming embedded systems using the Rabbit Semiconductor C-programmable microcontroller. Rabbit Semi is a spin-off from Z-World who makes a variety of embedded modules and tools. This group is not affiliated with either Rabbit or Z-World, but is a user forum for sharing ideas, asking questions, flaunting knowledge, and other typical user group stuff. The Rabbit is a powerful uC, supported by a full-featured C-compiler.

how to open serial port C with 7databits, 2 stopbits and even parity. - vidyadhar dodamani - Jul 25 9:33:00 2008

Hi friends,
can anybody tell me how i should open the serial port C with 7 databits, 2
stopbits and with even parity.i will thankful to you for replying.
if possible plz suggest me the code snipetts regarding that.

Thanks.

Regards
Vidyadhar



(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )


Re: how to open serial port C with 7databits, 2 stopbits and even parity. - Scott Henion - Jul 25 9:38:09 2008

vidyadhar dodamani wrote:
> Hi friends,
> can anybody tell me how i should open the serial port C with 7
> databits, 2 stopbits and with even parity.i will thankful to you for
> replying.
> if possible plz suggest me the code snipetts regarding that.
>
Do you need 2 stop bits? Very few devices actually need more than 1.

The DC manual describes the parameters to open the port. Selecting 2
stop bits adds ectra overhead as it need to use 9-bit mode and emulate
the extra bit.

--
------------------------------------------
| Scott G. Henion| s...@shdesigns.org |
| Consultant | Stone Mountain, GA |
| SHDesigns http://www.shdesigns.org |
------------------------------------------
Rabbit libs: http://www.shdesigns.org/rabbit/
today's fortune
And I will do all these good works, and I will do them for free!
My only reward will be a tombstone that says "Here lies Gomez Addams --
he was good for nothing."
-- Jack Sharkey, The Addams Family


(You need to be a member of rabbit-semi -- send a blank email to rabbit-semi-subscribe@yahoogroups.com )