summaryrefslogtreecommitdiff
path: root/README.md
blob: b1bafbaf0d1918471ff0c6a08e25464dd0c1611c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# owi-slave

Implementation of an One Wire Interface slave device on an ATTiny 2313A without
external clock.

Though the schematic suggests bus-powered operation, the AVR's power
consumption is probably too high for this to work. If connecting the AVR causes
the bus voltage to drop below 3V, consider replacing the capacitors with a
~4.5V battery. Do not use a mains power supply -- it may not have the same
ground level as the 1-Wire bus.

# Building

set the desired onewire address in main.S. then run

    make && sudo make flash

## supported features

### READ ROM (0x33)

Works fine. Successfully tested on:

* DS2482-100 Single Channel 1-Wire Master
* IBL USB iButton reader

### SEARCH ROM (0xf0)

the code in main.c works on one-device buses, the code in main.S was not tested
yet. SEARCH ROM on a multi-device bus does not work.

Successfully tested on:

* DS2482-100 Single Channel 1-Wire Master

## TODO

* test SEARCH ROM
* implement readout of master direction bit in SEARCH ROM