What Are The Examples Of Avr

What are the examples of AVR

Answer:

Here are some of the programs demonstrating the features of the AVR microcontrollers. The ordering is mostly according to increasing difficulty.

It would be better if you keep the AVR Datasheet open and have a look at the various registers used in the programs. The "Register Summary" on page 334 of this datasheet would be helpful to find the Registers detailed page.

If you have any doubts, feel free to contact me.

Using Ports

Toggle a pin - View Online | Download C file

Bidirectional Single motor drive - View Online | Download C file

Two Motor bidirectional drive (one motor running at a time) - View Online | Download C file

Controlled toggling of a pin - View Online | Download C file

PWM (ON time follows a sawtooth wave, slow rise and sudden fall) - View Online | Download C file

PWM (ON time follows a triangular wave, slow rise and slow fall) - View Online | Download C file

ADC

ADC as a comparator - View Online | Download C file

Selecting the ADC input pin (through ADMUX) - View Online | Download C file

Timers

Flashing a LED - View Online | Download C file

PWM generation using timers - View Online | Download C file

Interrupts

ADC interrupt - View Online | Download C file

Timer interrupt - View Online | Download C file


Comments

Popular posts from this blog

Summary Of The Story Of "Les Miserables"

What Have You Done To Rehabilitate The Land After Mining?

Things To Consider Before Establishing Business