Download Digital Electronics I: Overview of Basic Logic Functions and Combinational Circuits and more Slides Digital Electronics in PDF only on Docsity! EEE130 Digital Electronics I Lecture #1_2 Dr. Shahrel A. Suandi 1-4 Overview of Basic Logic Functions โข Digital systems are generally built from combinations of NOT, AND and OR logic elements โข The combinations of these elements can be used for the followings: โ Comparison, arithmetic, codes conversion, encoding, decoding, data selection, storage and โข This section will only give introduction to these common logics, while the details will be explained in future chapters (Chapter 6) Subtractor, multiplier and divider โข Subtractor is used for subtraction โ Requires 3 inputs: โข 2 inputs โข 1 borrow input โข Multiplier is used for multiplication โ Two inputs/numbers are multiplied at a time โ Multiplication is actually a process of multiple time of addition, so we can also use adder for this purpose โข Divider is used for division โ Two inputs/numbers are used for this purpose โ The outputs generated are the quotient and the remainder โ Similar to multiplier, divider is actually series of subtractions, comparisons, and shifts adder can be used in conjunction with other circuits for this purpose โข Do you know ALU?? โ Arithmetic Logic Unit โ a unit where all arithmetic operations are done in a microprocessor The Code Conversion Function โข Code โ set of bits arranged in a unique pattern and used to represent specified information โข Function of code converter โ to convert one code to another form of code โข Example: โ Binary BCD (binary coded decimal) โ Binary gray code โข BCD โ binary codes that represent decimal digits. There are only 10 code groups in the BCD systems โข Gray Code โ used to minimize error, especially in servo (shaft position encoders). Is unweighted and is not an arithmetic code. There are no specific weights assigned to the bit positions The Encoding Function โข Encoder โ converts information from one form to another form โข Example: โ Calculator: when button โ9โ is pressed, then the terminal is HIGH and being as the input to an encoder. This number โ9โ is then converted into binary, for example โ1001โ (BCD) The Storage Function โข Usage: to retain binary data for a period of time โข Example of storage devices: โ Flip-flops, registers, semiconductor memories, magnetic disks, magnetic tape, and optical disks (CDs) โข Flip-flops โ a bistable logic circuit that can store only one bit at a time, either 1 or 0 โข Registers โ a combination of several flip-flops forms registers, 8-bit register is constructed from eight flip-flops โ Shift registers are registers used to shift the bits from one position to another within the register or out of the register to another circuit โข Semiconductor memories โ used for storing large numbers of bits. E.g.: ROM (permanently or semipermanently stored), RAM (temporarily stored) โข Magnetic memories โ used for mass storage of binary data. E.g.: floppy disk Examples of registers(1 )
- serial shift register -
Serial bits
on input line
0101 โ
010 โ
0
0
01โ
oO ]] Oo = J
0
0
0
| Initially, the register contains only invalid
data or all zeros as shown here.
First bit (1) is shifted serially into the
register.
Second bit (0) is shifted serially into
register and first bit is shifted right.
Third bit (1) is shifted into register and
the first and second bits are shifted right.
Fourth bit (0) is shifted into register and
the first, second, and third bits are shifted
right. The register now stores all four bits
and is full.
Examples of registers(2)
- parallel shift register -
Parallel bits
on input lines 0
T โ| ~ || Initially, the register is empty,
O O O O containing only nondata zeros.
1 || All bits are shifted in and
O ] O 1 stored simultaneously.
1-5 Fixed Function Integrated Circuit (IC) (2) โข Pins Numbering โ Pin 1 always marked by an identifier like small dot, a notch, or beveled edge โข Complexity Classification for Fixed-Function ICs โ SSI (Small-scale integration) โ 10 gates โ MSI (Medium-scale integration) โ 10โ100 gates โ LSI (Large-scale integration) โ 100โ10,000 gates โ VLSI (Very large-scale integration) โ 10,000โ100,000 gates โ ULSI (Ultra large-scale integration) -- >100,000 gates โข Integrated Circuits Technology โ You will come across MOSFETs, CMOS, TTL etc. in this topic 1-6 Introduction to Programmable Logic โข Types of Programmable Logic Devices โ SPLD (Single Programmable Logic Device) โ there are PAL and GAL โ CPLD (Complex Programmable Logic Device) โ FPGA (Field Programmable Gate Array) PLD (Programmable Logic Device) Programming Process โข Design Entry โข Functional Simulation โข Synthesis โข Implementation โข Timing simulation โข Download Other Equipments โข The Logic Analyzer โข Signal Generator โ Waveform generator, function generator โข Others: โ DC Power Supply Example Digital System
3.
MOG)
Number of
Keypad for emvering tablets per bottle
number of tablets.
per bottle PP Binary code for preset number
Code of lublets per bottle
converter ::
a fo
HIGH closes valve On-site display of
_ and advanees Binary code for y total tablets bottled
conveyor, LOW actual number of a
keeps valve open. tablets in bottle
55u
One pulse icine
from sensor
for each tablet
advances
counter by'1. HIGH causes new
sum to be stored.
Pulse resets counter to zero n
when next bottle is in place.
(Current toral sum
A binary code for the total number of tablets is transferred in serial form t
along this line for remote display and computer inventory control. x
Switching sequence
control input