![]() |
Forum Index : Microcontroller and PC projects : 7 bits datas on a Maximite ?
Author | Message | ||||
f1fco Senior Member ![]() Joined: 18/03/2012 Location: FrancePosts: 155 |
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: AustraliaPosts: 3303 |
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: FrancePosts: 155 |
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 Pierre 73s de F1FCO |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
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: FrancePosts: 155 |
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 KingdomPosts: 4071 |
How many stop bits are with the 7 data bits? You might say what is creating them to help people... John |
||||
f1fco Senior Member ![]() Joined: 18/03/2012 Location: FrancePosts: 155 |
1200 or 9600 bauds 7 bits datas even parity 1 stop Pierre. 73s de F1FCO |
||||
MicroBlocks![]() Guru ![]() Joined: 12/05/2012 Location: ThailandPosts: 2209 |
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 KingdomPosts: 4071 |
^^^ what he said! John |
||||
Justplayin![]() Guru ![]() Joined: 31/01/2014 Location: United StatesPosts: 330 |
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: ThailandPosts: 2209 |
@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. Microblocks. Build with logic. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |