Wednesday, November 12, 2008

The start of a dumb ATmega8 project

I've continued to extend my C code for my ATmega8. It now does more than count from 0x00 to 0x0F. Every time it counting overflows, the speed of the counting gets changed. All this is done using my fancy time struct and functions. I've implemented "optical wireless communication" using a single LED as the receiver. It's very crude but works. I've got it to reset the counting every time light is shone on it. Hopefully I'll be able to make an "event based" controller. So I'll have it recognise light patterns and act on them. Wonder if I can use some sort of software exceptions (interrupts produced by running code). Code size is getting too big though for what seems to be a small amount of functionality. I shall document my System library later on.



No comments: