Cov txheej txheem:

Ib qho yooj yim los tsim Khoos Phis Tawj Hauv Tsev: Z80-MBC2 !: 9 Kauj Ruam (nrog Duab)
Ib qho yooj yim los tsim Khoos Phis Tawj Hauv Tsev: Z80-MBC2 !: 9 Kauj Ruam (nrog Duab)

Video: Ib qho yooj yim los tsim Khoos Phis Tawj Hauv Tsev: Z80-MBC2 !: 9 Kauj Ruam (nrog Duab)

Video: Ib qho yooj yim los tsim Khoos Phis Tawj Hauv Tsev: Z80-MBC2 !: 9 Kauj Ruam (nrog Duab)
Video: Hmong New Song 2019 Xy Lee feat. SuabNag Yaj - Koj Yog Kuv Lub Neej (Official MV - 4K) 2024, Kaum ib hlis
Anonim
Image
Image
Cheebtsam thiab PCB
Cheebtsam thiab PCB

Yog tias koj xav paub yuav ua li cas lub khoos phis tawj ua haujlwm thiab cuam tshuam nrog "yam sab nraud", tam sim no muaj ntau lub laug cam npaj ua si zoo li Arduino lossis Raspberry thiab ntau yam ntxiv. Tab sis cov laug cam no muaj txhua yam "txwv" … lawv zais sab hauv vim lawv siv MCU (Micro Controller Unit) lossis SOC (System On Chip) yog li koj tsis tuaj yeem kov CPU, I/O, tsheb npav sab hauv thiab tag nrho cov khoom uas yog dab tsi ua rau lub computer ua haujlwm.

Muaj lwm txoj hauv kev xaiv siv qee qhov qub raws li 8bit CPUs (lub npe hu ua "retrocomputing"). Lawv yooj yim to taub thiab koj tuaj yeem nrhiav ntau cov ntaub ntawv thiab phau ntawv pub dawb, thiab tso cai tsim lub khoos phis tawj tiag nrog txhua qhov xav tau ua haujlwm thaiv (CPU, I/O, RAM, ROM/EPROM, thiab lwm yam …).

Tab sis feem ntau lawv siv nyuaj los nrhiav cov khoom, thiab xav tau cov cuab yeej qub dhau los xws li EPROM programmer thiab lwv lossis GAL programmer, thiab cov uas yooj yim muaj cov yam ntxwv txwv.

Yog li kuv tau sib xyaw cov qub thiab "tshiab" los ua qhov tsim tshwj xeeb uas tsis xav tau ib qho qub txeeg qub teg EPROM programmer lossis ICs zoo nkauj, siv yooj yim mus nrhiav cov khoom. Atmega32A MCU ua raws li I/O subsystem, "ua raws" EPROM thiab txhua I/O Cheebtsam. Ntau dua, siv Arduino bootloader, Nws tuaj yeem yooj yim ua haujlwm nrog paub zoo Arduino IDE.

Cov ICs xav tau yog:

  • Z80 CPU CMOS (Z84C00) 8Mhz lossis siab dua
  • Atmega32A
  • TC551001-70 (128KB RAM)
  • 74 HC00 Nws

Yog tias koj xav tau 16x GPIO nthuav dav (GPE xaiv) ntxiv MCP23017 ib yam.

Z80-MBC2 muaj ntau lub peev xwm khau raj thiab tuaj yeem ua haujlwm CP/M 2.2, QP/M 2.71 thiab CP/M 3 (128KB banked nco txhawb), yog li koj tuaj yeem siv SW loj heev nrog nws (piv txwv li koj tuaj yeem ua tau yooj yim nrhiav tau yooj yim, C, Cov neeg sib sau, Pascal, Fortran, Cobol cov neeg sau ua ke, thiab qee qhov no twb tau muab tso rau hauv virtual disks ntawm SD).

