I have been modifying AVR and PIC microcontroller code for a few years now for work but have never written anything from scratch, I understand it pretty well.
I am starting to write my own code now and am having trouble getting started. I was wondering how other people start writing code and if there is a book or tutorial people would recommend on this.
Do you start with coding your initialization function then interrupts then timers then the main while(1) loop… I am wondering what the best way to get started is.
Thank you
Best Answer
AVRFreaks has an excellent tutorial written by Dean Camera (aka. abcminuser) called Modularizing C Code: Managing large projects. You may also be interested in reading State Machines for Microprocessors by James Wagner.