Bus: 1-Wire (Dallas/Maxim 1-Wire protocol).
Connections: one pin (OWD) and ground.
Output types: open drain/open collector (pull-up resistor required).
Pull-up resistors: always required (2K – 10K, 2K or less for parasitic power parts).
Maximum voltage: 5.5volts (5volt safe).

1-Wire uses a single data signal wire. Most devices also require a power and ground connection. Some parts draw power parasitically through the 1-Wire bus and don’t require a separate power source.

Syntax Description
A/a/@ Toggle auxiliary pin. Capital “A” sets AUX high, small “a” sets to ground. @ sets aux to input (high impedance mode) and reads the pin value.
D/d Measure voltage on the ADC pin (v1+ hardware only).
W/w Capital ‘W’ enables the on-board power supplies. Small ‘w’ disables them. (v1+ hardware only).
{ or [ 1-Wire bus reset.
] or }
R or r Read one byte. (r:1…255 for bulk reads)
0b Write this binary value. Format is 0b00000000 for a byte, but partial bytes are also fine: 0b1001.
0h/0x Write this HEX value. Format is 0h01 or 0×01. Partial bytes are fine: 0xA. A-F can be lower-case or capital letters.
0-255 Write this decimal value. Any number not preceded by 0x, 0h, or 0b is interpreted as a decimal value.
, Value delimiter. Use a coma or space to separate numbers. Any combination is fine, no delimiter is required between non-number values: {0xa6,0, 0 16 5 0b111 0haF}.
& Delay 1uS. (&:1…255 for multiple delays)
(#) Run macro, (0) for macro list
Bitwise
^ One clock tick, use data state from previous – or _ operation. (^:1…255 for multiple clock ticks)
/ or \
– or _ Send 1-Wire 1 (-) or 0 (_) bit.
! Read one bit with clock.
.
Macro Description
0 Macro menu
1-50 Reserved for device address shortcuts.
51 READ ROM (0×33) *for single device bus
85 MATCH ROM (0×55) *followed by 64bit address
204 SKIP ROM (0xCC) *followed by command
236 ALARM SEARCH (0xEC)
240 SEARCH ROM (0xF0)

Notes:

1-Wire specifies a 2K or smaller resistor when working with parasitically powered devices. The Bus Pirate on-board pull-up resistors are 10K, so use an external pull-up resistor when working with these devices. Parasitically powered parts may appear to work with resistors larger than 2K ohms, but will fail certain operations (like EEPROM writes).

Advertisements