Navigation bar
  Start Previous page
 214 of 283 
Next page End 209 210 211 212 213 214 215 216 217 218 219  

205
Reset1Wire
Type
Function returning Byte
Invocation
Reset1Wire(pin)
Parameter
Method
Type
Description
pin
ByVal
Byte
The pin to be used for 1-Wire I/O.
Discussion
This function generates a reset signal on the given pin using the 1-Wire protocol.  The return value is the
“presence” bit sent by the attached 1-Wire device(s), if any.  It will be zero if a 1-Wire device responded, 1
otherwise.
To perform a 1-Wire operation, this function along with related 1-Wire routines must be used in the proper
sequence.  See the specifications of your 1-Wire device for more information.
Resource Usage
This routine uses the I/O Timer and disables interrupts for approximately 1mS.
Example
Dim b as Byte
b = Reset1Wire(12)
Compatibility
This routine is not available in BasicX compatibility mode.
See Also
Previous page Top Next page