Cov txheej txheem:

Siv ESP32/VGA32 Terminal rau Z80-MBC2: 7 Cov Kauj Ruam
Siv ESP32/VGA32 Terminal rau Z80-MBC2: 7 Cov Kauj Ruam

Video: Siv ESP32/VGA32 Terminal rau Z80-MBC2: 7 Cov Kauj Ruam

Video: Siv ESP32/VGA32 Terminal rau Z80-MBC2: 7 Cov Kauj Ruam
Video: Siv HD - JUKE CITY (欺詐師合輯) 2024, Kaum ib hlis
Anonim
Siv ESP32/VGA32 Terminal rau Z80-MBC2
Siv ESP32/VGA32 Terminal rau Z80-MBC2
Siv ESP32/VGA32 Terminal rau Z80-MBC2
Siv ESP32/VGA32 Terminal rau Z80-MBC2

Yuav tsim thiab teeb tsa ANSI Terminal software ntawm ESP32/VGA32 board.

Tom qab ntawd txuas nws mus rau Z80-MBC2 lub rooj tsavxwm.

Khoom siv

Koj yuav xav tau VGA32 V1.4 Controller. Muaj los ntawm cov chaw xws li Ebay thiab lwm yam.

Arduino IDE, kev txhawb nqa esp32 thiab FABGL libray (saib cov lus qhia hauv qab no)

Ib lub PC los khiav lub compiler. Txhua lub Linux/Mac OSX/Windows yuav tsum yog.

Kauj Ruam 1: Kev Qhia Txog Software

Kev Qhia Txuj Ci
Kev Qhia Txuj Ci

1, Nruab Arduinio IDE

Rub tawm los ntawm:

2, Ntxiv ESP32 pob txhawb nqa.

Cov lus qhia nthuav tawm tuaj yeem pom ntawm no:

Koj tseem tuaj yeem tshawb nrhiav cov ntsiab lus zoo li "ntxiv esp32 rau Arduino" lossis "Siv esp32 nrog Arduino" thiab koj yuav pom ntau cov ntaub ntawv ntawm yuav ua li cas.

Kauj Ruam 2: Ntxiv Software, FABGL Libray

Ntxiv Software, FABGL Libray
Ntxiv Software, FABGL Libray
Ntxiv Software, FABGL Libray
Ntxiv Software, FABGL Libray

Ntxiv FABGL lub tsev qiv ntawv.

1, Koj yuav tsum nkag mus rau tus thawj tswj tsev qiv ntawv txhawm rau ntxiv lub tsev qiv ntawv no. Txoj kev yooj yim tshaj plaws uas kuv tau pom yog los tsim qhov haujlwm tshiab uas tsis muaj dab tsi (koj tuaj yeem pov tseg tom qab koj tau ua tiav cov theem no). Tom qab ntawd siv cov cuab yeej ntawv qhia zaub mov Boards: xaiv. Teem koj hom ESP32 pawg thawj coj thiab chaw nres nkoj Serial thiab lwm yam. Yog tias koj tsis paub meej ntawm pawg thawj coj saib xaiv, rau cov kauj ruam no, koj tuaj yeem siv ib yam ntawm cov generic yam txij li koj yuav tsis siv qhov kev dag no ntxiv lawm.

2, Siv cov ntawv qhia zaub mov kom xaiv "suav nrog tsev qiv ntawv", tom qab ntawd xaiv "Tus Thawj Tswj Tsev Qiv Ntawv". Qhov ntawd coj koj mus rau tus saib xyuas lub tsev qiv ntawv tshuaj ntsuam.

Hauv qhov chaw tshawb nrhiav (kab saum toj kawg nkaus, sab tes xis) Ntaus hauv FABGL, tom qab ob peb feeb qhov screen yuav qhia lub tsev qiv ntawv, tom qab ntawd xaiv nruab.

Thaum qhov no ua tiav, koj tuaj yeem pov tseg daim duab dummy.

Kauj Ruam 3: Thauj lub ANSI Terminal Sketch

Chaw thau khoom ANSI Terminal Sketch
Chaw thau khoom ANSI Terminal Sketch

Tsim Ansi Terminal Sketch

1, Siv Cov Ntaub Ntawv, Piv txwv cov ntawv qhia zaub mov. Mus rau FABGL, VGA, ANSI Terminal piv txwv.

2, Koj tuaj yeem sim nws muaj txhua qhov teeb tsa raug los ntawm kev suav nws - siv lub cim zuam. Nws yuav tsum sau ua ke ntawm qhov no, siv sijhawm me ntsis los ua kom tiav.

Kauj ruam 4: Upload Sketch

Hloov mus rau VGA32 module

Koj tuaj yeem siv txhua qhov kev teeb tsa ua haujlwm kom tau txais lub rooj tsavxwm ua haujlwm, qee lub sijhawm koj tuaj yeem xaiv tus pin sib txawv rau TX/RX kev sib txuas yog tias koj xav tau. Saib los ntawm daim duab piv txwv saib seb koj tuaj yeem ua dab tsi.

