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-18
Package Version: 1.0.0.0
Category: Measurement
Downloaded: 3283 times
Followed by: 1 user
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" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "OW_Utilities" changes.
Do you want to report abuse regarding "OW_Utilities".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1422297685_ow_utilities_mikropascal_pic.mpkg [70.06KB] | mikroPascal PRO for PIC |
|
1422297699_ow_utilities_other_pic.zip [36.54KB] | Other PIC Compilers |
|
1422297710_ow_utilities_mikrobasic_pic.mpkg [70.10KB] | mikroBasic PRO for PIC |
|
1422297726_ow_utilities_mikropascal_pic24.mpkg [38.10KB] | mikroPascal PRO for dsPIC30/33 & PIC24 |
|
1422297740_ow_utilities_other_pic24.zip [20.66KB] | Other PIC24 Compilers |
|
1422297751_ow_utilities_mikrobasic_pic24.mpkg [38.33KB] | mikroBasic PRO for dsPIC30/33 & PIC24 |
|
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.
-------------------------------------------------------------------------------------------------------------------------------------- 2013-11-18: Added the PIC24 versions.
----------------------------------------------------------------------------------------------------------------------------------------
2014-03-13: The mikroBasic files and zip files have been updated. All mB sources are present now (not tested if compilable though).
2015-01-26: Replaced the mB files: all mB files are compilable now (which e.g. means that all "with" statements are dealt with). I could however not link and test the libraries (no mB licence).