4 Power supply

Let’s start with the power supply requirements of an MCU. An MCU requires very little “juice” to run. This part is often known as the “Electrical Characteristic” of an MCU. Most MCUs accept a somewhat wide range of power supply voltages, but almost none can accept a voltage more than 5V. The current consumption of an MCU is typically less than 20mA.

Although an MCU can accept a range of input voltages, it is best to regulate the power supply of an MCU. This makes sure the actual voltage of the power supply to an MCU remains constant regardless of other factors such as battery conditions, minor noises of transformers and etc.

The simplest type of voltage regulators is a linear type. A common regulator is called the “7805”. It is a three-pin device with the pin outs as follows:

A linear regulator does not work by itself. It requires an input capacitor and an output capacitor. These two capacitors connect from pin 1 to pin 2, and from pin 3 to pin 2 of the regulator. These are typically called “by-pass” capacitors, they act as “shock absorbers” of voltage changes due to change of load or supply variations.

The input by-pass capacitor typically has a value of 10uF, while the output by-pass capacitor can range from 10uF to 22uF. When a capacitor is specified, there are several major factors to consider:

When a by-pass capacitor is specified, it is best to choose one that has a low ESR or high ripple current. Note that all capacitors of this range of value are electrolyte type, which means they are usually polarized. It is important to make sure the poles of an electrolyte capacitor are connected correctly.

In terms of physical placement, a by-pass capacitor should be placed as close as possible to the pins that they are connected. This minimizes any effect of a long trace (resistance and inductance).