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
Posted: Wed Mar 09, 2005 7:15 am
Take a look at the shift_left() shift_right() functions in the CCS manual.
stma
Joined: 16 Feb 2004 Posts: 26
Posted: Wed Mar 09, 2005 7:30 am
Thanks. Would of got there eventually but appreciate the pointer.
Steve
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