Andnowthatgivesusroominherethatwecangoaheadandputtogether a memoryaddressregister, whichisgonnaconnectintoourmemoryaddresslineshere.
So I'm gonnagettheseoutofthewayfornow.
Justmovethemalldownhere.
Justgiveourselves a littlebitmoreroom.
Sothememoryaddressregistered, we'regonnausethe 74 l s 1 73 thatwe'vethatwe'veusedmanytimesbeforeforregistersand a lookthatupoverherethat's gonnabeconnectedtothebusbecause a Dariuspoints, we'regonnahavememoryaddressappearonthebus, andwewanttobringthatinandstorethatinthememoryaddressregister, whichwillthenbeconnectedtoourmemorytotellitwhataddresstoo, toaddress.
Andandthenoncethataddressessetthere, thenwe'lleitheroutputcontentsfromthebusorwemightinput a newvaluefromthebusintothememory.
Butwhilewe'reinputtingaroundputtingforthememory, weneedtostoretheaddresstowhichwe'restoringorreadingfrominthisinthecenter's register s sowecouldjust, youknow, itseemslikeitbesimpleenoughtojusttaketheseaddresslinesandhookthemuptothisregister.
Well, thisisthisis a fairlystraightforwardcircuitthatyoucanwekindofreasonthroughthatallowsustoselectbetweentwodifferentvalues.
So, forexample, andthisisjustonebitso, forexample, thefirstbitofouraddressthat's storedinourregistermightbe a andthefirstbitofouraddressontheswitchesmightbebion.
Whereifselectishighthanthis, inputtotheendgatewillbe a one, um, whichmeansthatifthisotherinputstheendgateis a onethantheoutputsofoneIfthisinputzerothantheoutputzero s o.
Ifwe'reIfselectis a onethanthis, a signalisjustbasicallygonnapassthroughtheendgate.
Andbecausethisisinverted, thisandgatewilldefinitelyalwaysbe a zerobecausewe'llhave a zerocominginhereon, andthentheorgaywilljustbewhateveriscomingin a Ifselectgoeslowthanthis, Andgateisbasicallyalwaysgonnabeoffbecausewehave a zerocominginhere.
Um, andwe'llhave a onecominginheresothisanditwillpassthroughthe B andthen, ofcourse, theorgate.
It'llbe a zeroorwhateverbeisandsaidtheoutputwilljustbewhatever b is.
Sobysettingtheselecthigherlow, we'reselectingwhetherwewant A or B toappearonthisoutput.
Conveniently, thereis a chipthatdoesexactlythis.
It's the 74 l s 1 57 whichis a quadtolinetoeonelinedataselector.
Sonow, tohookupthedipswitchestotheotherinputofthe 74 less 1 57 but I wanttodoistakeadvantageofthewaythattheinputsonthesechipswork, whichisformostofthese T TLchipsthatwereusing.
Theinputsaretiedhigh.
There's a resistorinsidethesethesechipsthatconnectstheinputtwoplusfivevolts.
Soifwedon't connecttheswitchestohearitallthan a inputsonon, thiswillallbeonesbydefault.
Sogonnaadd a switchherethatwecantogglebetweenthedipswitchesandtheiraddressregister.
Andthisis a doublethrowswitchsowecanconnectthecenterpinheretoground, um, andthendependingonwhetherwhichpositiontheswitchesandwhetherwehadpushedinororpushedout.
It'llconnectthatgroundtoeithertheleftpinortherightpinandsayssomething I wanttodojusttomakethis a littlebit.
I don't know.
Maybe a littlenicertouseishavesomeindicator l ladiestotelluswhichpositiontheswitchesin.
Youcanlookattheswitchandsee, but I likehavingtheseindicatorssowecantellifthecomputerwhichmodethecomputerisinbecausewedefinitelywanttobeabletotellprettyeasilywhetherthecomputersandprogrammingmodewhichwillbetheredledonorinrunningmode, whichmeansthatthegreenledisonsolittledoisconnecttheswitchupheretobothoftheseladies.
Andweneedcurrentlymanyresistorsherebecausewe'reconnectingwhenwhicheverpositiontheswitchesandwe'regonnabeconnectingdirectlyfromfivevoltsthroughtheledtogroundAndso, without a currentlimitingresistorwillbepushingtonsofcurrentthroughtheledwillburnitout.
Andsoifwe'reontheredled, essentiallypinone, thengoeslowandwe're, uh, see, whichoneareweselecting?
Selfselectislow.
Thenitlookslikewe'reselectingthe A input s o ifwe'reontheredled.
Soifpinoneislow, thatwereselecting A whichisourdipswitchesSoredledonmeansthatwe'reusingourdipswitches, whichmeanswe'reinprogrammingmodebecausewe'reusing a dip, switchestoprogramthecomputer.
I mean, I guesswedon't knowforsureifwe'readdressingit, right, But I I mean, itseemsreasonablethatifwe'regoingtodifferentaddresseshere, we'regettingdifferentthings.