16
Digital Systems with Lab ENGIN 241 Lab 1 - Presentation Dr. Honggang Zhang Engineering Department University of Massachusetts Boston

Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

Embed Size (px)

Citation preview

Page 1: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

DigitalSystemswithLabENGIN241

Lab1- Presentation

Dr.Honggang ZhangEngineeringDepartment

UniversityofMassachusettsBoston

Page 2: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

Today’sLab• UseLogisim tobuildandsimulateasimplelogiccircuit.

– TheschematicisonPage20ofslideL02.pptx.pdf.– PutyourLogisim simulationscreencapturesintoyourLab1report.– Youneedtoshowinyourreporttheoutputresultsofatleast4input

combinationsfromyoursimulation.Youcandoascreencapturetogetanimageofeachsimulationandputitintoyourlabreport.

– WritedowntheTruthtableofthecircuitandcompareitwithyoursimulationresults.

• Buildasimplecircuitonbreadboard,usingsomelogicgatesinourlabkit.– Testa7400NANDgatetoobservetheoutputvalueforall4inputlogiclevels.

UseLEDtoshowalogicoutput.– Beforeyouleave,showyourcircuitworktotheinstructorandLabAssistants.– Takeapictureofyourcircuitonbreadboardandrecordyourobservation,and

putthemintoyourlabreport.

2

Page 3: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

Today’sLab(cont’d)

• WriteLab1report.– Asktheinstructorforanyformatquestions.– Doasmuchworkaspossible,asyouwillneedtosubmitPre-Lab

reportnextThursday.

3

Page 4: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

Breadboard

4

Page 5: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

PowerandBreadboardWiring• Thechipsareplacedabovethechanneloneithersideofthebreadboard,suchthateachpinofyourchipwillhaveseveralavailablewirereceptorsforeasysolder-freewiringofyourcircuits;

5

Page 6: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

7400Chip

6

Page 7: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

7

ICPackagingIC’sandotherelectronicdevicesareavailableinavarietyofpackages.ThetablebelowwastakenfromaJameco Electronicscatalog.MostoftheIC’sthatwillbeusedinlabwillbeDIP(DualIn-linePackages).

Page 8: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

8

DIPSwitches• DIPswitchesaregroupsofsimpleslideswitchesinDIPpackages.• DIPswitchesarecommonlyusedoncircuitboardstoselectoptions.Youmayhaveseenthemusedinprinters,modems,remoteforgaragedooropeners,etc.

• DIPswitchesarecommonlyavailablewith2-12switches(poles).• DIPswitchesusuallyhaveOFForONmarkednexttooneswitchposition,where

• ON=closedswitch• OFF=openswitch

12-poleDIPSwitch(Reference:www.allelectronics.com)

4-poleDIPSwitch(Reference:www.jameco.com)

Page 9: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

9

DIPSwitches

4-poleDIPSwitch:Appearance(Reference:www.jameco.com)

SlideswitchtoONpositiontoclose.

1 2 3 4

4-poleDIPSwitch:Schematic

Page 10: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

10

UsingDIPSwitchestoprovideHIGHandLOWinputsSinceaDIPswitchsimplymakesorbreaksaconnection,aresistorneedstobeusedtoinordertouseittoprovideeitheraHIGHorLOWinputtoalogicgate.

OFForopen(HIGH)

ONorclosed(LOW)

2.2k

+5V

switchoutput

DIPswitch

Page 11: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

11

Usinga4-poleDIPswitchtoprovide4circuitinputs

F=AB+CD

2.2k

+5V

2.2k

+5V

2.2k

+5V

2.2k

+5V

F

AB

CD

DIPSwitch

OFF=OpenSwitch=HIGHinputON=ClosedSwitch=LOWinput

Page 12: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

12

DiodeAdiodeisasemiconductordevicethatactssomewhatlikeavoltagecontrolledswitch.Thesymbolforadiodeisshownbelow.Thepositiveterminalofthediodeiscalledtheanodeandthenegativeterminalisthecathode.

anode cathode

V+ _

DiodeSymbol

anode cathode

V+ _

DiodeAppearancePicturesofdiodes(Reference:www.allelectronics.com)

Page 13: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

13

LED(Lightemittingdiode)LED’sarediodesthatemitlightwhentheyareforwardbiased (apositivevoltageplacedacrosstheLEDfromanodetocathodeasshownbelow).TheamountoflightproducedisproportionaltothecurrentthroughtheLED

anode cathode

V+ _

Forward-biasedLED

anode(long)

cathode(short)

LED:Physicalappearance

Luminous

I(mA)12 20

destructionintensity

TypicalLEDcharacteristics

PicturesofLEDs(Reference:www.allelectronics.com)

Page 14: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

14

LED(Lightemittingdiode)Theresistance ofanLEDissufficientlylowsuchthatifafewvoltsisplaceddirectlyacrossanLED,itwillbedestroyed.Therefore,acurrent-limitingresistor shouldalwaysbeusedwithanLED.Theresistormustbechosentoyieldacurrentsuchthatanappropriatebrightnessisobtained.

220W

outputisHIGH

LEDandcurrent-limitingresistorusedtoindicateoutputlogiclevel

LEDlightswhen

Commonvaluesforcurrent-limitingresistors:200W,220W,270W,330W

Page 15: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

Resistorcolorcoding

15

Pleaseidentifyallresistorsinourlabkit.

Eachone’simage,anditsresistance,andputtheinformationinyourLab1report!

Page 16: Digital Systems with Lab ENGIN 241 - umb.edueng.umb.edu/~hzhang/e241/Lab/Lab_1/L1-Slides.pptx.pdf · Digital Systems with Lab ENGIN 241 ... • Use Logisimto build and simulate a

16

ResistorColorCodeTheresistanceofcarbonresistorsisindicatedbycoloredbandsontheresistor.Thefirstthreebands(A,B,C)indicatethevalueoftheresistanceandthelastband(D)indicatesthetolerance.

ABCDR=ABx10C

A=FirstDigitB=SecondDigitC=NumberofZerosD=ToleranceCode

ValuesforBandsA,B,andC

ValuesforBandDGold– 5%toleranceSilver– 10%toleranceNone– 20%tolerance

Riscalculateusing:

Examples:Yellow,Violet,Brown,Silver:R=47x101 =470W,10%toleranceBrown,Black,Orange,Gold:R=10x103=10kW,5%tolerance

or