Programming of Microcontrollers
Sabina Batyrkhanovna
Repeating
•Development of embedded systems
•Software development
•Writing code
•Compiling
•Debugging
•Hardware development
•Microcontrollers
Software development
•Atmel Studio
•Integrated Development Environment (IDE)
•Used for developing and debugging of Microcontroller Applications
•C Language
Hardware development
•Proteus Design Suite
•proprietary software tool suite used to design electronic schemes
•simulation of PCBs (Printed Circuit Board) and microcontrollers
Printed Circuit Board
Steps
Creating a new project in Atmel Studio
LED connected to ATMEGA2561 microcontroller
Library <avr/io.h> controls input
and output ports
NOP–NoOperationassembly
command (does nothing,
but takes some time)
intmain() –main function
DDRC–Data Direction Register
tells that we use Port C
to input/output operations
PORTC–used to turn on/of our
port C