Difference between a Computer and a Microcontroller
After you have read up to this portion of the chapter, one question might come to your mind. What is the difference between the PCs we use in our daily life and the Microcontrollers? Well, there is more similarity then the differences. But there are significant differences which explain a uC being priced at as low as 60-100.
In a computer, we put on the processor on the motherboard. We also install RAM modules, Hard Discs etc. The motherboard contains the ROM that initiates the BIOS (Basic Input Output System).
Unlike Microprocessors, the Microcontrollers have everything that is required to perform its operation are built in a single package. That means a single MCU contains the processor, RAM, ROM, Flash Memory. All are included in a single chip. So a Microcontroller resembles a complete computer, well of course in a tiny format.
|
A Sample Microcontroller
|
A Sample Computer
|
Clock Speed
|
16MHz
|
3.0 GHz
|
Program Storage
|
8 kilobyte Flash
|
500 Gigabyte Hard Disc
|
RAM
|
1 kilobyte
|
2 Gigabyte
|
The comparison reveals a major difference. Don’t underestimate the uC. It may not be adequate for encoding your HD videos but is great for our computing requirements in the circuits we might implement. For most applications we don’t need more than that.
So, we are getting a computer in a tiny package. That’s why MCUs are simple to use and very cheap compared to a PC. Microcontrollers can process quite complex functions, data manipulations and DSP algorithms. The data shown here are just for an ordinary MCU; there are more powerful MCUs available in the markets.