‘AVR

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

This article is in continuation of PWM generation using AVR timer. In the previous article, PWM generation using Phase correct PWM mode is described. However, there are some applications like DAC, power regulation and rectification etc. which require high frequency PWM wave. The PWM generation using Fast PWM mode is suitable for such applications. This

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

Phase Correct PWM (Pulse Width Modulation) Mode of AVR microcontroller Timer

Pulse Width Modulation is well known technique for controlling power electronics devices like SCR, IGBT etc. PWM is also used in motor speed controlling. Square wave generation by using AVR timers is explained in previous article. The AVR timers have feature of PWM wave generation as well .This article describes PWM generation capability of AVR

Phase Correct 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 »

How to interface LED with AVR Microcontroller (ATmega16)

ATmega16 has 32 I/O pins to communicate with external devices.  Before interfacing with external devices, these pins must be cofigured as input or output pin. This article demonstrates the basic I/O operation of ATmega 16 using LEDs. All the four ports can be configured to read an input from some external device or to give

How to interface LED with AVR Microcontroller (ATmega16) Read More »

How to interface keypad with AVR microcontroller (ATmega16)

Keypad is most widely used input device to provide input from the outside world to the microcontroller. The keypad makes an application more users interactive.  The concept of interfacing a keypad with the ATmega16 is similar to interfacing it with any other microcontroller. The article of Interfacing keypad with 8051 can be referred for detailed

How to interface keypad with AVR microcontroller (ATmega16) Read More »

How to interface Servo Motor with AVR Microcontroller (ATmega16)

Servo motors find huge applications in industries in the field of automation, control & robotics. The servo motors are well known for their precise control and work on the principle of servo mechanism. The servo motors can be made to run at precise angle using PWM. The PWM (pulse width modulation) is the basic working

How to interface Servo Motor with AVR Microcontroller (ATmega16) Read More »

How to use I2C / TWI (Two Wire Interface) in AVR ATmega32

This article explores the TWI interfacing between two ATmega32 controllers. Readers are advised to go through TWI Communication and TWI registers of ATmega32 before going further. TWI works in four modes: 1.        MASTER as a transmitter. 2.        MASTER as a receiver. 3.        SLAVE as a receiver. 4.        SLAVE as a transmitter. Generally modes 1 &

How to use I2C / TWI (Two Wire Interface) in AVR ATmega32 Read More »

How to interface serial ADC0831 with AVR microcontroller (ATmega16)

ADC is an electronics device that converts the analog signals to digital number proportional to the magnitude of voltage. The ADC chips like ADC0804, ADC0809 etc., give 8-bit digital output. The controller device needs eight pins to receive the 8-bit data (For more details about ADC refer to Using Inbuilt ADC of AVR). Some applications

How to interface serial ADC0831 with AVR microcontroller (ATmega16) Read More »

Scroll to Top