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 support@ccsinfo.com

i have some question about rs232

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







i have some question about rs232
PostPosted: Thu Jul 15, 2004 12:49 am     Reply with quote

Can i use rs232 both rx and tx at the same pin like Pin b7.
because of smartcard (silver card pic16f877+24lc64) have 1 pin in rb7 for i/o and i will connect it with pic16f877 and communicate between them by rs232.
Can i use it and pic 16f877 will have 2 rs232 in the same MCU.
Plese let me know example.
carlosma



Joined: 24 Mar 2004
Posts: 53
Location: Portugal

View user's profile Send private message Send e-mail MSN Messenger

PostPosted: Thu Jul 15, 2004 1:49 am     Reply with quote

There are two example programs (EX_PBUSM.C and EX_PBUSR.C).
Use RB0 to interface.
Search by "one-wire" on help CCS C Compiler

Carlos
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Jul 15, 2004 7:04 am     Reply with quote

Yes you can use the same pin for RX and TX of a software UART. How you convert the serial to RS232 is another problem. This has little to do with "one-wire" comms.
_________________
The search for better is endless. Instead simply find very good and get the job done.
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