Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 22:38 29 Apr 2024 Privacy Policy
Jump to

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 Kingdom
Posts: 82
Posted: 11:38am 25 Nov 2014
Copy link to clipboard 
Print this post

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: Australia
Posts: 3165
Posted: 01:04pm 25 Nov 2014
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 82
Posted: 08:15pm 25 Nov 2014
Copy link to clipboard 
Print this post

  Geoffg said   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


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: Australia
Posts: 935
Posted: 08:40pm 25 Nov 2014
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 3659
Posted: 11:00pm 25 Nov 2014
Copy link to clipboard 
Print this post

If that fails, try ORing it.

(I'm unsure which way up the bits are!)

John
 
BobD

Guru

Joined: 07/12/2011
Location: Australia
Posts: 935
Posted: 01:14am 26 Nov 2014
Copy link to clipboard 
Print this post

  JohnS said   If that fails, try ORing it.

(I'm unsure which way up the bits are!)

John

John, you have it right. I should have advised an OR.
Bob
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024