This is my first time posting but have been lurking for awhile now. I am working on building the $50 robot for a project in college I have to design a PCB and get it manufactured and populated and everything. I also have to pay for everything so since i have to use the ATMEGA16 in a different course along with the AVR Dragon I decided to go this way since I already have a programmer and a basic knowledge of the chip and programming practices. What I am have trouble with is adapting the code to work with the different chip.
What I have figured on doing is using PD3 and PD4 to drive the servos but I can not figure out how to initialize them properly or to initialize the analog comparator functions. The general basis of the program I understand but have been searching for solutions for about 2 weeks now and although I have learned a lot the solution to my problem is evading me.