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

Reading I/O port problem

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







Reading I/O port problem
PostPosted: Sat Nov 01, 2008 1:04 pm     Reply with quote

Reading the compiler manual I can't find any instruction for reading the
entire port (for example reading the 8 bits of portb from b0 to b7)) at
same time. In PicBasic I made that with peek command to read the
entire bit, but in C I only find input pin command. So if want to read 8
bits I must repeat 8 times this command, any suggestion? Thanks
n-squared



Joined: 03 Oct 2006
Posts: 99

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Nov 01, 2008 1:52 pm     Reply with quote

look for input_a(), input_b() etc.

Best regards
_________________
Every solution has a problem.
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