Microcontroller includes CPU, memory for the program (ROM), memory for data (RAM, I/O lines to communicate with peripherals and complementary resources, all this in a closed chip.
A microcontroller differs from a standalone CPU, because the first one generally is quite easy to make into a working computer, with a minimum of external support chips. The idea is that the microcontroller will be placed in the device to control, hooked up to power and any information it needs, and that's that.
A traditional microprocessor won't allow you to do this, it expects all of these tasks to be handled by other chips.
For instance, a typical microcontroller will have a built in clock generator and a small amount of RAM and ROM/EPROM/EEPROM, meaning that to make it work, all that is needed is some control software and a timing crystal. Microcontrollers will also usually have a variety of input/output devices, such as Analog to digital converters, timers, UARTs and specialised serial interface busses like I2C and CAN. Often these integrated devices can be controlled by specialised processor instructions. Modern microcontrollers often include a built-in programming language, BASIC is quite common for this.
Microcontrollers trade speed and flexibility for ease-of-use. There's only so much room on the chip to include functionality, so for every I/O device or memory the microcontroller includes, some other circuitry has to be removed.
Common Microcontrollers in use are:
See also :
Search Encyclopedia
|
Featured Article
|