Let’s make a Digital Clock to display seconds, minute & hour to seven segment displays. Here 6 seven segment display are used. We make it in 3 steps. First initial timer1 interrupt at 1s delay. In this project we use ATmega32 with external crystal with 8MHz at HFUSE=0x89 LFUSE=0xEF Timer1 interrupt with 1s counting In […]
Category: Basic Phepharials
In this project we use IR Tx diode and IR Rx diode. The sensor circuit diagram is as follow- The RPM meter based on two procedures It is easy to calculate pulse using external interrupt pin. Let use ATmega8 for this purpose. The logic should be as soon as any falling edge is found, it
Previously we learn about timer CTC. Now what happen if we do not compare the value? In that case the timer starts from BOTTOM to the MAXimum value i.e. 0xFF (for Timer0/2) or 0xFFFF (Timer1) and that is timer overflow. In this case when the timer overflows an interrupt available i.e. Timer Overflow Interrupt vector.
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
Timer/Counter – Clear Timer on Compare Match (CTC)Read More »
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








Visit Today : 116
Total Visit : 28769