Navigation bar
  Start Previous page
 201 of 307 
Next page End  

ZBasic System Library
191
ZX Microcontroller Family
Put1Wire
Type
Subroutine
Invocation
Put1Wire(pin, value)
Parameter
Method
Type
Description
pin
ByVal
Byte
The pin to be used for 1-Wire I/O.
value
ByVal
Byte
The bit value to write.
Discussion
This routine sends the LSB of the given value 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.
Resource Usage
This routine uses the I/O Timer and disables interrupts for about 100µS.
Example
Call Put1Wire(12, 1)
See Also
Previous page Top Next page