Irejista ye-Shift iyithuluzi elisebenzisa i-lequint logic ukugcina nokudlulisa imininingwane kanambambili.Kungumjikelezo we-bitirectional oshukumisela idatha ngayinye encane evela ekufakweni kokukhipha kuwo wonke amakhefu wewashi.Njengamanje kunamamodeli wokurejista we-Shift ahlukahlukene, phakathi kwawo i-74HC595 yirejista ye-serial-parallel yokuphuma ehambisanayo.Umsebenzi wayo ukuguqula amasiginali e-serial abe amasiginali afanayo, futhi asetshenziswa kakhulu kuma-hip chips amashubhu ahlukahlukene wedijithali kanye nezikrini ze-DoT Matrix.Le ndatshana izokwethula imininingwane yayo ethile ngokuya ngezikhonkwane kanye nezicelo.
Namabhuku
74hc595 Ukufakwa kwe-serial-bit 8-bit, ukuhanjiswa okuhambisanayo kokuphuma, futhi ukuphuma kwawo okufanayo kungukuphuma kombuso ezintathu.Onqenqemeni olukhuphukayo lwe-SCK (iwashi le-serial), idatha ye-serial ifakwa kwirejista yangaphakathi ye-8-bit shift nge-SDL (ukufakwa kwedatha ye-serial) nokuphuma okuvela ku-Q7 '(okuphezulu kakhulu kokukhipha idatha).Ukukhishwa okuhambisanayo kwenzeka onqenqemeni lwe-LCK (Latch Control).Ngalesi sikhathi, imininingwane erejista ye-8-bit shift ihanjiswa kwirejista yokuphuma efanayo ye-8-bit parallel.Lapho i-OE (ekhishwa inika amandla) Isiginali yokulawula iphansi (inika amandla isimo), inani lokukhipha le-terminal yokuphuma okuhambisanayo lilingana nenani eligcinwe kwirejista yokuphuma ehambisanayo.
Ezinye izindlela nokulingana
I-74Hc595 inezinkomo eziyi-16.Umdwebo othize wephinikhodi nemisebenzi yayo imi ngalendlela elandelayo.
I-PIN 1 (Ser): Ukufakwa kwedatha ye-serial
I-PIN yeSer iyinqwaba yokufaka idatha ye-74Hc595.Idatha ingafakwa ku-chip bit by by ngokusebenzisa le pin.Lapho sisebenza, okokuqala sifaka idatha ye-serial kule phinikhodi, bese sishintsha idatha yokufaka kwirejista ye-Shift Rejit ngokunciphiswa kwe-PIN yewashi ukuze ifinyelele ekudluliseni kwewashi.
I-PIN 2 (RCLK): Bhalisa okokufaka kwewashi
I-PIN ye-RCLK iyinqwaba yokufaka iwashi le-74hc595.Lapho yonke imininingwane yokufaka iguqulwe kwirejista ye-Shift, siguqula ukuguqulwa kwezinga le-RCLK PIN ukuhambisa idatha kwirejista ye-Shift ku-attless rejista ngasikhathi sinye.Umsebenzi wale phini ukulawula ukusebenza kwesitoreji kwedatha.
I-PIN 3 (SRCLK): Ukufakwa kwewashi
I-SRCLK PIN iyinqwaba yokufaka iwashi yokufaka ye-74Hc595.Ngesikhathi sokusebenza kwe-Shift, sishintsha idatha yokufaka kwirejista yokushintsha ngokulawula ukuguqulwa kwezinga le-PIN ye-SRCLK.Umsebenzi wale phini ukulawula isiginali yewashi yokusebenza kwe-Shift.
I-PIN 4 (OE): Ukukhipha amandla amandla okufaka
I-Pin ye-OE ukukhishwa amandla okufaka amandla okufaka we-74Hc595.Ngokulawula izinga lale phini singavumela noma sikhubaze i-PIN yokuphuma.Lapho iphini le-OE liphezulu, i-PIN ekhipha ikhutshaziwe futhi akukho datha yokufaka edluliswayo.Lapho iphini le-OE liphansi, i-PIN ekhiphayo izodlula idatha yokufaka.
I-PIN 5 (DS): Ukufakwa kwedatha ye-serial (bidirectional)
I-PIN ye-DS iyinhlangano ye-serial idatha yokufaka ye-serial yedatha ye-74Hc595.Ngokungafani ne-PIN 1 (Sere), i-PIN ye-DS ingalawulwa umjikelezo wangaphandle wokusebenzisa ukuxhumana kwe-bitirectional.Lokhu kushintshwa kwe-PIN phakathi kwemodi yokufaka ye-serial kanye nemodi yokuphuma efanayo.
I-PIN 6 (ST_CP): Ukukhishwa kwesitoreji kwe-Flip-Flop Clock
I-ST_CP PIN iyinhlangano yokufaka indawo yokufaka ye-Flip-Flop Clock yokufaka ye-74Hc595.Lapho okuphuma kwesitolo se-Flip-Flop Clock Signal, idatha kwimemori yokukhipha izogcinwa kwi-PIN yokukhipha ngokususelwa kokufakwa kwamanje.Umsebenzi wale phini ukulawula ukusebenza kwesitoreji kwedatha.
I-PIN 7 (SH_CP): Ukufakwa kwewashi kwe-Shift Rejista
I-SH_CP PIN iyinqwaba yokufaka iwashi lokufaka le-74Hc595.Lapho isiginali ye-Shift Clock Clock Signal, idatha yokufaka izoshintshwa ibe yi-Shift Rejit kancane kancane.Umsebenzi wale phini ukulawula isiginali yewashi yokusebenza kwe-Shift.
I-PIN 8 (Q7 '): Ukuphuma kwe-PIN
I-Q7 'PIN iyi-8th bit (ephezulu kakhulu) yokukhipha i-74Hc595, esetshenziselwa ukukhipha idatha ye-8th bit kwirejista ye-Shift.Isimo sezinga lale phini sinqunywa yidatha yokufaka kanye nedatha kwirejista ye-Shift.
Izikhonkwane 9-16 (Q0-Q7): 7 ukuphuma kwezikhonkwane
Izikhonkwane ze-Q0 kuya ku-Q7 yizikhonkwane ezi-8 ze-74Hc595 (kufaka phakathi i-Q0 kuya ku-Q7), ezisetshenziselwa ukukhipha idatha kusuka kokuphansi kwerejista ephezulu.I-PIN ngayinye ihambelana nokukhipha idatha kancane.Ngalezi zikhonkwane, imininingwane yerejista ye-Shift ingakhipha umjikelezo wangaphandle ngokufana.
I-74Hc595 ivame ukusetshenziswa kulezi zindawo ezilandelayo.
Ukulawulwa kokudlulisa
Izici zokukhishwa okuhambisanayo ze-74Hc595 zikwenza ukwazi ukushayela izinguqulo eziningi ngasikhathi sinye, futhi okudluliselwe ngakunye kungalawula amadivaysi elilodwa noma amaningi kagesi.Ngakho-ke, ngokusebenzisa ukwakheka kwesifunda kanye nohlelo, singakha uhlelo lokulawula oluguqukayo nolunamandla kagesi.
Ukukhishwa kwedijithali kokukhipha
Ngokuxhuma izikhonkwane zokukhipha ze-microcontroller kuya ezinhlakeni zokufaka ze-serial ze-74Hc595, siyakwazi ukubona umsebenzi wokukhishwa kwePort Port, ngaleyo ndlela unikeze izikhonkwane ezilawulwayo ezilawulayo.Ngale ndlela, singasebenzisa ngokunenzuzo isici sokukhipha esifanayo se-74hc595 sokunweba amachweba akhawulelwe e-microcontroller emaphoyinti okulawula amanye, akwazi ukulawula okuqondile kwamadivayisi amaningi noma izakhi.
Ukulawula Ukulawula
Esimweni sokulawula ukuboniswa kwe-LCD, i-74HC595 iyakwazi ukusebenzisa okokufaka kwayo kanye nezimpawu zokukhipha ezihambisanayo ukuhambisa idatha yokubonisa ethunyelwe kusuka ku-microcontroller kumarejista awo angaphakathi.Kamuva, ikhipha le mininingwane ngokuhambisana nomjikelezo womshayeli we-LCD ngokusebenza kwe-latch.Ngale ndlela, singabuyekeza ngokushukumisa okuqukethwe kusibonisi se-LCD, noma ngabe kungumbhalo, izithombe noma ividiyo, ngendlela ebushelelezi.
Umculo wokushaya
Lapho sihlanganisa i-Beat Control algorithm ngerejista ye-74Hc595 Shift, singadala ngobuhlakani umphumela okhanyayo ovumelaniswe ngokuphelele ngokushaya komculo.I-algorithm yokulawula ukushaya, njengoba umnyombo, unesibopho sokuthwebula ngokunembile ukushintshwa kwezigqila zomculo nokwenza amasiginali ahambisanayo okulawula.Lezi zimpawu akuyona nje imiyalo elula yokushintsha, zingaqukatha imvamisa, ukukhanya, nokushintshwa kombala kwama-LED akhanyayo.I-74Hc595 ingakwazi ukulawula kahle isimo se-ON / OFF ezweni lama-LED amaningi ngokusebenzisa okokufaka kwayo kanye nezimpawu zokukhipha ezihambisanayo.
Ukuboniswa kwe-Static
Umugqa wokukhetha wesegment we-LED aholwayo uxhumeke ekuphumeni okuhambisanayo kwe-74HC595, ukuze kancane ngakunye kungavezwa ngokuzimela (bona isithombe esingezansi).Ngasikhathi sinye, ngoba ukuboniswa okuncane kulawulwa yi-Port ezimele 74Hc595 Parallet Port, ikhodi yayo yokukhetha ingxenye yengxenye iyalawulwa, ngakho-ke izinhlamvu ezikhonjisiwe zingahluka.Kodwa-ke, ngezidingo zokubonisa ze-N-bit eziholayo, sidinga ama-Chips kanye nama-Chips kanye ne-N + 3 i / o Imigqa.Lokhu kuthatha izinsiza ezengeziwe futhi izindleko ziphakeme kakhulu.Umklamo onjalo ngokusobala awusizi ngalutho ukuboniswa okunamadijithi ama-LED amaningi ngoba kukhulisa ubunzima futhi kubiza umthwalo wohlelo.
Isibonisi esinamandla
Kuhlelo lokubonisa ama-relti-bit le-LED, ukuze wenze lula umjikelezo, ukunciphisa izindleko bese ugcine izinsiza zohlelo, singakwazi ukuxhumanisa zonke izinketho zekhodi ye-N-bit ngokuhambisana ne-74hc595 (bhekisa kwisibalo esingezansi).Njengoba amakhodi okukhethwa kwengxenye yazo zonke izilondile alawulwa ngokufana wukuphawula okuhambisanayo kwaleli 74hc595, nganoma yisiphi isikhathi, ama-N-bit Leds azobonisa izinhlamvu ezifanayo.Uma sifuna i-LED ngayinye ukukhombisa izinhlamvu ezahlukile, kufanele sisebenzise indlela yokuskena.Lokhu kusho ukuthi nganoma yisiphi isikhathi, sinaso esisodwa se-LED esibonisa izinhlamvu.Ngokwesikhashana esithile, itheku lokuphuma elihambisanayo le-74Hc595 lizokhipha ikhodi yokukhetha ingxenye yomlingiswa ohambisanayo.Ngasikhathi sinye, i-Tight Selection Control I / O Port izothumela izinga le-strobe kwisibonisi kancane ukuqinisekisa ukuthi uhlamvu oluhambisanayo luboniswa kahle.Le nqubo izokwenziwa nayo, ukuze i-LED ngayinye ikhombise umlingiswa okufanele abonise ngasikhathi.Kuyaqapheleka ukuthi njengoba i-74HC595 inomsebenzi we-latch futhi kuthatha isikhathi esithile sokukhetha ikhodi yokufaka ye-serial yokufaka, ekusebenzeni kwangempela, asidingi ukubambezeleka okwengeziwe ukwakha umphumela wokuphambuka.
I-74Hc595 Chip iyilungu lochungechunge lwama-74.Inezimpawu zesivinini esisheshayo, ukusetshenziswa kwamandla okuphansi, nokusebenza okulula.Ingasetshenziswa kalula njengesibonisi se-microcontroller ukushayela ama-LED.
Ukuboniswa kwe-LED
I-Dispit ekhombisa ukukhanya kwe-diode eziyisikhombisa, eyaziwa nangokuthi yi-LED Exports, isetshenziswe kabanzi ezinhlotsheni ezahlukahlukene zokusebenzisa amanani aphansi, ukusetshenziswa kwamandla okuphansi kanye nokusebenza okuthembekile.Kunezinhlobo eziningi zabashayeli abazinikele ezinikezela emakethe yamanje.Yize iningi lazo licebile ngemisebenzi, amanani abo aphakeme ngokulandelana.Ngakho-ke, ukusebenzisa lezi zingcingo ngezinhlelo ezibiza kakhulu nezilula hhayi kuphela izinsizakusebenza kodwa futhi kwandisa izindleko zomkhiqizo.Usebenzisa i-74Hc595 ukushayela ama-LEDs anezinzuzo eziningi.Okokuqala, ijubane layo lokushayela lishesha futhi ukusetshenziswa kwalo kwamandla kuphansi.Okwesibili, ama-74hc595 angakwazi ukushayela izinombolo ezahlukahlukene ze-LEDs, noma ngabe kuyinto evamile eholwa yi-cathode eholwayo noma ukubonisa okujwayelekile kwe-anode eholwa, kungakuphatha kalula.Ngaphezu kwalokho, ngokusebenzisa i-software control, singashintsha kalula ukugqama kwe-LED futhi sicime isibonisi lapho kunesidingo (idatha isagcinwa), futhi yanciphisa ukusetshenziswa kwamandla kwanoma yisiphi isikhathi lapho kudingeka.I-Circuit yakhelwe ukusebenzisa i-74Hc595 hhayi nje kuphela i-software elula ne-Hardware, ukusetshenziswa kwamandla okuphansi, amandla okushayela aqinile, kepha futhi kuhlala imigqa emincane ye-I / O.Ngakho-ke, sekuyikhambi elibiza kakhulu futhi eliguquguqukayo, ikakhulukazi izimo ezinezidingo eziqinile zezindleko nezinsizakusebenza.
I-74Hc595 Chip LED Drive Circuit Design
Lesi sithombe esingezansi siyindilinga yephaneli yokubonisa yakhelwe kusetshenziswa i-AT89C2051 kanye ne-74HC595 isikhombimsebenzisi.
I-P115, i-P116, ne-P117 ye-P1 Port isetshenziselwa ukulawula ukubonisa okuholwa.Zixhumeke kwi-SLCK, i-SCLK nase-SDA PINS ngokulandelana.Amashubhu amathathu wedijithali asetshenziselwa ukubonisa inani le-voltage.Amashubhu amathathu edijithali afakiwe ebhodini lesekethe ukukhombisa inani le-voltage.Phakathi kwazo, uLed3 utholakala ngakwesobunxele, futhi u-LED1 usendaweni ephambili.Lapho uthumela idatha, okokuqala sithumela ikhodi yokubonisa ye-LED3, bese ekugcineni sithumela ikhodi yokubonisa ye-LED1.Ukukhanya kwe-LED kulawulwa ngokulungisa ukumelana no-PR1 ku-PR3.Lo mklamo awugcini nje ngokuqinisekisa ukuhleleka kokuboniswa kwedatha, kepha futhi unika amandla ukulungiswa okuguquguqukayo kokukhanya.
Sebenzisa ama-buffers noma abashayeli
Ukungeza ama-buffers noma abashayeli ekuphumeni kwama-74hc595, njenge-74LS244 (Unidirectional) noma ama-74LS245 (Bidirectional) noma amanye ama-chips okushayela, angathuthukisa ukuqina kwesiginali futhi athuthukise ukuqina kwesiginali.
Sebenzisa ukunikezwa kwamandla afanele
Uyacelwa ukuthi uqinisekise ukuthi i-Power Supply Voltage ka-74Hc595 ingaphakathi kobubanzi obucacisiwe futhi amandla ayo aqine ngokwanele ukufeza isidingo sokushayela somthwalo odingekayo.Uma ama-voltage ahlinzekwa amandla anganele, kungadala ukuthi ukunwetshwa kwesiginali okuphumayo ukwehla, okuthinta amandla ayo okushayela futhi ngenxa yalokho akunakushayela umthwalo ngempumelelo.
Faka umjikelezo womshayeli wangaphandle
Uma umphumela we-74hc595 awanele ukushayela ngokuqondile umjikelezo owufunayo, singangezela umjikelezo womshayeli wangaphandle, okufana nokusetshenziswa kwama-transistors, amashubhu wensimu (amafulethi) noma ama-chip akhethekile wokushayela ukuze akhuliseni uphawu lokuphuma lwe-74HC595.
Idizayini enengqondo ye-PCB wiring
Ku-PCB Wiring, kufanele sizame ukunciphisa ukumelana nokungaziwa kwe-wiring ukwenza ngcono ukusebenza kahle kwesiginali.Ngaphezu kwalokho, sicela uvikele ukukhiqiza ukuphazamiseka kakhulu nomsindo ku-wiring ukuze ungathinti ikhwalithi yesiginali yokuphuma ye-74Hc595.
Sebenzisa ukumelana komthwalo ofanele
Kufanele sikhethe ukumelana kahle komthwalo ngokuya ngezimpawu zedivayisi yokulayisha.Uma ukumelana komthwalo kuncane kakhulu, kuzoholela ekutheni kube manje kwamanje futhi kungalimaza i-74hc595 chip.Ngakolunye uhlangothi, uma umsakazo umthwalo mkhulu kakhulu, kungenzeka ungakwazi ukuthola ama-amplitude anele okuphuma.
Ukuphawula okuphuma okuningi
Uma amadivaysi amaningi adinga ukuqhutshwa, futhi izidingo zokushayela zalawa madivayisi ziyafana, singacabanga ngokuhambisana nokuphuma kwemiphumela yama-74hc595s amaningi ukuze athuthukise amandla okushayela jikelele.Kodwa-ke, ngaphambi kokufana, qiniseka ukuthi izidingo zokushayela zalawa madivaysi ziyahambelana, futhi inani eliphelele ngemuva kokufana akumele lidlule umkhawulo wamanje we-74hc595, ukuze ungabangeli ukulimala kwe-chip noma kuthinte umphumela wokushayela.
Imibuzo Ebuzwa Njalo [I-FAQ]
1. Ingabe i-74hc595 i-microcontroller?
I-74Hc595 iyirejista yokushintsha esebenza nge-serial eProtocol ehambisanayo.Ithola idatha ngokulandelana kusuka ku-microcontroller bese ithumela le datha ngokusebenzisa izikhonkwane ezihambisanayo.
2. Uyini umsebenzi we-74HC595?
I-74Hc595 iyithuluzi le-CMOS eliphakeme le-CMOS.I-Accep ye-Eight Shirt Reging Regiplets kusuka ku-serial okokufaka (DS) ekushintsheni okuqondile kwe-Shift Rejista Clock (SHCP).Lapho ugomela uphansi komsebenzi wokusetha kabusha usetha wonke amanani werejista ye-Shift kuya ku-zero futhi angenawo wonke amawashi.
3. Mangaki amanje amamanje angabanjwa?
Ishidi ledatha lama-74hc595 lithi imiphumela ngayinye ingaletha okungenani i-35ma ngoba lokhu kungukuphuma okuphezulu okuvunyelwe.Lokhu ngokusobala kusobala-ke i-25mA ye-μc.Kukhona omunye umkhawulo: I-74HC595 akumele inikeze ngaphezu kwe-70ma isiyonke.
4. Uyini umehluko phakathi kukaMax7219 no-74Hc595?
I-74HC595 iyirejista yokushintsha futhi iMax7219 ingumshayeli oboniswe kakhulu.Ngakho-ke bobabili angenzi into efanayo.I-max7219 izoba (kakhulu) kulula ukuyisebenzisa nge-picaxe uma i-MulkeXhing i-MultipleXIng the Experays njengoba i-MulkeXhing ilokwenziwa yi-max7219 hhayi i-picaxe kodwa ibiza kakhulu.