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

rs232:sending bit 0 or 1

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







rs232:sending bit 0 or 1
PostPosted: Sat May 21, 2005 1:39 am     Reply with quote

Can someone help me??I want to send a bit 0 or 1 from pic16f877 to computer using rs232.Here is my idea.
I define pin_c1 as a input.When there is a input at pin_c1, the pin_c6(xmit) will send bit 1 to comp.When there is no input,the pin_c6 will send bit 0 to comp.
Thanx!!
Mark



Joined: 07 Sep 2003
Posts: 2838
Location: Atlanta, GA

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

PostPosted: Sat May 21, 2005 6:29 am     Reply with quote

Data is usually sent 8 data bits at a time to a "computer". I think to get better help, you should clearly define what the task that you are trying to do is. Are you simply trying to determine the state of an input on a PIC? What is the computer going to do with this information?
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