Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
1wire slave code for AVRs
C Python
branch: master

This branch is 153 commits behind smurfix:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
GPL-3
Makefile
README
ds2408.c
ds2423.c
features.h
gen_eeprom.py
onewire.c
onewire.h
uart.c
uart.h

README

This is 1wire slave code for AVR microcontrollers.
Copyright (C) 2010 Matthias Urlichs <matthias@urlichs.de>.


    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.


The core code implements the basic 1wire discovery methods.
Code size is about 3k; some of that size is due to GCCs inability
to deal with 8-bit integers sanely.
Overdrive speed is not yet implemented.

The 64-bit ID (actually an 48-bit ID because family code and CRC
are fixed) is read from EEPROM. A small tool to generate the EPROM
CRC is included.


NOTE: It appears that Dallas Semiconductor doesn't like people who
implement 1wire slaves in software.

On the other hand, they do discontinue ICs like the DS2423 counter
for which no substitute exists.

Therefore, while I cannot prevent people from doing whatever they want,
simulations of existing ICs will only be entered into this project's
repository if the ICs are no longer available or (at the very least)
"not recommended for new design". Sorry if you want more, but IMHO
this is the best compromise between practical and legal considerations.


-- Matthias Urlichs
Something went wrong with that request. Please try again.