| ??? 09/11/03 08:17 Read: times |
#54528 - RE: DS18S20 Responding to: ???'s previous message |
Hi Tom,
please can you E-Mail me, which problems you have seen ? I gues, you understood not my clever approach of using the ROM search feature: My ROM search routine found only one device at every call and leave them alreday in the addressed state, so you can read out the temperature directly. Then the next call of the ROM search routine address the next device and so on. To do so, the return value of the last call must be used as input for the next call. Also the 8 byte ID field must be unchanged. A special return value mark, that the last device was found and a special input value signal, that the ROM search must be started from scratch. In opposition most times I have seen a more awkward, slower and dangerous way: The ROM search algorithm was done in a loop for all devices. And so many more RAM was needed, since all addresses must be stored (number of devices * 8 byte). If there is no memory check done, this way crashes, if more than the expected count of 1-wire devices was connected and the stack was overwritten by these additional addresses. Furthermore this approach consume more time, since after it you must address the devices a second time to read out the temperature value. Peter |
| Topic | Author | Date |
| DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 - debugging | 01/01/70 00:00 | |
| RE: DS18S20 - debugging | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| RE: Obsolete? | 01/01/70 00:00 | |
| RE: Obsolete? | 01/01/70 00:00 | |
| Mechanical interface to Sensors? | 01/01/70 00:00 | |
| RE: Mechanical interface to Sensors? | 01/01/70 00:00 | |
| RE: Mechanical interface to Sensors? | 01/01/70 00:00 | |
| RE: Mechanical interface to Sensors? | 01/01/70 00:00 | |
| RE: Mechanical interface to Sensors? | 01/01/70 00:00 | |
| RE: Mechanical interface to Sensors? | 01/01/70 00:00 | |
| RE: DS18S20 | 01/01/70 00:00 | |
| CODE issues DS18S20 | 01/01/70 00:00 | |
RE: CODE issues DS18S20 | 01/01/70 00:00 |



