In the software serial routines, MELabs must be looking at the settings in order to determine how to send the data bits and set the parity right? Problem is it's a define and not a variable or it most likely could be changed on the fly.
I sure hate to bit bang this but I may have to.
Richard
>>I sure hate to bit bang this but I may have to.
you do not have to, PBP has done the work for you.
>>two adjacent pins connected together
another thought - no need for adjacent pins - use SEROUT for 8N1 and SEROUT2 for 7N1 ... using the same output port pin.
If PORTA.1 = 1 then ; check jumper
SEROUT PORTB.0, .... ; need 8N1
else
SEROUT2 PORTB.0, ... ; need 7N1
ENDIF
will that work?
Also, I do not see why you keep mentioning CCS??? We are taking PBP here
Paul Borgmeier
Salt Lake City, UT
USA
__________________
Hi Richard,
I hope this approach works for you.
Best of the Day,
Last edited by paul borgmeier; - 12th February 2008 at 17:50. Reason: grammar
Paul Borgmeier
Salt Lake City, UT
USA
__________________
I ended up using SER2 for the 7,N,1 Stuff then
using HSER for the 8,N,1 Stuff.
Check the Dip switch, Configure TXSTA, RCSTA, SPBRG to the values needed or Zero if not needed. This worked great and allowed me to still use the modifiers like in SER2.
Thanks for the ideas.
Richard
Bookmarks