Nothing uses parity for data error detection any more.
Sorry, my bad,
DLC
ooPIC Tech Support
-----Original Message-----
From: "rtstofer" <rstofer@pacbell.net>
Subj: [oopic] Re: Roboteq motor controller.
Date: Thu Sep 13, 2007 11:34 pm
Size: 1K
To: oopic@yahoogroups.com
--- In oopic@yahoogroups.com, ooPIC Tech Support <dennis.clark@...> wrote:
>
> If you understand how to use the PIC micro then you can also use the
> oRAM object or the PIC object to directly access the USART registers to
> set up any word length and parity you want. I can't believe anyone
uses
> something so arcane as parity, how last century!
>
> DLC
Are you sure about the PIC USART? I looked at the PIC16F877A
datasheet and it is pretty clear in section 10.2 that "Parity is not
supported by the hardware but can be implemented in software (and
stored as the ninth data bit)."
In this case, not only would the OP have to calculate the parity bit
but also stick it in the 8th bit. Having internal (to the OOPic)
access to the USART for the 9th bit wouldn't help. And unlike the
AVRs, the PIC USART will only do 8 or 9 bit chars where the 9th bit is
either parity or the address flag. The AVR will do 5,6,7,8 or 9 data
bits and will generate ever or odd parity as well as check it on receipt.
Richard
Yahoo! Groups Links
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/oopic/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/oopic/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com
<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
No comments:
Post a Comment