TOP Contributors

  1. MIKROE (2652 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136624 times)
  2. FAT32 Library (69827 times)
  3. Network Ethernet Library (55884 times)
  4. USB Device Library (46223 times)
  5. Network WiFi Library (41860 times)
  6. FT800 Library (41076 times)
  7. GSM click (28942 times)
  8. PID Library (26402 times)
  9. mikroSDK (26316 times)
  10. microSD click (25328 times)
Libstock prefers package manager

Package Manager

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]

< Back
Library

OW_Utilities

Rating:

5

Author: dany

Last Updated: 2016-02-18

Package Version: 1.0.0.0

Category: Measurement

Downloaded: 3154 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.

No Abuse Reported

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".

  • Information
  • Comments (2)

Library Blog

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).

ALSO FROM THIS AUTHOR

C RTOS for mP and mB (P18 and P24)

10

CRTOS stands for Cooperative Real Time Operating System; designed for and written specifically in mP/mB from mikroElektronika. The system uses cooperative as opposed to pre-emptive scheduling which means that the application code you write has to voluntarily release back to the operating system at appropriate times.

[Learn More]

Tool: Bootloader HOST (windows) for PIC

1

This is (for a change) not a bootloader firmware (the bootloader part present in the PIC), but a bootloader Host for control of the PIC bootloader. It is compatible with the bootloader firmwares from mikroElektronika, and is capable of handling all PIC types. Original development: Joop Beunders.

[Learn More]

Article: Record Member alignment for PIC24/dsPIC and PIC32

1

Describes how record members are stored internally in their records, and what problems to expect if that is not taken into account.

[Learn More]