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.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: