Navigation bar
  Start Previous page
 186 of 283 
Next page End 181 182 183 184 185 186 187 188 189 190 191  

177
Put1WireData
Type
Subroutine
Invocation
Put1WireData(pin, data, count)
Parameter
Method
Type
Description
pin
ByVal
Byte
The pin to be used for 1-Wire I/O.
data
ByRef
any type
A variable holding the bytes to write.
count
ByVal
Byte
The number of bytes to write.
Discussion
This routine sends 1 or more bytes of data (each LSB first) using the 1-Wire protocol.  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.
Example
Dim d(1 to 10) As Byte
Call Put1WireData(12, d, 5)
Resource Usage
This routine uses the I/O Timer and disables interrupts for about 100µS for each bit sent.
Compatibility
This routine is not available in BasicX compatibility mode.
See Also
Previous page Top Next page