Let’s start our journey with ATmel microcontroller. The Atmel®AVR® is a low-power CMOS 8-bit microcontroller based on the AVR RISC architecture. By executing powerful instructions in a single clock cycle, the ATmega achieves through puts approaching 1MIPS per MHz, allowing the system designer to optimize power consumption versus processing speed. ATmel has IDE(integrated development environment) […]

Numbering System Bit Pattern Bitwise Operators AND Operation Example:- uint8_t sample=0x04; // Binary 0b0000 0100 sample &=8; // The value will be zero OR Operation Example:- uint8_t sample=0x04; // Binary 0b0000 0100 sample |=8; // The value will be 12 Ex-OR Operation Example:- uint8_t sample=0x04; // Binary 0b0000 0100 sample ^=12; // The value will

Register & Bitwise OperatorRead More »

C structure : C Language has a basic structure as follow- In C all statement are executed one by one. If error occurs in one statement then the next statement will not execute and program halt. So care should be taken in each step. #definition Directive This instruction are usually placed at the beginning before

C StructureRead More »

Microcontroller has one CPU clock and that has been distributed in different types of its internal peripherals. Let’s look bellow – In picture the main clock of the µC is F_CPU. Let’s the F_CPU=9MHz than new clock is 3MHz. Atmega8 has internal 8MHz and Atmega32 has internal 1MHz by default. For our operation clock cycle

Clock CycleRead More »

A microcontroller is a small, low-cost microcomputer on a single VLSI integrated circuit (IC) chip. It is used in different Embedded purpose. The microcontroller puts CPU and peripherals on a single chip.In a single cyclea microcontroller can transfer and process information of 8 bits, 16 bits and 32 bits. You can see the internal block

MicrocontrollerRead More »