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

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/17/05 15:53
Read: times


 
#85108 - What's the problem?
Responding to: ???'s previous message
Leon Botha said:
Is there a way to do a type of sbit or Port masking to select the correct pin :
sbit	ibutton_io = 0xA0;		// P2.0 – Read 1
sbit	ibutton_io = 0xA2;		// P2.2 – Read 2
sbit	ibutton_io = 0xA4;		// P2.4 – Read 3


P2 is bit addressable, so of course you can individually address each bit (pin) - but, obviously, you will need to give each bit (pin) a different name!

They cannot all be called "ibutton_io," can they, or how can you tell which particular ibutton_io you're talking about?!




List of 24 messages in thread
TopicAuthorDate
sbit            01/01/70 00:00      
   I do not understand            01/01/70 00:00      
      You mean Dallas 1-Wire?            01/01/70 00:00      
   Re            01/01/70 00:00      
   What's the problem?            01/01/70 00:00      
      I think that...            01/01/70 00:00      
         indirect bit addressing            01/01/70 00:00      
         The same iButton on all 3?            01/01/70 00:00      
         sbit            01/01/70 00:00      
            access all 3 , one at a time            01/01/70 00:00      
   I had the same problem            01/01/70 00:00      
      Lets try again            01/01/70 00:00      
         Need ?            01/01/70 00:00      
         Why?            01/01/70 00:00      
         There is always the switch statement            01/01/70 00:00      
            something like this...            01/01/70 00:00      
         Simultaneous example            01/01/70 00:00      
            Use MASK rather than bit address            01/01/70 00:00      
               Oooops, sorry...            01/01/70 00:00      
      Multiple 1Wire            01/01/70 00:00      
         How to post code, and possible hang-up            01/01/70 00:00      
         simultaneous?            01/01/70 00:00      
            would even be better            01/01/70 00:00      
               If it worked!            01/01/70 00:00      

Back to Subject List