• AVR Freaks

AnsweredHot!EUSART 7 bit transmission

Author
mustafaakgul
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2020/01/29 03:16:08
  • Location: 0
  • Status: offline
2020/02/26 04:13:23 (permalink)
0

EUSART 7 bit transmission

Hello,
 
I would deserve eusart communication between pic18lf46k22 and something( arduino, or smt) using 7bit data bit 1 bit parity (even). But I dont find anything to success this problem? Can you give any advice pls_? In MCC eusart section there are 2 options 8 bit and 9 bit transmission. Cuz of meters standarts , I cant change protocol.
post edited by mustafaakgul - 2020/02/26 04:36:01
#1
JPortici
Super Member
  • Total Posts : 923
  • Reward points : 0
  • Joined: 2012/11/17 06:27:45
  • Location: Grappaland
  • Status: offline
Re: EUSART 7 bit transmission 2020/02/26 04:27:32 (permalink) ☼ Best Answerby mustafaakgul 2020/02/26 04:37:03
4 (1)
1) Why is this in the PIC32 Section? This has nothing to do with PIC32.
2) Have you read the datasheet to see if the EUSART module supports 7bit operation?
3) If it doesn't, do you think there might be a way to use the 8bit operation instead? (think very hard before answering this one)
#2
mustafaakgul
New Member
  • Total Posts : 7
  • Reward points : 0
  • Joined: 2020/01/29 03:16:08
  • Location: 0
  • Status: offline
Re: EUSART 7 bit transmission 2020/02/26 04:39:11 (permalink)
0
Thank you very much for your reply,
 
Firstly sorry for that I am new in this forum this should not be in pic32 section.
I have read many times datasheet eusart module supports 8 and 9 bit operation, but I dont understand that if I use 7 bit data and 1 parity that is totally 8 bit or not?
#3
ric
Super Member
  • Total Posts : 26106
  • Reward points : 0
  • Joined: 2003/11/07 12:41:26
  • Location: Australia, Melbourne
  • Status: online
Re: EUSART 7 bit transmission 2020/02/26 05:56:39 (permalink)
0
Yes, 7 data bits plus parity is 8 bits.
Note that the pic18lf46k22 USART does NOT have a parity generator.
It's your job to calculate the parity and write it to the most signicant bit.
 

I also post at: PicForum
Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
NEW USERS: Posting images, links and code - workaround for restrictions.
To get a useful answer, always state which PIC you are using!
#4
Jump to:
© 2020 APG vNext Commercial Version 4.5