This tutorial will extend the previous tutorial and explain the Atmel tools required to write in C language a program and flash it into the microcontroller. Atmel Studio under Windows will be selected for such purpose.
1. How to program a microcontroller.
Microcontrollers need to have a program stored in memory in order to execute a particular task. The code gets coded on a computer that has the development environment installed with the relevant tools, the binary result gets downloaded into the target microcontroller through a programmer. The different options that will be available will depend on what operating system our host machine runs and what budgetary constraints we might have, there will be several alternatives to code the software and program the microcontroller to run it.