One Wire library

  for XCSB Structured Basic compiler




One Wire Library 



Dallas Semiconductors














Note the contents and files on this webpage are the responsibility and property of Colin Barnard and not XCPROD or XCSB.

Please direct any problems or questions about this page or the one wire files, initially to myself .

The one wire library consists of two files written completely in XCSB structured basic.

one_wire.bas - contains all the basic functions for communicating with  Dallas one wire devices.

		Functions contained in the above file
			Skip Rom command. 
			Reset command.
			Read a byte from one wire bus.
			Write a byte to one wire bus.
			Read a bit from one wire bus.

The use of this file is free for non commercial use. If you find the file useful, and feel the need to donate some money to the author, payments can be made via PayPal with the button on the left. 

one_wire_utils.bas - contains advanced functions for the Dallas one wire devices.

		Advanced functions in the utils library file
			Read Rom (Receives the one wire serial number from a device).
			Matchrom (Pic ram based serial number specific device address).
			Matchrom (Pic rom based serial number specific device address).
			Search Rom (default search of 8 devices can be altered by the user).
			Find Family **
			CRC 8 check (Uses no look up tables).
			CRC 16  **
			Strong Pull Up (For high current devices or long tranmission lines)

The one_wire_utils library file is available by email only, for the nominal amount of 10.00. There are no restrictions on its use thereafter. 

** Future function, will be emailed automatically to purchasers when finalised

Payment can be made in Sterling, or in equivalent US$ via PayPal.  Users in Australia or the UK, should email for other payment options that are available.

Note that any payments are to Colin Barnard, the author of these files, and not XCPROD or XCSB. Any queries or refund requests must be addressed to

iButton and 1-Wire are registered trade marks of Dallas Semiconductor Corp

This webpage Colin Barnard 2004