datasheetbank_Logo
Технический паспорт Поисковая и бесплатно техническое описание Скачать

DLP-245PB-G Просмотр технического описания (PDF) - Unspecified

Номер в каталоге
Компоненты Описание
Список матч
DLP-245PB-G Datasheet PDF : 17 Pages
1 2 3 4 5 6 7 8 9 10 Next Last
0xAC – DS18S20 Start Convert
Parameters:
Returns:
Function:
Example:
Port Pin – Selects the microcontroller port pin on the 16F877A to be used for
communication with the DS18B20 temperature sensor.
1 Byte: A single byte indicating the result of trying to reset the temperature
sensor.
Sensor status definitions:
99: Sensor ready
8: Short circuit detected
2: No sensor detected
This function will select a port pin for communicating with a DS18B20
temperature sensor and start a temperature conversion. In addition to power and
ground connections, a 1.5K to 4.7K pull-up resistor must be connected between
VCC and the data pin of the DS18B20 for proper communication. The
conversion time for the DS18B20 is specified for a maximum of 750 milliseconds.
0x2, 0xAC, 0x30, 0x9E – Starts a temperature conversion on 16F877A port pin
B0.
0xAD – DS18B20 Read Data
Parameters:
Returns:
Function:
Example:
Port Pin – Selects the microcontroller port pin on the 16F877A to be used for
communication with the DS18B20 temperature sensor.
9 Bytes: The contents of the scratchpad memory in the DS18B20.
This function will select a port pin for communicating with a DS18B20
temperature sensor and request the current contents of the DS18B20’s
scratchpad memory. A conversion (command 0xAC) must have been previously
requested for the data to be current. Additionally, host software must wait at
least 750 milliseconds for the conversion to complete before reading the 9 bytes
of data. In addition to power and ground, a 1.5K to 4.7K pull-up resistor must be
connected between VCC and the data pin of the DS18B20 for proper
communications. (For an example of how to calculate .1°C resolution
temperature data from the 9 bytes of return data, refer to the example Windows
source code.)
0x2, 0xAD, 0x30, 0x9F – Requests 9 byte temperature data from 16F877A port
pin B0.
V2.3
Page 10 of 15
February 2007

Share Link: 

datasheetbank.com [ Privacy Policy ] [ Request Datasheet ] [ Contact Us ]