Paub siv lub -> cim los ua ke thiab xa cov duab kos.

Yog tias koj tau txuas nrog VGA saib, tom qab lub rooj tsav xwm tau rov pib dua koj yuav tsum muaj cov ntawv qhia zaub mov thiab cov ntaub ntawv ntawm lub vijtsam. Ib zaug ntxiv yog tias koj tau txuas nrog cov keyboard nias F12 txhawm rau teeb tsa koj lub davhlau ya nyob twg tshiab.

(Qee zaum koj yuav tsum rov pib dua lub rooj tsavxwm kom tau cov keyboard ua haujlwm, tshwj xeeb tshaj yog tias koj tau ntsaws nws tom qab kos duab tau rub tawm)

Kauj Ruam 5: Txuas rau MBC2

Txuas rau koj MBC2

Txog ntawm qhov no kuv xav tias koj twb tau tsim txoj hauv kev txuas rau VGA32 pawg thawj coj. Hauv kuv qhov xwm txheej kuv tau muab lub taub hau tso rau qhov tso cai txuas rau lub rooj mov ci.

Saib ze rau ntawm pawg thawj coj saib lo lo ntxhuav npo I/o - xaiv qhov tseeb io pins, yuav tsum yog IO34 = RX IO2 = TX GND = GND.

Lus ceeb toom: ntawm kuv lub rooj tsavxwm cov ntawv lo lo lo ntxhuav tau luam tawm rov qab rau hauv qab ntawm lub rooj tsavxwm. Yog li kab ntawv ntawm cov ntawv xa mus ze tshaj cov pins xa mus rau qhov ze tshaj plaws thiab tsis yog kab sib thooj raws li xav tau. Qhov no txhais tau tias cov kab lo lo ntxhuav kab sib nrug los ntawm cov pins xa mus rau qhov deb tshaj plaws ntawm cov koob. Ib yam ntawm 1-2-2-1 tus qauv hloov ntawm 1-2-1-2. Ruam heev.

Kauj Ruam 6: Qib Logic thiab Kev Sib Txuas

Qib Logic thiab Kev Sib Txuas
Qib Logic thiab Kev Sib Txuas

Txuas TX tus pin los ntawm VGA32 pawg thawj coj ncaj qha rau MBC2 uas yog los ntawm 3.3v -> 5v tsis xav tau lub hloov pauv.

Txuas GND rau GND

Txij ntawm no kuv tau siv lub khob cij los tuav ob lub resistors, ntawm qhov Circuit Court saum toj no. Hauv qhov kawg version koj tuaj yeem tso cov resistors no rau ntawm lub rooj vero me me.

Txuas RX mus rau lub cim cim 3.3V (saum toj no) thiab tom qab ntawd txuas lub cim cim 5V rau MBC2

NCO TSEG Nws tshwm ntawm kuv MBC2 tias cov pins tau cim los qhia tias lawv txuas li cas ntawm ib qho USB/serial adapter ib txwm thiab tsis yog qhov pins ua haujlwm yog dab tsi, qhov no yog thim rov qab ntawm qhov koj xav tau, yog li kev sib txuas xaus li qhov no:

VGA 32. MBC 2

TX -> TX GND. -> GND RX -> resistors -> RX

Qhov ntawd yog koj yuav tsum zoo mus.

Kauj Ruam 7: Nplooj Ntawv Qhia Ntxiv

Nplooj Ntawv Ntxiv Ntxiv
Nplooj Ntawv Ntxiv Ntxiv

Tus pin tawm thiab npe cov lus pom ntawm ntau yam khoom siv (hauv qhov no z80-mbc2 thiab daim npav tvga) tuaj yeem ua rau tsis meej pem.

Piv txwv li qee cov khoom siv muaj cov cim qhia tias tus pin koj yuav tsum txuas qhov no rau, rau kuv, qhov no yog qhov thim rov qab ntawm lub rooj sib tham ntawm cov ntawv cim npe raws li lawv yog dab tsi, piv txwv li txuas rau lawv.

Txoj hauv kev zoo tshaj plaws uas kuv tau pom los piav qhia qhov no (kuv vam tias) yog ntsuas qhov hluav taws xob ntawm tus pin hauv nqe lus nug, txij li cov txheej txheem txheej txheem muaj siab nws yog lub xeev tsis ua haujlwm - yog tias koj ntsuas qhov "siab" voltage (3.3v lossis 5v) ces this is TX pin. qhov twg lub teeb liab los ntawm.

Thiab yog tias qhov hluav taws xob qis (tsawg dua 1v, thiab tej zaum hloov pauv me ntsis) qhov no yuav qhia qhov nkag (RX) qhov twg cov ntaub ntawv mus rau.

Yog li kuv tsis quav ntsej tag nrho cov lo lo lo ntxhuav, cov software lub tsev qiv ntawv npe thiab lwm yam thiab ntsuas saum toj no, qhov tshwm sim yog tes kos duab kos duab saum toj no. Thiab nws ua haujlwm rau kuv (qee daim npav TVGA qub yuav siv IOpins sib txawv)

Pom zoo: