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

i/o to variable array

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



Joined: 16 Feb 2004
Posts: 26

View user's profile Send private message

i/o to variable array
PostPosted: Wed Mar 09, 2005 6:37 am     Reply with quote

Hi,
I am trying to read a bit from an i/o and store in a variable. I want to do this 32 times from the same i/o to give a 32bit integer. I could do it when I was using picbasic pro. How do I do it in CCS C?
i.e. take current status of b3 (0 or 1), store it in array[0] then move a step(which i can do) and read b3 and store it in array[1] etc etc
Thanks it could save me a lot of head scratching
Steve
Mark



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

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

PostPosted: Wed Mar 09, 2005 7:15 am     Reply with quote

Take a look at the shift_left() shift_right() functions in the CCS manual.
stma



Joined: 16 Feb 2004
Posts: 26

View user's profile Send private message

PostPosted: Wed Mar 09, 2005 7:30 am     Reply with quote

Thanks. Would of got there eventually but appreciate the pointer.
Steve
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