Briartek
Joined: 07 Nov 2003 Posts: 5
|
Pic16F688 HW UART bit=7 question |
Posted: Wed Sep 12, 2007 3:26 pm |
|
|
WHen i use the following directive, rs232 reads work fine:
#use rs232(baud=1200,parity=O,xmit=PIN_C4,rcv=PIN_C5,bits=7,stream=RT,FORCE_SW,ERRORS)
When i remove the FORCE_SW,
#use rs232(baud=1200,parity=O,xmit=PIN_C4,rcv=PIN_C5,bits=7,stream=RT,ERRORS)
or
#use rs232(baud=1200,parity=O,xmit=PIN_C4,rcv=PIN_C5,bits=7,stream=RT,DISABLE_INTS)
or
#use rs232(baud=1200,parity=O,xmit=PIN_C4,rcv=PIN_C5,bits=7,stream=RT,DISABLE_INTS,ERRORS)
trying to use the HW uart, no interrupts, it no longer works. The only thing i could think of was the HW uart does not support the bits=7. Any thoughts? |
|