Getting Started with AVR
AVR is the name of a series of microprocessors from Atmel. Every microprocessor in the series shares the same instruction set and core parts. As your project needs change, you can choose a different...
View ArticleInstalling WinAVR with AVRStudio
If you want to write your AVR programs in C, then WinAVR is a great, free way to get started. Follow this guide to get WinAVR setup and running on your computer and you should be ready to follow our...
View ArticleWinAVR C Skeleton File
If you are New To C then you can consider this a crash course introduction to the language. C is really not all that hard, so don’t be intimidated. You will have to learn to just accept some things in...
View ArticleAVR Port Output in C
The AVR series of microcontrollers reference their I/O ports as PORTA, PORTB, PORTC, PORTD and so on. Each port has up to 8 bits, each of which can be configured as either an input or an output. For...
View ArticleSTK500 Jumper Setup
Make sure that you have the STK500 user guide on hand. It describes in detail all of the steps that we will describe here. You can find a copy of it on the Atmel website, direct link ishere. Since the...
View ArticleAVR Bitwise Operations in C
C defines a special operation for dealing with bits, and it is represented by two less than symbols in a row << or two greater than symbols in a row >>. This is called a bit shift. The...
View ArticleAVR Port Input in C
Let’s figure out how to read port input data on an AVR processor using C. Connect PortB To Switches Remember how we connected PORTA to the LEDS? Now we are going to connect PORTB to the SWITCHES. Just...
View ArticleAccurate Delays with AVR in C
We’ll walk you through some simple steps to get accurate delay functions in an AVR in C. STK500 Setup Make sure that you have your PORTA jumpered to LEDs, as was discussed in our Port Output guide. The...
View ArticleAVR USART Serial
In this guide we create a few serial functions that are very helpful in dealing with the USART on an AVR microprocessor. If you’ve been following along in these guides, then your STK500 should be setup...
View ArticleAVR Advanced Timer Interrupts
Now that you have timer interrupts working, lets get to work making them more useful. STK500 Setup For this example, make sure that you have your PORTA jumpered to LEDs, as was discussed in our Port...
View Article