Few Things About Microcontroller
The microcontroller is a special type of microprocessor and incorporates components of the microprocessor in a single chip to build a single chip, which contains the heart of the processor, input / output devices and microcontrollers need to collect input data. The microcontroller can be classified into three types of 8-bit, 16 bit and 32-bit microcontroller.
The 8-bit microcontroller consists of internal buses and ALU. The ALU is an arithmetic logic unit. Performs arithmetic operations such as addition, subtraction and logical operations such as AND, OR gate operations. The microcontroller will typically contain the number of various general purpose input / outputs. Therefore, when the general purpose I / O pins are called to an input state, is used to read the sensors and when configured for output stage. The pins can drive the LED devices. Microcontroller architectures have some models include general purpose processor with the number more RAM, ROM or functions of I / O
Interrupts:
Interrupt used in the microcontroller is used to wake the device in a low power consumption and interrupt sources are device dependent.
Programming:
In general, many of the microcontrollers are programmed only in assembly language, but now another high-level programming languages can also be used to program the microcontroller. Thus, programs should be agreed by the microcontroller available on the chip program memory and the memory can be read-only memory or a flash memory read-only. The microcontroller converts the high level and assembly code to machine language, assemblers and compilers are used.