CMM2: DS18B20 Temp sensor problem


Author Message
dddns
Guru

Joined: 20/09/2024
Location: Germany
Posts: 750
Posted: 09:31am 13 Mar 2025      

My 600ms I have lived with could be tuned a bit :)

Type PicoMite GPxx number for the DS18B20 (include the GP) ? gp15

Family name: DS18B20
Rom Code:    28 E9 CA 43 D4 E1 3C 7D
ScratchPad:  68 01 55 05 7F A5 A5 66
Power mode   External


ScratchPad:  68 01 FF FF 1F A5 A5 66
Temperature:  22`C   493.538mS, 9 bit

ScratchPad:  60 01 FF FF 3F A5 A5 66
Temperature:  22.25`C   493.751mS, 10 bit

ScratchPad:  64 01 FF FF 5F A5 A5 66
Temperature:  22.375`C   493.908mS, 11 bit

ScratchPad:  66 01 FF FF 7F A5 A5 66
Temperature:  22.4375`C   493.918mS, 12 bit

Tempr() without Start    1000 `C         209.257 mS
Tempr Start pin,0        1000    99.321
Tempr Start pin,1        22.25   204.063
Tempr Start pin,2        1000    399.376
Tempr Start pin,3        22.4375         803.979

*** The first RomCode value (a1) can be used to add extra devices to the FamilyName & getTemp functions
look for *** comments in those functions

>