Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 20:25 16 Sep 2025 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 bits datas on a Maximite ?

Author Message
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 05:54am 13 May 2016
Copy link to clipboard 
Print this post

is it possible to receive 7 bits serial datas on a Maximite ?
firmware 4.5

Pierre.
73s de F1FCO
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3303
Posted: 05:59am 13 May 2016
Copy link to clipboard 
Print this post

No. It is 8 bit data with one or two stop bits.
Geoff Graham - http://geoffg.net
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 06:03am 13 May 2016
Copy link to clipboard 
Print this post

thank you for fast answer Geoff
and 7 bits, is it possible on a MicroMite ?
I need to read datas on 7 bits from a power counter and 8 bits is a garbage...

perhaps with a C function ?
or a future, or special, version of the firmware

PierreEdited by f1fco 2016-05-14
73s de F1FCO
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:14am 13 May 2016
Copy link to clipboard 
Print this post

If it is 7 bits with two stopbits then you could configure for 8 bits with one stopbit and then disregard the one bit extra by masking it of.

Microblocks. Build with logic.
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 06:41am 13 May 2016
Copy link to clipboard 
Print this post

I find the Serialrx function here :
http://www.thebackshed.com/forum/forum_posts.asp?TID=7963&KW=serialrx

is it possible for the Gurus of Cfunction to have a version with the choose of numbers of bits ?
7 for me !

thank you very much

Pierre.

73s de F1FCO
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4071
Posted: 07:14am 13 May 2016
Copy link to clipboard 
Print this post

How many stop bits are with the 7 data bits?

You might say what is creating them to help people...

JohnEdited by JohnS 2016-05-14
 
f1fco

Senior Member

Joined: 18/03/2012
Location: France
Posts: 155
Posted: 07:24am 13 May 2016
Copy link to clipboard 
Print this post

1200 or 9600 bauds
7 bits datas
even parity
1 stop

Pierre.
73s de F1FCO
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 07:36am 13 May 2016
Copy link to clipboard 
Print this post

8 bit 1 stop bit will work
The total number of bits that are send are still 9
7 bits + parity + stop = 9 bits.
8 bits + stop = 9 bits.

Just disregard the parity bit.
Best is to examine the values by looking at their binary representation.
Without the last bit the received data should make sense.

Microblocks. Build with logic.
 
JohnS
Guru

Joined: 18/11/2011
Location: United Kingdom
Posts: 4071
Posted: 07:51am 13 May 2016
Copy link to clipboard 
Print this post

^^^
what he said!

John
 
Justplayin

Guru

Joined: 31/01/2014
Location: United States
Posts: 330
Posted: 08:33am 13 May 2016
Copy link to clipboard 
Print this post


Seems like 8N1 should work, then AND the received data with "01111111" to remove the parity bit.

--Curtis
I am not a Mad Scientist...  It makes me happy inventing new ways to take over the world!!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 08:55am 13 May 2016
Copy link to clipboard 
Print this post

@Geoff, would that not be a good addition to MMBasic to support 7 bits?
As described above it can be done in software if the peripheral does not support it.
There are lots of sensor and equipment that work with 7 bits and toggling/masking some bits in C is trivial.
Edited by MicroBlocks 2016-05-14
Microblocks. Build with logic.
 
Print this page


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

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025