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

Delphi: Using Dallas MicroLan (aka 1-wire) DS2408 8 bit I/O chip

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.

If you just want a finished program to monitor up to eight inputs as seen by a DS2408, then you are invited to check out a page describing my shareware answer to that need.... free to try.

If you want a program to monitor the inputs seen by a DS2408, then you will probably be happier with the "tutorial" related to my program DS040.

For a more focused tutorial on the DS2408, with some discussion of using the chip's output facilities, you've come to the right place! 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 and helpfile. (Click on the "source code and helpfile" link to download a zip archive with the Delphi sourcecode and a helpfile.) 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 DS2408 into it, and possibly change the adapter type and port number. (These matters are documented within the code.)

The DS2408 is an 8 channel addressable switch, very like a parallel i/o chip, e.g. 6522 or 6821.

The program I've provided in the zip isn't perfect, but it will give you a head start with writing programs to read from or write to the chip's i/o lines.

I've discovered why the program doesn't like you to re-read the chip too often: I left out an "end session" command at the end of the read/ write chip routine. If you are in a hurry to have a version which can read/ write the chip several times a second, have a look at the code which comes with my DS2408 Reader... it has the necessary "end session" stuff... a minor addition. Even without the "end session" stuff, you can use the program this tutorial is about to read / write the DS2408 about 30 times per minute.

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 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 .....