![]() |
Forum Index : Microcontroller and PC projects : 300 baud but 7E2
Author | Message | ||||
plasma Guru ![]() Joined: 08/04/2012 Location: GermanyPosts: 437 |
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: AustraliaPosts: 6266 |
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: AustraliaPosts: 71 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |