Tag - AVR

What is a Microcontroller ?

A microcontroller is an integrated circuit (IC) which is small, low cost and self contained computer designed to handle a specific task in embedded systems. In simple words, a microcontroller (MCU or Microcontroller Unit) is a small computer integrated in to a single chip. We can also explain it as programmable silicon chip which is clock driven, register based, accepts input and provides output after processing it as per the instructions stored in the memory. A computer is a general...

Interfacing DC Motor with Atmega32 Microcontroller

In some of your electronic projects you may want to control a DC Motor with Atmega32 Microcontroller. We can't connect a DC Motor directly to a microcontroller due to following reasons. A microcontroller can't supply the current required for the working of DC Motor. ATmega32 Microcontroller can source or sink currents up to 40mA but a DC Motor needs current very much more than that. The negative voltages created due to the back emf of the motor may affect the proper functioning of the microcontroller. You may need to...

Interfacing LCD with Atmega32 Microcontroller using Atmel Studio

As we all know LCD (Liquid Crystal Display) is an electronic display which is commonly used nowadays in applications such as calculators, laptops, tablets, mobile phones etc. 16x2 character LCD module is a very basic module which is commonly used by electronic hobbyists and is used in many electronic devices and project. It can display 2 lines of 16 character and each character is displayed using 5x7 or 5x10 pixel matrix. 16x2 Character LCD Interfacing 16x2 LCD with Atmega32 Atmel AVR Microcontroller using Atmel...

Using Push Button Switch with Atmega32 and Atmel Studio

Push Button Switch This tutorial is meant for beginners in the field of Atmel AVR programming. I hope that you already read my first tutorial Blinking LED using Atmega32 and Atmel Studio. In most of the embedded electronic projects you may want to use a push button switch to give user inputs to the microcontroller. To use a push button switch with a microcontroller, first you should configure the corresponding pin as input. Then we can easily read the status of...

Blinking LED using Atmega32 Microcontroller and Atmel Studio

Similar to printing 'Hello World' in C or C++, the very first step towards programming a microcontroller is Blinking a LED with a delay. Atmega32 is a very popular high performance 8 bit AVR Microcontroller. For this example project we need to use two registers DDR and PORT. DDR stands for Data Direction Register, it determines the direction (Input/Output) of each pins on the microcontroller. HIGH at DDR register makes corresponding pin Output while LOW at DDR register makes corresponding...

>