Chapter 5
Chapter 5
Chapter 5
Example:
What is the coding for ”A” in ASCII? This is the code would expect to
Assembling the 7-bit code gives 100 0001 = A be sent to a computer’s CPU if A
key is pressed on the keyboard.
THE ASCII CODE
Be aware that the control characters may have other meanings on specific computers or
other equipment. However common control characters such as BEL (bell), BS (Backspace), LF
(line feed), CR (carriage return), DEL (delete), and SP (space) are used on most computers.
The exact meaning of the ASCII control codes should be looked up in equipment manual.
TYPICAL ARRANGEMENT OF DIGITAL SYSEMS
KEYBOARD
INPUT
ENCODERS
Encoder is an electronic translator that
Definition:
translates the decimal input from the keyboard
to an 8421 BCD code.
For instance:
If the decimal input 3 on the decoder is
activated, then the logic circuit inside the
unit outputs of the BCD number 0011 is
ACTIVATED .
Just now we have seen that, Encoder is used to translate the decimal
numbers into binary code (BCD).
Decimal
ENCODERS BCD code
Numbers
Translate
Seven-segment display
SEVEN-SEGMENT LED DISPLAYS
Figure shows seven-segment identification labelled “a” through “g”.
The displays representing decimal digits 0 through 9.
For example, if segments a, b, and c are lit, a decimal 7 is displayed.
If segment a through g are lit, a decimal 8 is displayed.
Figure:
(a) Segment identification.
(b) Decimal numbers on typical seven-segment display.
SEVEN-SEGMENT LED DISPLAYS
Gas-discharge tube
It operates at high
voltages and gives off an
orange glow.
Incandescent display
Each of segments being a Vacuum fluorescent (VF)
thin filament that glows It operates at low
(similar to regular lamp) voltages and gives off a
blue-green glow when lit.
Types of display
Assume that the BCD input to the 7447A decoder/driver in previous figure is 0001
(LLLH).
This is equal to line 2 of the truth table.
This input combination causes segments b and c on the seven-segment display to light
(outputs b and c drop to LOW). Then decimal 1 is displayed.
Since the LT and two BIs are not shown in the previous figure.
So, when not connected, they are assumed to be “floating” HIGH and therefore
disabled in this circuit.
Good design practice suggests that these “floating” inputs should be connected to +5V
to make sure they stay HIGH.
BCD-TO-SEVEN-SEGMENT DECODER/DRIVERS
Many applications, such as calculator or cash register, require that the leading zeros be blanked.
The illustration below shows the use of 7447A decoder/drivers operating a group of displays as in
a cash register.
The six-digit display example
details how the blanking of
leading 0s would be
accomplished using the
7447A IC driving LED displays.
Driving a 7-segment
display.
It is common to produce
required ac voltage by
applying out-of-phase
square waves to the
segment and the
backplane.
LIQUID CRYSTAL DISPLAYS (LCD)
END OF LECTURE