Skip to main content

Module command

Module command 

Source
Expand description

The function commands a DS18B20 answers once it has been addressed.

Constantsยง

CONVERT_T
Start a temperature conversion; the result lands in the scratchpad.
COPY_SCRATCHPAD
Copy those three bytes from the scratchpad to the EEPROM.
READ_POWER_SUPPLY
Answer one bit: 1 for external power, 0 for parasite power.
READ_SCRATCHPAD
Send the nine scratchpad bytes, CRC last.
RECALL_EEPROM
Reload the three EEPROM bytes into the scratchpad.
WRITE_SCRATCHPAD
Take the alarm thresholds and the configuration byte, three bytes in that order.