Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.
|
Forum Index : Microcontroller and PC projects : 7 Data Bits
Author | Message | ||||
edu001 Regular Member Joined: 14/07/2014 Location: United KingdomPosts: 82 |
Hi Is it possible to setup COM1 on the Micromite 44 pin as 7bit, no parity, 1 or 2 stop bits ? I think the answer is no but I just wanted to check |
||||
Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3165 |
Sorry, the answer is indeed no. But, if your sender was using 7-bits and 2 stop bits you could receive it as 8-bits with one stop bit and ignore the high bit in the received character. Geoff Geoff Graham - http://geoffg.net |
||||
edu001 Regular Member Joined: 14/07/2014 Location: United KingdomPosts: 82 |
Thanks for confirming that Geoff I thought that was the case, I read that you can get around the receive problem but I needed to transmit in that format |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
You may be able to do it like this. AND every character you send with &H80 (or &B10000000 if that floats your boat) so that the high order bit is always on and this is the same as a stop bit. You then have 7 bits of data and 2 stop bits. |
||||
JohnS Guru Joined: 18/11/2011 Location: United KingdomPosts: 3659 |
If that fails, try ORing it. (I'm unsure which way up the bits are!) John |
||||
BobD Guru Joined: 07/12/2011 Location: AustraliaPosts: 935 |
John, you have it right. I should have advised an OR. Bob |
||||
Print this page |