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 […]
Author: admin
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
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
Sleeps modes or power saving modes present in Atmel are identical to the sleeps modes available in our laptop. Sleeps mode enable the application to shut down unused modules in the µC, thereby saving power. The AVR provides various sleep modes, allowing the user to tailor the power consumption to the application’s requirement. All the
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.
EEPROM stands for electrically erasable read only memory. It is a non volatile memory means that it will store the last data if any power failure. Suppose we want to count the number of visitors in a shop. If a power failure occurs then all data will be erased. In that case we can store
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
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
What is TWI? TWI stands for Two Wire Interface. We previously learn about segment display (SSD). SSD require many GPIO pin that could be used for any other purpose. We can use only 2 wires for up to 6SSD display at a same time. So only 2GPIO pins can be used for controlling up to
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 »







Visit Today : 122
Total Visit : 28775