Interfacing(USB – RS232 – I2c -ISP) Projects

Serial communication (Data receive) using AVR Microcontroller (ATmega16) USART

Communication between two entities is important for the information flow to take place. In general the information transport system can be parallel in which the complete byte of data is sent at a time, with each bit having a separate dedicated line or it can be serial where only one communication line is available which […]

Serial communication (Data receive) using AVR Microcontroller (ATmega16) USART Read More »

How to interface AVR microcontroller with PC using USART (RS232 protocol)

This article covers data transmission using 8 bit USART. The readers should have a basic understanding of serial communication and how to receive the serial data output. More  details on these topics  are available on Serial communication using AVR Microcontroller USART. The registers of USART system are already explained in previous article. Before transmitting the

How to interface AVR microcontroller with PC using USART (RS232 protocol) Read More »

Serial communication with AVR microcontroller using interrupts

In our previous articles on serial data transmission using AVR microcontroller we have demonstrated serial communication using the polling method. In Polling, the microcontroller waits for the RXC flag (in the case of serial receiver) to go high and then moves to the next instruction. This is not a good programming technique to keep the

Serial communication with AVR microcontroller using interrupts Read More »

How to interface RFID with AVR microcontroller (ATmega16)

Knowingly or unknowingly the RFID technology is used by us in our day to day life. The most familiar example is seen in MNCs, schools and offices for daily attendance or automatic door opening system. The RFID contains two parts, namely, tag and receiver modem. When an RFID tag comes in the range of receiver, the

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

RFID interfacing with AVR microcontroller (ATmega16) using interrupts

This article covers how to extract and display the twelve byte unique tag ID received by RFID module on LCD using interrupt method. Before proceeding to this article readers must have knowledge of serial interrupt and LCD. In the previous article of RFID, polling method was used where the microcontroller was continuously monitoring the RXC

RFID interfacing with AVR microcontroller (ATmega16) using interrupts Read More »

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 use inbuilt analog comparator of AVR microcontroller

Analog comparator is a device which compares two input voltages and generates output accordingly. The article on IR sensor explains the use of comparator in sensor designing. Comparators form an integral part of circuit designing in majority of the applications.  AVR microcontrollers have in-built analog comparator. Using the in-built analog comparator of AVR, the controller

How to use inbuilt analog comparator of AVR microcontroller 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 »

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 »

Scroll to Top