Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/09/06 06:08
Read: times


 
#126029 - Try this
Responding to: ???'s previous message
Jez

How about something like this?

bdata unsigned char shifter;
sbit db1 = shifter^0;
sbit db2 = shifter^1;
sbit db3 = shifter^2;
sbit db4 = shifter^3;
sbit db5 = shifter^4;
sbit db6 = shifter^5;
sbit db7 = shifter^6;
sbit db8 = shifter^7;

Then to shift, just a simple one will do
shifter <<= 1;

Hope this will help
Jerson

List of 5 messages in thread
TopicAuthorDate
shift register in C            01/01/70 00:00      
   bdata?            01/01/70 00:00      
      I'm not sure            01/01/70 00:00      
   ah well,all sorted now            01/01/70 00:00      
      Try this            01/01/70 00:00      

Back to Subject List