Navigation bar
  Start Previous page
 101 of 283 
Next page End 96 97 98 99 100 101 102 103 104 105 106  

92
Get1WireByte
Type
Function returning Byte
Invocation
Get1WireByte(pin)
Parameter
Method
Type
Description
pin
ByVal
Byte
The pin to be used for 1-Wire I/O.
Discussion
This function reads a byte value (LSB first) using the 1-Wire protocol.  It may be used instead of a series
of calls to Get1Wire() in order to read a byte at a time.  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 about 100µS for each bit received.
Example
Dim b as Byte
b = Get1WireByte(12)
Compatibility
This routine is not available in BasicX compatibility mode.
See Also
Previous page Top Next page