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 (136649 times)
  2. FAT32 Library (69861 times)
  3. Network Ethernet Library (55899 times)
  4. USB Device Library (46238 times)
  5. Network WiFi Library (41869 times)
  6. FT800 Library (41101 times)
  7. GSM click (28956 times)
  8. PID Library (26403 times)
  9. mikroSDK (26323 times)
  10. microSD click (25338 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

Expanders

5

Package with "Expander" librarie(s). For now only 1 library is there: PCF8574(A). The documentation for the (SPI) expanders 74HCT165 (input expander) and 74HCT595 (output expander) is added.

[Learn More]

Memory

6

Libaries are:
- "MemManager_": simple memory manager making dynamic variables possible in mP (procedures GetMem and FreeMem available), and
- "Eepromvariable": Procedures/functions that write and read the content of any type of variable to/from the internal PIC Eeprom.

[Learn More]

TempSensors Ds1820 LM35

16

The basic functions for the DS18(S/B)20 (onewire digital temperature sensor), including string output, ready to display. A routine to convert a more than 9 bits temperature read from a DS18B20 to a string (to e.g. display on an LCD) is also present. Including Parasite Power and Configuration routines. The LM35 basic functions, code efficient.

[Learn More]