11.chapter 2
11.chapter 2
This chapter describes the background theory of roll counter generator for all
electronic devices using 7 segment display, PIC18F452 microcontroller, capacitors,
resistor, LED, crystal oscillator and push bottom.
Each one of the seven LEDs in the display is given a positional segment with
one of its connection pins being brought straight out of the rectangular plastic
package. These individually LED pins are labeled from a through to g representing
each individual LED. The other LED pins are connected together and wired to form a
common pin.
So by forward biasing the appropriate pins of the LED segments in a particular
order, some segments will be light and others will be dark allowing the desired
character pattern of the number to be generated on the display. This then allows us to
display each of the ten decimal digits 0 through to 9 on the same 7-segment display.
The displays common pin is generally used to identify which type of 7-segment
display it is. As each LED has two connecting pins, one called the “Anode” and the
other called the “Cathode”, there are therefore two types of LED 7-segment display
called: Common Cathode (CC) and Common Anode (CA).
The difference between the two displays, as their name suggests, is that the
common cathode has all the cathodes of the 7-segments connected directly together
and the common anode has all the anodes of the 7-segments connected together and is
illuminated as follows.
The Common Cathode (CC) – In the common cathode display, all the cathode
connections of the LED segments are joined together to logic “0” or ground. The
individual segments are illuminated by application of a “HIGH”, or logic “1” signal
via a current limiting resistor to forward bias the individual Anode terminals (a-g).
7
In general, common anode displays are more popular as many logic circuits
can sink more current than they can source. Also note that a common cathode display
8
is not a direct replacement in a circuit for a common anode display and vice versa, as
it is the same as connecting the LEDs in reverse and hence light emission will not take
place. Depending upon the decimal digit to be displayed, the particular set of LEDs is
forward biased. For instance, to display the numerical digit 0, we will need to light up
six of the LED segments corresponding to a, b, c, d, e and f. Thus the various digits
from 0 through 9 can be displayed using a 7-segment display as shown.
make electrical connections. Its physical dimensions are tightly controlled since they
control oscillation frequency. Putting an external capacitor in series with the crystal’s
internal motional capacitance C, reduces the net total series capacitance of the two
and thereby raises the crystal’s series-resonant frequency. In practice, specifying
parallel resonance simply tells the manufacturer to, set the crystal’s series resonance a
little lower than the frequency resisted by the user, so that when the crystal is put in
series with (or parallel with) a small capacitor, the crystal’s resonant frequency will be
what the user wants.
LEDs have many advantages over incandescent light sources, including lower
energy consumption, longer lifetime, improved physical robustness, smaller size, and
faster switching. LEDs are used in applications as diverse as aviation lighting,
12
All power supplies have a power input connection, which receives energy in
the form of electric current from a source, and one or more power output connections
that deliver current to the load. The source power may come from the electric power
grid, such as an electrical outlet, energy storage devices such as batteries or fuel cells,
generators or alternators, solar power converters, or another power supply. The input
and output are usually hardwired circuit connections, though some power supplies
employ wireless energy transfer to power their loads without wired connections.
Some power supplies have other types of inputs and outputs as well, for functions
such as external monitoring and control.
2.7. Summary
The background theory for roll counter system has been described in this
chapter. The basic concepts of 7 segment display and microcontroller have been
discussed.