Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 23:11 01 Jul 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 : 300 baud but 7E2

Author Message
plasma
Guru

Joined: 08/04/2012
Location: Germany
Posts: 437
Posted: 03:51pm 20 Mar 2016
Copy link to clipboard 
Print this post

Hi ,
ive got a industrial dcf modul which sends the data with 300 baud but 7 bit , even Parity and 2 stoppbits.

i need receiving and sending with this , what should i do. ?

gtx
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6266
Posted: 06:03pm 20 Mar 2016
Copy link to clipboard 
Print this post

Use 8 bit no parity.
For receiving, just mask out the parity bit for each character.
For sending, you will have to generate the parity yourself.
I am sure someone here did that a few months ago.

Jim
VK7JH
MMedit
 
JTR0701
Regular Member

Joined: 10/07/2013
Location: Australia
Posts: 71
Posted: 07:03pm 20 Mar 2016
Copy link to clipboard 
Print this post


Jim agrees with Jim. Almost if mot all PICs have a 9 bit mode. So 7 for data, 8th bit even parity, 9th bit always set high for first stop bit plus standard stop bit.


Alleged even parity generator for PIC18.


swapf one_byte_cache,W, ACCESS
xorwf one_byte_cache,W, ACCESS
addlw 0x41
iorlw 0x7C
addlw 0x02
bcf one_byte_cache, 7, ACCESS
btfsc WREG,7 , ACCESS
bsf one_byte_cache, 7, ACCESS
 
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