We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: dany
Last Updated: 2016-02-21
Package Version: 1.0.0.0
Category: Measurement
Downloaded: 1162 times
Followed by: 3 users
License: MIT license
This library provides the basic one-wire search ROM and search ALARM routines, e.g. for the DS1820, the DS18S20 and the DS18B20.
Do you want to subscribe in order to receive notifications regarding "OW_Utilities for PIC32" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "OW_Utilities for PIC32" changes.
Do you want to report abuse regarding "OW_Utilities for PIC32".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1435254357_ow_utilities_for_mikropascal_pic32.mpkg [1.43MB] | mikroPascal PRO for PIC32 |
|
1435755189_ow_utilities_for_other_pic32.zip [2.16MB] | Other PIC32 Compilers |
|
1435755207_ow_utilities_for_mikrobasic_pic32.mpkg [1.43MB] | mikroBasic PRO for PIC32 |
|
Library "OW_Utilities" provides the basic one-wire search ROM and search ALARM routines e.g. for the DS1820, the DS18S20 and the DS18B20 digital tempsensors.
The interface: var ROM_NO: array[8] of byte;
// the rom code found (if any) will be stored in this array function OW_Search_First_ROM(var Port_: byte; Bit_: byte): boolean;
// Search for the first ROM number. Returns true of one is found. In this case the found number is in "ROM_NO".
function OW_Search_First_Alarm(var Port_: byte; Bit_: byte): boolean;
// Search for the first ROM number of a device in alarm. Returns true of one is found. In this case the found number is in "ROM_NO".
function OW_Search_Next(var Port_: byte; Bit_: byte): boolean;
// Search for the next Rom number or the next Rom number of a device in alarm, depending on which "search_first" was used before.
// Returns true of one is found. In this case the found number is in "ROM_NO".
One-wire search documentation.
The Pascal code is translated from the C-code provided in above document.