TOP Contributors

  1. MIKROE (2653 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 (136708 times)
  2. FAT32 Library (69919 times)
  3. Network Ethernet Library (55932 times)
  4. USB Device Library (46258 times)
  5. Network WiFi Library (41883 times)
  6. FT800 Library (41144 times)
  7. GSM click (28979 times)
  8. PID Library (26408 times)
  9. mikroSDK (26355 times)
  10. microSD click (25351 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 for PIC32

Rating:

5

Author: dany

Last Updated: 2016-02-21

Package Version: 1.0.0.0

Category: Measurement

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

No Abuse Reported

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

  • Information
  • Comments (0)

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.

ALSO FROM THIS AUTHOR

USB_NA

24

USB libraries, new architecture. Permits composite USB devices (possibilities: HID, CDC and MSD). -- for P18's or P24's with USB --
Version 1.1: Modified so that (changes to) values in "UsbProjectItems" like PID and VID are actually visible in the executable.

[Learn More]

Small Telephone Exchange

5

Small private telephone exchange, initially meant to make 2 modems (one connected to a "client", the other to a "server") communicate with each other to test a server/client system before e.g. putting the server on the web.

[Learn More]

RTOS for PIC32

5

Pre-emptive RTOS for PIC32, written (almost entirely) in mikroPascal/mikroBasic/mikroC. The way of working is very easy to understand. The functionality is kept very limited with respect to other RTosses, to keep it simple. The library code only consists of 1 .mpas file...

[Learn More]