Hard Disk tau ua raws li kev siv microSD FAT16 lossis FAT32 formatted (1GB microSD yog txaus), yog li nws yooj yim pauv cov ntaub ntawv nrog koj lub PC (16 HDs rau txhua OS tau txhawb nqa) siv cpmtoolsGUI.

Tau kawg koj xav tau lub davhlau ya nyob twg los cuam tshuam nrog Z80-MBC2, thiab ib qho USB-serial adapter ua ke nrog lub davhlau ya nyob twg emulation SW yuav yog qhov pheej yig thiab xaiv tau yooj yim.

Kauj Ruam 1: Cheebtsam thiab PCB

Thawj qhov yog nrhiav txhua yam khoom siv los tsim lub rooj tsavxwm. Kuv tau npaj cov ntaub ntawv (A040618 BOM v2.ods) nrog txhua qhov xav tau uas koj tuaj yeem nrhiav tau yooj yim. Tau kawg yuav tsum muaj txuj ci tseem ceeb, thiab nws xav tias koj tuaj yeem nrhiav cov khoom "ib puag ncig" …

Txog PCB kuv tau npaj "txuas yooj yim" kom xaj ib pawg me me (5 pcs. Min.) Ntawm PCB ntawm no.

Kauj Ruam 2: Cov Qauv Koj Xav Tau Ib Yam…

Modules Koj Xav Tau Ib Yam…
Modules Koj Xav Tau Ib Yam…
Modules Koj Xav Tau Ib Yam…
Modules Koj Xav Tau Ib Yam…
Modules Koj Xav Tau Ib Yam…
Modules Koj Xav Tau Ib Yam…

Koj kuj yuav tsum tau yuav (yog tias koj tsis tau) qee qhov qauv pheej yig (saib duab):

  • USB-Serial adapter;
  • Ib qho microSD module;
  • DS3231 RTC module (xaiv tau);
  • USBasp programmer (kom nyem Arduino bootloader rau hauv Atmega32a);
  • AVR 10pin rau 6pin adapter (yeem).

Kauj Ruam 3: Tsim Pawg Thawj Coj

Tsim Pawg Thawj Coj
Tsim Pawg Thawj Coj

Txhawm rau tsim lub rooj tsavxwm ua raws Cov Lus Qhia Los Ua Ke (A040618 PCB Layout Guide.zip) nrog txoj haujlwm ntawm cov khoom sib txuas ntawm PCB (nrog rau ob qho tib si hais txog thiab qhov muaj txiaj ntsig). Tsis tas li Schematic (A040618 - SCH.pdf) yuav ua ke.

Pib txhawm rau ua kom cov khoom sib thooj zoo li resistors thiab diodes, tom qab ntawd cov khoom siv hluav taws xob thiab lwm yam. Cov txuas thiab cov hluav taws xob hluav taws xob yuav yog qhov kawg.

Kauj Ruam 4: Nruab Arduino IDE thiab "MightyCore"

Nruab Arduino IDE thiab
Nruab Arduino IDE thiab

Txhawm rau thauj Arduino "kos duab" rau hauv Atmega32a, koj yuav tsum teeb tsa Arduino IDE thiab "MightyCore" los ntawm no siv Arduino IDE "Tus Thawj Saib Xyuas Haujlwm".

Ua li no txoj kev txhawb nqa rau Atmega32a yuav raug ntxiv rau Arduino IDE, thiab koj yuav tuaj yeem xaiv Atmega32a ua lub hom phiaj ntaus ntawv (saib duab).

Nco ntsoov xaiv lwm txoj hauv kev raws li hauv daim duab.

Kauj ruam 5: Nyem rau Bootloader

Nyem rau Bootloader
Nyem rau Bootloader

Txhawm rau ua Z80-MBC2 ua haujlwm koj yuav tsum nyem Arduino bootloader rau hauv Atmega32a.

Qhov no yuav ua rau koj suav sau thiab thauj Sketch rau hauv Atmega32a siv Arduino IDE.

