Andsoagain, wewanttogiveourselves a littlebitmoreroom.
SogoingtouseanotherFredboardhere, and I'm gonnaconnectitrightherebecausewe'regonnadothisrightbelowhere.
Actually, I'm alsogoingtoconnectbelowthistheinstructionregister, whichwebuiltin a previousvideoon.
We'renotreallygonnabeusingtheinstructionregisteratallforthis, Butjustwhenweputthefinalcomputertogether, thisis a goodplaceforit.
Sowe'lljustwe'lljusthavethatthere.
So, like I said, whatwewant, wewantsomedipswitchesherewhenwe'reinprogrammingmodewillbeabletosettheaddresshere, willbeabletosetthedataheretowritedataintomemoryon.
Fromthebus, wewanttousethose 74 l s 1 57 chipsthatwethatwelookedatinthelastvideoesoIthasthese A and B inputsin a Y output, andyouselectbetween A and B usingtheselectpinhere.
Whentheswitchison s O, forexample, thiswillconnectthe A inputofthisfirst, uh, thisfirstbitforthesortofthemostsignificantbitheretogroundwhentheswitchison.
And, ofcourse, forthattowork, I needtoconnectthissideofittoground.
Sowhenthaton, thenitconnectsgroundtoaatinput.
Andthenwhenit's off, it's disconnected.
Whichmeansthattheimportsgonnadefaulttoehighbecausealloftheinputsontheseonthesehave a pullupresistorsbuiltintothesechips.
Ifit's notconnected, theinputwillbehighonagain, justlikewedidhere, becauseit's kindofunintuitivefortheswitchtobedown, meaninghighandup, meaningzerosodownas a oneupis a zero.
I'm gonnajustflipthisswitchupsidedown.
Sothatway, whentheswitchesairdown, they'reon.
Andthenwhenwefliptheswitchup, theswitchturnsoff.
Andsowhenit's off, it's notconnectedtoground, whichmeansit's gonnabe a one.
Andwhenit's onwhenit's down, itisconnectedtogroundandit's a zero.
Sogoaheadandconnecttotherestoftheseand, ofcourse, fortheseinputsuphere, then I'lljustconnecttheconnecthimthroughtoswitchtheotherwayandconnectthegroundsdownhere, andthentheyjustconnectupintothesepinsuphere, thenturnedaroundthewiresbackandforth.
Okay.
Andthatshouldbeconnectingourdips, whichisuptothe A inputsofofthe 74 less 1 57thNowthebeinputsofthe 74 less 1 50 seven's.
Wewant a programhere, setthedatathatwewanttoputinthataddresshere, andthenwewant a toggle.
Ourright, ofcoursetodothatwouldbenicetohave a littlepushbuttonswitch.
So I'vegotthathere.
Youstickthatinthere, andsothiswilljustbe a littlebuttonthatwecanpushtowritethedata.
Soonceweputtheaddressthatwewanttowriteittoo, andputthedatahere, pushthatbuttonand I willwriteittotothere.
Butofcourse, again, wewanttobeabletoswitchbetweenusingthisbuttontowritetomemoryandthecomputerbeingabletohave a controlsignalthat's gonnacomefromthecontrollogicofthecomputertotellitthatwewanttowritedataintomemory s Oh, thisthisrightsignalthat's goingintothememorynow, um, hastobeswitcheddependingonwhetherwe'reinprogrammemodeornot s o.
Ofcourse, todothat, we'regoingtouseanother 74 Ellis 1 57 which I'llputitrighthere.
Sowe'llconnecttheswitchfromfromgroundthroughtheswitchandthenintothe a inputofour 74 less 1 57 Andsotheyinputisistheinputthatwillbeusingwhenwe'reinprogrammemodeandthenwhenwe'reinrunmode, um, thiscouldbe a littlebitdifferentinrunmode, wewanttoessentiallytakethesignalfromfromthecontrollogic.
Sothecontrollogicinthecomputerwhichwillgettoinfuturevideos a TTEsomepointWell, programsareexecuting.