Loading...
Searching...
No Matches

Internal addresses, registers, constants for DS1822 and DS18B20 temperature sensors. More...

Detailed Description

Internal addresses, registers, constants for DS1822 and DS18B20 temperature sensors.

Author
Frits Kuipers frits.nosp@m..kui.nosp@m.pers@.nosp@m.gmai.nosp@m.l.com
Leandro Lanzieri leand.nosp@m.ro.l.nosp@m.anzie.nosp@m.ri@h.nosp@m.aw-ha.nosp@m.mbur.nosp@m.g.de

Definition in file ds18_internal.h.

Go to the source code of this file.

ds18 commands

#define DS18_CMD_CONVERT   (0x44)
 
#define DS18_CMD_RSCRATCHPAD   (0xbe)
 
#define DS18_CMD_WRITESCRATCHPAD   (0x4e)
 
#define DS18_CMD_COPYSCRATCHPAD   (0x48)
 
#define DS18_CMD_RECALLE   (0xb8)
 
#define DS18_CMD_RPWRSPPLY   (0xb4)
 
#define DS18_CMD_SEARCHROM   (0xf0)
 
#define DS18_CMD_READROM   (0x33)
 
#define DS18_CMD_MATCHROM   (0x55)
 
#define DS18_CMD_SEARCHROM   (0xf0)
 
#define DS18_CMD_ALARMSEARCH   (0xec)
 
#define DS18_CMD_SKIPROM   (0xcc)
 

ds18 delays

#define DS18_DELAY_RESET   (480U)
 
#define DS18_DELAY_PRESENCE   (60U)
 
#define DS18_DELAY_SLOT   (60U)
 
#define DS18_SAMPLE_TIME   (10U)
 
#define DS18_DELAY_CONVERT   (750U * US_PER_MS)
 
#define DS18_DELAY_RW_PULSE   (1U)
 
#define DS18_DELAY_R_RECOVER   (DS18_DELAY_SLOT - DS18_SAMPLE_TIME)
 

Macro Definition Documentation

◆ DS18_CMD_ALARMSEARCH

#define DS18_CMD_ALARMSEARCH   (0xec)

Definition at line 42 of file ds18_internal.h.

◆ DS18_CMD_CONVERT

#define DS18_CMD_CONVERT   (0x44)

Definition at line 32 of file ds18_internal.h.

◆ DS18_CMD_COPYSCRATCHPAD

#define DS18_CMD_COPYSCRATCHPAD   (0x48)

Definition at line 35 of file ds18_internal.h.

◆ DS18_CMD_MATCHROM

#define DS18_CMD_MATCHROM   (0x55)

Definition at line 40 of file ds18_internal.h.

◆ DS18_CMD_READROM

#define DS18_CMD_READROM   (0x33)

Definition at line 39 of file ds18_internal.h.

◆ DS18_CMD_RECALLE

#define DS18_CMD_RECALLE   (0xb8)

Definition at line 36 of file ds18_internal.h.

◆ DS18_CMD_RPWRSPPLY

#define DS18_CMD_RPWRSPPLY   (0xb4)

Definition at line 37 of file ds18_internal.h.

◆ DS18_CMD_RSCRATCHPAD

#define DS18_CMD_RSCRATCHPAD   (0xbe)

Definition at line 33 of file ds18_internal.h.

◆ DS18_CMD_SEARCHROM [1/2]

#define DS18_CMD_SEARCHROM   (0xf0)

Definition at line 38 of file ds18_internal.h.

◆ DS18_CMD_SEARCHROM [2/2]

#define DS18_CMD_SEARCHROM   (0xf0)

Definition at line 38 of file ds18_internal.h.

◆ DS18_CMD_SKIPROM

#define DS18_CMD_SKIPROM   (0xcc)

Definition at line 43 of file ds18_internal.h.

◆ DS18_CMD_WRITESCRATCHPAD

#define DS18_CMD_WRITESCRATCHPAD   (0x4e)

Definition at line 34 of file ds18_internal.h.

◆ DS18_DELAY_CONVERT

#define DS18_DELAY_CONVERT   (750U * US_PER_MS)

Definition at line 54 of file ds18_internal.h.

◆ DS18_DELAY_PRESENCE

#define DS18_DELAY_PRESENCE   (60U)

Definition at line 51 of file ds18_internal.h.

◆ DS18_DELAY_R_RECOVER

#define DS18_DELAY_R_RECOVER   (DS18_DELAY_SLOT - DS18_SAMPLE_TIME)

Definition at line 56 of file ds18_internal.h.

◆ DS18_DELAY_RESET

#define DS18_DELAY_RESET   (480U)

Definition at line 50 of file ds18_internal.h.

◆ DS18_DELAY_RW_PULSE

#define DS18_DELAY_RW_PULSE   (1U)

Definition at line 55 of file ds18_internal.h.

◆ DS18_DELAY_SLOT

#define DS18_DELAY_SLOT   (60U)

Definition at line 52 of file ds18_internal.h.

◆ DS18_SAMPLE_TIME

#define DS18_SAMPLE_TIME   (10U)

Definition at line 53 of file ds18_internal.h.