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 diagram
Microcontrollers consist of the following mentioned components:
- Central Processing Unit (CPU)
- Flash Memory or Static Memory (Flash/SRAM)
- Electrical Erasable programmable RAM (EEPRAM)
- Timers and Counters
- I/O Ports (I/O – Input/Output)
- Clock Circuit (Oscillator/RC Circuit)
- External/Internal Interrupt
- CAN (Controlled Area Network)
- SPI (Serial Peripheral Interface)
- I2C/TWI (Inter Integrated Circuit/Two Wire Interface)
- DAC (Digital to Analog Converter)
- ADC (Analog to Digital Converter)
- UASRT(Universal Synchronous and Asynchronous Serial Receiver and Transmitter)
- Watchdog Timer and Sleep mode or Power saving mode.
Microprocessor & Microcontroller
Microprocessor is a type of computer processor in which both the data processing logic and control are included on a single integrated circuit or on small numbers of integrated circuits. These processors consist of logic, control and arithmetic circuits. Its integrated circuit is capable of interpreting and executing program instructions. These are multiple purpose, clock-driven and register based digital integrated circuits that accept input in binary data and processes it as per the instruction stored in its memory. Example CISC(Complex Instruction Set Computer), DSP(Digital Signal Processing), RISC (Reduced Instruction Set Computer) etc.