This mode is similar to the normal port operation. The difference is that the compare value is store in the OCRx register instead of TCNTx. In order to use the OCRx register, the timer should operate in CTC mode, that The main program is Download the full program with proteus simulation As soon as OCRx […]

A Timer/Counter is actually a register which increases/decreases automatically according to the logic you provided. In AVR there are two types of timers 8 Bit timer 16 Bit timer Now what is the meaning of 8bits? As we already learn that 1byte is equal to 8bit. Now the formula of counting is-           n bit=2^n

Timer/Counter – BasicRead More »

An interrupt is a hardware initiated procedure that interrupts whatever program is currently executing. In AVR an interrupt is a service routine that executed when it is called and back to the main program where it is halted after executing service routine. In AVR there are two types of interrupts. i. External interrupts In external

External interruptRead More »

For security reason sometime we need password locking controller. In This article we developed a password locker. Since password is nothing but a character of string. So we need to control string function carefully. Let’s begin our journey with string handling. strcat() and strncat()             The strcat() or strncat() function join two strings together.                        

Password locker using EEPROMRead More »

We previously learn about flash memory and how to program it. In this article we build a waveform generator. In that we uses four different switches to generate four different waveform i.e. Saw tooth, square, triangular and sinusoidal. We can get the desire analog signal from the Atmel AVR digital output with the help of

Waveform GenerationRead More »

Atmel AVR microcontroller has typically three memories Pointer: Whenever we declare a variable, the system allocates somewhere in the memory, an appropriate location to hold the value of the variable. Every byte has a unique address number. The location will have its own address number             Example:- uint8_t myByte=8; Let’s us assume that the system

Memory accessRead More »

The DS18B20 Digital Thermometer provides 9 to 12-bit (configurable) temperature readings which indicate the temperature of the device. Information is sent to/from the DS18B20 over a 1-Wire interface, so that only one wire (and ground) needs to be connected from a central microprocessor to a DS18B20. Power for reading, writing, and performing temperature conversions can

DS18B20(Digital Temperature Sensor) interfacing with GPIORead More »