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: Jim Walsh
Last Updated: 2017-06-19
Package Version: 1.0.0.0
Example: 1.0.0.0
Category: Communication
Downloaded: 917 times
Followed by: 1 user
License: MIT license
A small example project (PIC18F45K22) that demonstrates using Maxim's search algorithm to find and identify any 1-wire devices connected to the bus. The demo program searches the bus and sends the ROM code of any devices it finds thru the UART port.
Do you want to subscribe in order to receive notifications regarding "One-Wire Search Demo" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "One-Wire Search Demo" changes.
Do you want to report abuse regarding "One-Wire Search Demo".
DOWNLOAD LINK | RELATED COMPILER | CONTAINS |
---|---|---|
1405011186_1_wire_bus_searc_mikroc_pic.zip [21.28KB] | mikroC PRO for PIC |
|
This example demonstrates using Maxim's search algorithm to find and identify any 1-Wire devices that are connected to the bus. The program searches the bus for 1-Wire devices and sends the ROM code of any that it discovers thru the UART port. It also shows an example of a targeted search that will find only devices of a certain 'family' , in this case 0x28 (DS18B20) and 0x10 (DS18S20) , as well as an 'exclusive' search that will find all devices except for a certain family. To start the demo, fire up the MikroE UART terminal (or whatever program blows your hair back) and send an 'S' to the PIC. In theory this will work with any 1-Wire devices on the bus, but all I had on hand to test with was a DS18S20 and a couple of DS18B20 temp sensors. Here are some of the results I got using various combinations...
Here is a shot of the example showing the 'exclusive' search results. I left these out of the other examples so the whole display would fit in the screen shot without having scroll bars... :)