........
........
........ ........
........ ........

Capacitors

Saturday, February 20, 2010

Function

Capacitors store electric charge. They are used with resistors in timing circuits because it takes time for a capacitor to fill with charge. They are used to smooth varying DC supplies by acting as a reservoir of charge. They are also used in filter circuits because capacitors easily pass AC (changing) signals but they block DC (constant) signal.

Capacitance

This is a measure of a capacitor's ability to store charge. A large capacitance means that more charge can be stored. Capacitance is measured in farads, symbol F. However 1F is very large, so prefixes are used to show the smaller values.

Three prefixes (multipliers) are used, µ (micro), n (nano) and p (pico):

  • µ means 10-6 (millionth), so 1000000µF = 1F
  • n means 10-9 (thousand-millionth), so 1000nF = 1µF
  • p means 10-12 (million-millionth), so 1000pF = 1nF

Capacitor values can be very difficult to find because there are many types of capacitor with different labelling systems!


Polarised capacitors (large values, 1µF +)

Examples: electrolytic capacitors Circuit symbol: electrolytic  capacitor symbol

Electrolytic Capacitors

Electrolytic capacitors are polarised and they must be connected the correct way round, at least one of their leads will be marked + or -. They are not damaged by heat when soldering.

There are two designs of electrolytic capacitors; axial where the leads are attached to each end (220µF in picture) and radial where both leads are at the same end (10µF in picture). Radial capacitors tend to be a little smaller and they stand upright on the circuit board.

It is easy to find the value of electrolytic capacitors because they are clearly printed with their capacitance and voltage rating. The voltage rating can be quite low (6V for example) and it should always be checked when selecting an electrolytic capacitor. If the project parts list does not specify a voltage, choose a capacitor with a rating which is greater than the project's power supply voltage. 25V is a sensible minimum for most battery circuits.

Tantalum Bead Capacitors

Tantalum bead capacitors are polarised and have low voltage ratings like electrolytic capacitors. They are expensive but very small, so they are used where a large capacitance is needed in a small size.

Modern tantalum bead capacitors are printed with their capacitance, voltage and polarity in full. However older ones use a colour-code system which has two stripes (for the two digits) and a spot of colour for the number of zeros to give the value in µF. The standard colour code is used, but for the spot, grey is used to mean × 0.01 and white means × 0.1 so that values of less than 10µF can be shown. A third colour stripe near the leads shows the voltage (yellow 6.3V, black 10V, green 16V, blue 20V, grey 25V, white 30V, pink 35V). The positive (+) lead is to the right when the spot is facing you: 'when the spot is in sight, the positive is to the right'. tantalum  bead capacitors

For example: blue, grey, black spot means 68µF
For example: blue, grey, white spot means 6.8µF
For example: blue, grey, grey spot means 0.68µF


Unpolarised capacitors (small values, up to 1µF)

Examples: small value capacitors Circuit symbol: capacitor  symbol

Small value capacitors are unpolarised and may be connected either way round. They are not damaged by heat when soldering, except for one unusual type (polystyrene). They have high voltage ratings of at least 50V, usually 250V or so. It can be difficult to find the values of these small capacitors because there are many types of them and several different labelling systems!

100nF  capacitor Many small value capacitors have their value printed but without a multiplier, so you need to use experience to work out what the multiplier should be!

For example 0.1 means 0.1µF = 100nF.

Sometimes the multiplier is used in place of the decimal point:
For example: 4n7 means 4.7nF.

Capacitor Number Code

A number code is often used on small capacitors where printing is difficult: 1nF  capacitor
  • the 1st number is the 1st digit,
  • the 2nd number is the 2nd digit,
  • the 3rd number is the number of zeros to give the capacitance in pF.
  • Ignore any letters - they just indicate tolerance and voltage rating.
For example: 102 means 1000pF = 1nF (not 102pF!)

For example: 472J means 4700pF = 4.7nF (J means 5% tolerance).



Colour Code
ColourNumber
Black
0
Brown
1
Red
2
Orange
3
Yellow
4
Green
5
Blue
6
Violet
7
Grey
8
White
9

Capacitor Colour Code

A colour code was used on polyester capacitors for many years. It is now obsolete, but of course there are many still around. The colours should be read like the resistor code, the top three colour bands giving the value in pF. Ignore the 4th band (tolerance) and 5th band (voltage rating). 10nF and  220nF capacitors

For example:

brown, black, orange means 10000pF = 10nF = 0.01µF.

Note that there are no gaps between the colour bands, so 2 identical bands actually appear as a wide band.

For example:

wide red, yellow means 220nF = 0.22µF.

Polystyrene Capacitors

polystyrene  capacitor This type is rarely used now. Their value (in pF) is normally printed without units. Polystyrene capacitors can be damaged by heat when soldering (it melts the polystyrene!) so you should use a heat sink (such as a crocodile clip). Clip the heat sink to the lead between the capacitor and the joint.



Read more...

Lesson 2 .... Types of Memory.

Friday, February 19, 2010

1-On-Chip Memory:

On-chip memory is really one of two types: Internal RAM and Special Function Register (SFR) memory.



♣ Internal RAM:
it is the most flexible in terms of reading, writing, and modifying its contents. Internal RAM is volatile.

♣ Special Function Register (SFR) :
Special Function Registers (SFRs) are areas of memory that control specific functionality of the 8051 processor. For example, four SFRs permit access to the 8051s 32 input/output lines. Another SFR allows a program to read or write to the 8051s serial port. Other SFRs allow the user to set the serial baud rate, control and access timers, and configure the 8051s interrupt system.

-------------------------------------------------------------
2-External RAM:
As an obvious opposite of Internal RAM, most of microcontrollers also supports what is called External RAM. As the name suggests, External RAM is any random access memory which is found off-chip. Since the memory is off-chip it is not as flexible in terms of accessing, and is also slower. For example, to increment an Internal RAM location by 1 requires only 1 instruction and 1 instruction cycle. To increment a 1-byte value stored in External RAM requires 4 instructions and 7 instruction cycles. In this case, external memory is 7 times slower!

-------------------------------------------------------------

3-Code Memory:
Code memory is the memory that holds the actual program that is to be run. This memory has different values from one microcontrolle to another and comes in many shapes and sizes: Code memory may be found on-chip, either burned into the microcontroller as ROM or EPROM. Code may also be stored completely off-chip in an external ROM or, more commonly, an external EPROM. Flash RAM is also another popular method of storing a program. Various combinations of these memory types may also be used.


Read more...