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

Without Level Shifter

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



Joined: 28 Jul 2005
Posts: 23

View user's profile Send private message

Without Level Shifter
PostPosted: Tue Apr 04, 2006 11:04 pm     Reply with quote

hi all,

had something to enquire here. I have used PICbasic PRO as well as CCS. While doing the serial transmission and reception, a simple resistor suffices instead of a level shifter in the case of PICBasicPRO compiler. Ive observed that this doesnt work well with CCS. That means the SEROUT2 command of basic sets some additional bits to work around this. Any idea related to this ?
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Tue Apr 04, 2006 11:19 pm     Reply with quote

Quote:
While doing the serial transmission and reception, a simple resistor
suffices instead of a level shifter in the case of PICBasicPRO compiler.
I've observed that this doesnt work well with CCS.

You must define a software UART with the #use rs232() statement
and add the INVERT parameter to it. You need to use a 22K resistor
on the PIC's Rx pin. This limits the current going into the PIC's input
protection diodes to a tolerable amount. If you use the hardware
UART pins, then you must also add the FORCE_SW parameter. Example:
Code:
#use rs232(baud=9600, xmit=PIN_C6, rcv=PIN_C7, FORCE_SW, INVERT)
EmbdFreak



Joined: 28 Jul 2005
Posts: 23

View user's profile Send private message

PostPosted: Wed Apr 05, 2006 12:09 am     Reply with quote

ok.
Thanks again
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