| ??? 01/17/05 15:18 Read: times |
#85102 - Re Responding to: ???'s previous message |
You must rewrite your 1-wire routines to use bytes instead bits. Then you can mask a certain bit in this byte, e.g.
<pre> unsigned char mask_1w = 0x02; // P2.1 clear: P2 &= ~mask_1w; set: P2 |= mask_1w; check if 0: if( (P2 & mask_1w) == 0 ) Peter |
| Topic | Author | Date |
| 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 |



