Posts Tagged ‘ atmega8 ’

Atmega 8 serial and iButton code

Last weekend was project work weekend, and I started messing with my atmega8 and olimex development board to get some serial communication working. After implementing the really simple USRT code they demoed, I wrote some simple print functions so I could get useful debug output.


Tuesday night I decided to port the onewire library written for the arduino to C for the atmega8. After a few hours, I got the sensor detecting my iButton.

Code is available here.

Next step is to implement the spi bus for the ethernet module.