Example

  OWRDBYTE Pin, ByteVar

Function
Reads one byte (eight bits) from a 1-Wire device.

Quick Facts
  All SX Models
 Special Notes  The DQ pin (specified by Pin) must have a 4.7 kΩ pull-up resister.
 1-Wire commands require a FREQ setting of 4 MHz or higher.
 Receive Rate  ~12 kBits/Sec (not including Reset)

Explanation
Some 1-Wire transactions require reading data from the device. A bit is read from the 1-Wire device byte generating a brief pulse on the DQ line, then reading the line within 15 µS of the falling edge (see OWRDBIT for details). This is called a "Read Slot." The OWRDBYTE instruction generates eight 1-Wire Read Slot sequences and returns the value in ByteVar.


Related instructions: OWRESET, OWRDBIT, OWWRBIT, and OWWRBYTE