About AVR Tutorials
AVR Tutorials aims to provide information and tutorials for the Atmel AVR 8-bits series of microcontrollers such as the ATMega8515, ATMega16, ATMega32, ATTiny2313, ATTiny13, etc. The information on AVR Tutorials is geared towards assisting students in understanding concepts related to the exciting technology around embedded systems through the development of simple programs and building simple electronic circuits utilizing Atmel AVR microcontrollers.
New tutorials are posted as they become available so please visit frequently. The topics AVR Tutorials aims to cover include:
- Assembly Language for AVR Microcontrollers
- Embedded C Language for AVR Microcontrollers
- AVR Microcontroller Analog Comparator
- AVR Microcontroller AD Converter
- AVR Microcontroller Interrupt Sub-system
- AVR Microcontroller Timer/Counter
- AVR Microcontroller Serial USART
- AVR Microcontroller Interfacing
- AVR Microcontroller Projects
AVR Assembly Code looks like this:
; This is an AVR assembly code
.include "m8515def.inc"
.org $00
ADD R16, R17 ; Add value in R16 to value in R17
DEC R17 ; Minus 1 from the value contained in R17
MOV R18, R16 ; Copy the value in R16 to R18
END: JMP END ; Jump to the label END
AVR C Code looks like this:
/*This is an AVR C code*/
int main()
{
int i = 0;
for (i = 0; i < n; i++)
{
USARTWriteChar(string[i]);
}
}
Some AVR Chips:
AVR Tutorials hopes these tutorials are beneficial to you and looks forward to your continued visits for all your microcontroller tutorial needs.