HOME - - - - - - - TUTORIALS INDEX - - - - - - - - - - - - Other material for programmers

Delphi: Using Dallas MicroLan (aka 1-wire) DS2438

This has good information, and a search button at the bottom of the page

Please don't dismiss it because it isn't full of graphics, scripts, cookies, etc!

Click here if you want to know more about the source and format of these pages.


This particular tutorial is more than usually sketchy... please don't judge my other tutorials from this. You will find extensive commentary in the source code. (Click on the "source code" link to download a zip. The zip also includes the .exe for this program.) To compile that code, you also need the Dallas unit IBTMEXPW.PAS which is included with the TMEX SDK. You must compile to code, to put the unique ID of your DS2438 into it, and possibly change the adapter type and port number. (These matters are documented within the code.)

The DS2438 is called a "Battery Monitor". However, it contains a neat ADC, a temperature sensor, and a "clock" (not a RTC, but you could put one together with some software, I think.)

The program I've provided in the zip isn't perfect, but it will give you a head start with writing programs to read the ADC or the temperature sensor. I believe that the DS2438's temperature sensing capabilities make it better than a DS18x20, even if you don't need the chip's other functions. (Reads to 1/32nd of a Celsius degree).

In addition to the documented source code on offer above, you can click here to download a zip of an older program I wrote illustrating access to the DS2438. The zip also includes the .exe for this program, which was silly of me, as it won't run unless you have my DS2438 chip! (You have to recompile the code with your chip's unique ID.)

Don't despair if you don't find the datasheet at Dallas easily... it's there. Try the "parametric search" and look under battery monitor.

Try this (for the data from Dallas) if you like.


For more on the MicroLan and why it's cool, see... My guide to MicroLan


   Search this site or the web        powered by FreeFind
 
  Site search Web search
Site Map    What's New    Search


Click here if you're feeling kind! (Promotes my site via "Top100Borland")
Ad from page's editor: Yes.. I do enjoy compiling these things for you... hope they are helpful. However.. this doesn't pay my bills!!! If you find this stuff useful, (and you run an MS-DOS or Windows pc) please visit my freeware and shareware page, download something, and circulate it for me? Links on your page to this page would also be appreciated!

Click here to visit editor's freeware, shareware page.


Link to Tutorials main page

Info on how to contact this page's editor, Tom Boyd.


Valid HTML 4.01 Transitional Page WILL BE tested for compliance with INDUSTRY (not MS-only) standards, using the free, publicly accessible validator at validator.w3.org


If this page causes a script to run, why? Because of things like Google panels, and the code for the search button. Why do I mention scripts? Be sure you know all you need to about spyware.

....... P a g e . . . E n d s .....