Muaj ntau txoj hauv kev los nyem lub bootloader. Txoj kev kuv qhia yog siv tus programmer USBasp pheej yig thiab hlawv lub bootloader siv Arduino IDE.

Txhawm rau txuas USBasp rau ICSP txuas ntawm Z80-MBC2 koj tuaj yeem siv qhov sib txuas 10pin-6pin sib xws (saib daim duab).

Nco ntsoov tshem tawm lwm qhov txuas thaum siv ICSP. Tsis tas li ob qho SD thiab RTC cov qauv (yog tam sim no) yuav tsum raug tshem tawm ntawm pawg thawj coj thaum siv ICSP chaw nres nkoj.

Xav paub ntau ntxiv txog cov kauj ruam no tuaj yeem pom ntawm no.

Kauj Ruam 6: Thauj khoom "kos duab"

Thauj khoom
Thauj khoom

Tam sim no yog lub sijhawm los thauj cov duab kos rau hauv Atmega32a siv Arduino IDE. Txog qhov ntawd koj yuav tsum txuas USB-serial adapter (saib daim duab) mus rau SERIAL chaw nres nkoj (J2) ntawm Z80-MBC2.

Koj yuav tsum txuas GND, +5V/VCC, DTR, TXD, RXD pins ntawm USB-serial adapter thiab SERIAL chaw nres nkoj ntawm Z80-MBC2.

Tam sim no unzip daim duab zauv teb "S220718-R190918_IOS-Z80-MBC2.zip" rau hauv daim nplaub tshev, suav nrog nws thiab thauj nws nrog Arduino IDE.

Kauj Ruam 7: Ntxiv SD thiab RTC

Ntxiv SD thiab RTC
Ntxiv SD thiab RTC

Tam sim no unzip SD zip file "SD-S220718-R191018-v1.zip" rau hauv FAT16 lossis FAT32 formatted microSD (1GB microSD ntau dua txaus).

Txuas lub USB-serial adpter los ntawm lub PC, thiab ntxiv rau Z80-MBC2 SD module (nrog microSD sab hauv) thiab RTC module (yog tias koj muaj).

Ua tib zoo txhawm rau txhim kho cov qauv raws li pom hauv daim duab, vim tias lawv tsis "hloov pauv" hauv lawv txoj haujlwm, thiab kev puas tsuaj tas li yuav tshwm sim yog tias koj pauv lawv!

Tam sim no koj tau npaj los khiav Z80-MBC2 siv USB-serial adapter thiab lub davhlau ya nyob twg emulator!

Kauj Ruam 8: Yuav Nkag Li Cas Hauv "Xaiv Boot …" Ntawv qhia zaub mov

Yuav ua li cas nkag rau hauv
Yuav ua li cas nkag rau hauv
Yuav ua li cas nkag rau hauv
Yuav ua li cas nkag rau hauv

Txhawm rau nkag mus rau hauv "Xaiv hom khau raj lossis txheej txheem txheej txheem" koj yuav tsum nias lub RESET qhov tseem ceeb (SW2), tso nws thiab nias tam sim ntawd tus neeg siv tus yuam sij (SW1) thiab ua kom nws nias kom txog thaum IOS coj pib ntsais muag.

Lwm txoj hauv kev yog nias ob tus yuam sij, tso RESET tus yuam sij tuav tus neeg siv tus yuam sij qis kom txog thaum IOS coj pib ntsais muag, lossis koj pom cov ntawv qhia zaub mov ntawm qhov screen.

Kauj Ruam 9: Cov Lus Qhia Ntxiv …

Cov ntaub ntawv ntau…
Cov ntaub ntawv ntau…
Cov ntaub ntawv ntau…
Cov ntaub ntawv ntau…
Cov ntaub ntawv ntau…
Cov ntaub ntawv ntau…

Koj tuaj yeem pom cov ntaub ntawv ntau ntxiv thiab cov ncauj lus qhia ntxaws txog Z80-MBC2 ntawm no.

Pom zoo: