In SX Microcontrollers, SX/B Compiler and SX-Key Tool, djmullen wrote: Hi! I'm writing a program that will read two DS1820 digital thermometers. The DS1820s are on separate output pins. Is there anyway to make the OW*** instructions work with more than one pin? In other words, I want to write a subroutine which will read a DS1820 and I'd like to pass the pin to be read in a variable. That way I can set a variable, call the subroutine and read the inside DS1820, then change the variable and call the subroutine again and read the outside DS1820. Is this possible? Thanks, Dave P.S. By OW*** instructions, I mean OWRDBIT, OWRDBYTE, OWRESET, OWWRBYTE and OWWRBIT ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=199090 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)