CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

"invert" while using uart hardware on 16f88

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
tbsnake



Joined: 17 Jun 2004
Posts: 3

View user's profile Send private message

"invert" while using uart hardware on 16f88
PostPosted: Sat Jul 03, 2004 11:41 am     Reply with quote

Hello. Does anyone know if you can use the Uart hardware on the pic16f88 inverted:

#use rs232(baud=300,parity=N,xmit=PIN_B5,rcv=PIN_B2,bits=8,INVERT)

I worry that it may bump back to software handled uart when it sees the invert.
dyeatman



Joined: 06 Sep 2003
Posts: 1934
Location: Norman, OK

View user's profile Send private message

Using INVERT on hardware UART
PostPosted: Sat Jul 03, 2004 12:25 pm     Reply with quote

You cannot use INVERT with the hardware. You must use external inversion of some sort . If you reverse the normal XMIT and RECV pin designations I think it will generate a SW UART and not enable the HW one.
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Sat Jul 03, 2004 12:37 pm     Reply with quote

Quote:
If you reverse the normal XMIT and RECV pin designations I think
it will generate a SW UART and not enable the HW one.

Another way to get a soft USART on the hardware pins is to break
up the #use rs232() declaration into two statements. Then you don't
have to reverse the pins. See this thread:
http://www.ccsinfo.com/forum/viewtopic.php?t=17803
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group