11/10/2023 0 Comments One wire library![]() ![]() Scans the one wire bus to detect all devices Returns 0 if a presense pulse was detected If there is at least one sensor on the bus then it will generate a presence pulse. ![]() Parameters BYTE Index Select which pad byte to use 0-8 The index byte can go from 0 - 8 to reference the 9 individual scratchpad bytes. Returns a byte from the last read scratchpad at position index. Return value This call does not return a value ![]() Transmit a byte to the one wire bus a bit at a time Receives a byte from the one wire bus a bit at a time Multiple One Wire Demo Downloadable macro reference DS1820_StartConversionĬommands all sensors to start a temperature conversion A0 increases the sensor index, A1 decreases the sensor index. Switches connected to pins A0 and A1 allow the currently active sensor to be changed. Here is an example program to read multiple DS18S20+ one wire temperature sensor devices connected to pin C0 and display the temperature of the selected sensor onto a LCD connected to PortB. The DS18S20+ is connected to pin C0 and to display the temperature there is a LCD connected to PortB. Here is an example program to read a single DS18S20+ one wire temperature sensor device using a 16F1937 device. Low level routines for controlling or interacting with a standard one wire interface. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |