Phil,
Are you still working on this project?
I'm interesting in learning microcontroller too.
I had coded something similar to yours but on an AT90S8515 (coded in assembler). I was able to simulated it on the STK500.
Please let me know how this project goes.