This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Thursday, September 13, 2007

[oopic] Re: Roboteq motor controller.

--- 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

<*> 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:

http://docs.yahoo.com/info/terms/

No comments: