AVR ATmega Projects

How to use internal ADC of AVR microcontroller using interrupts

This article is in continuation to AVR interrupts. There are two types of interrupts external and internal in AVR microcontroller. The aforesaid article covers external interrupts. AVR microcontrollers have seventeen internal interrupts. These internal interrupts are generated by the internal peripherals of Microcontroller like Timer, ADC etc. The internal interrupts are used for efficient operation […]

How to use internal ADC of AVR microcontroller using interrupts Read More »

How to disable JTAG of AVR microcontroller

JTAG stands for “Joint Test Action Group” which was standardized as the IEEE 1149.1 Standard Test Access Port and Boundary-Scan Architecture in 1990. JTAG is generally used in IC debugging and device programming. Atmega16 consists of one JTAG port which shares four pins with PORTC. Until JTAG port is not disabled, these pins can’t be used as normal

How to disable JTAG of AVR microcontroller Read More »

SPI (serial peripheral interface) using AVR microcontroller (ATmega16)

There are different protocols for serial communication between two deceives like, USART, SPI, I2C etc. Before selecting any communication protocol, data transfer rate is an important parameter. SPI transfers data at high speed data. AVR microcontroller contains on chip SPI interface. This article will explore the hardware configuration and programming of SPI. Serial Peripheral Interface

SPI (serial peripheral interface) using AVR microcontroller (ATmega16) Read More »

How to use fast PWM (Pulse Width Modulation) Mode of AVR microcontroller Timer

How to use fast PWM (Pulse Width Modulation) Mode of AVR microcontroller Timer

Fast PWM is the AVR timer mode for high-frequency pulse width modulation. The counter counts from zero to TOP once per period, and the output pin switches when the counter matches the compare register. This page explains the mode, gives the frequency formula and a worked example for Timer0 and Timer1 on an ATmega328P, and

How to use fast PWM (Pulse Width Modulation) Mode of AVR microcontroller Timer Read More »

Waveform Generation using AVR Microcontroller (Atmega16) Timers

At times we come across applications or situations wherein we need to generate square waves with the microcontroller. The square wave can be generated by programming a pin which toggles between 0 and 1 with a certain time delay. Alternatively, the inbuilt feature of AVR timers can be used in square wave generation. The advantage

Waveform Generation using AVR Microcontroller (Atmega16) Timers Read More »

How to use External (Hardware) Interrupts of AVR Microcontroller (ATmega16)

This article introduces the concept of interrupts and the different types of interrupts in AVR Microcontroller (ATmega16). Interrupt as the name suggests, interrupts the current routine of the microcontroller. Microcontroller executes instructions in a sequence as per the programs. Sometimes there may be a need of handling planned and higher priority events instantaneously that might

How to use External (Hardware) Interrupts of AVR Microcontroller (ATmega16) Read More »

Stay in the loop

New AVR projects, tutorials and schematics, every week.

Subscribe Browse projects

Scroll to Top