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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/10/02 09:45
Read: times


 
#22802 - Bit Ordering
Hi all

When I read the inputs on P1 I would like to sort them into a byte after debouncing them

ie my inputs are currently
P1.7
P1.2
P1.3

I would like to place these in a byte with the first 3 bits set (assuming the inputs are "1's" of course)

so the byte would look like this

xxxxx723

I am using C to do this so any trendy bit shifting techniques would be appreciated

Regards


Marshall Brown


List of 11 messages in thread
TopicAuthorDate
Bit Ordering            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      
to Andy            01/01/70 00:00      
RE: Bit Ordering Assembler            01/01/70 00:00      
RE: to Andy            01/01/70 00:00      
RE: Bit Ordering            01/01/70 00:00      

Back to Subject List