TOP Contributors

  1. MIKROE (2760 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139223 times)
  2. FAT32 Library (71732 times)
  3. Network Ethernet Library (57114 times)
  4. USB Device Library (47426 times)
  5. Network WiFi Library (43051 times)
  6. FT800 Library (42401 times)
  7. GSM click (29832 times)
  8. mikroSDK (28038 times)
  9. PID Library (26881 times)
  10. microSD click (26196 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: 1152 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

JoyStick to USB

0

The purpose of this project is to provide an interface between an “old” analog joystick (in this case a joystick from Quickshot with 2 buttons and an X and Y positioning), connected via a game port (DB15 connector) and a PC via USB.

[Learn More]

PS2 Mouse Read

5

Returns the Delta X (hor), the Delta Y values (vert), the Delta Z (scrolwheel) values and the button status if one of those has changed. Only tested on P18 with 48 MHz MCU clock (will work probably also on 16 and on lower MCU clock speeds).

[Learn More]

Tool: Pascal Source Code formatter

4

This tool is a simple mikroPascal source code formatter, mainly making correct and readable code indentation.

[Learn More]