Cov txheej txheem:

Z80-MBC2 Programming Atmega32a: 6 Cov Kauj Ruam
Z80-MBC2 Programming Atmega32a: 6 Cov Kauj Ruam

Video: Z80-MBC2 Programming Atmega32a: 6 Cov Kauj Ruam

Video: Z80-MBC2 Programming Atmega32a: 6 Cov Kauj Ruam
Video: Homebrew Z80 compact board with CP/M 2024, Kaum ib hlis
Anonim
Z80-MBC2 Programming Atmega32a
Z80-MBC2 Programming Atmega32a

Ua ntej koj tuaj yeem siv z80-MBC2, tom qab tsim nws, koj yuav tsum tau teeb tsa Atmeg32. Cov lus qhia no qhia koj yuav siv li cas pheej yig arduino mini ua tus programmer kom tso cov cai.

Khoom siv:

Koj lub z80-MBC2 pawg thawj coj zoo thiab tsim kho tshiab npaj rau atmega32a

Arduino mini (lossis ib qho version koj tau dai ncig)

Lub software rau atmega32 los ntawm

Ntxiv kev txhawb nqa rau Atmega32 nti los ntawm

Kauj ruam 1: Tus Programmer

Tus Programmer
Tus Programmer
Tus Programmer
Tus Programmer

Kuv siv kev mob siab rau Arduino mini clone. Kuv ua qhov no rau hauv ICSP programmer ntev dhau los thiab siv nws rau txhua yam. Feem ntau uploading boot loaders (raws li peb yuav tam sim no)

Koj tuaj yeem tsim koj tus kheej li kev mob siab rau lossis ib ntus siv ib qho Arduino board (328A lossis siab dua). Koj teeb tsa koj lub rooj tsav xwm siv Arduino-IDE. Lub software rau tus programmer ICSP tau pom nyob hauv cov ntawv, piv txwv cov ntawv qhia zaub mov, saib rau ArduinoISP. Qhib tus piv txwv thiab muab qhov program tso rau hauv koj lub rooj tsavxwm.

Tom ntej no koj yuav tsum txuas cov pins hauv qab no mus rau ICSP header ntawm MBC2. Siv 6 tus poj niam-rau-txiv neej lossis poj niam-rau-poj niam, nyob ntawm qhov arduino koj tab tom siv, cov txuas txuas, txuas nrog zoo li qhov no (tseem pom pinout saum toj no).

Rau qee qhov Arduino boards cov pins tuaj yeem sib txawv, nyeem cov ntawv sau rau saum daim duab uas koj nyuam qhuav tso lossis pom https://www.arduino.cc/en/Tutorial/BuiltInExample… muaj ntau nplooj ntawv ntxiv los pab koj txheeb xyuas cov pins raug.

Arduino Lub Npe ICSP

10 Rov Pib 5 11 MOSI 4 12 MISO 1 13 SCK 3 GND Gnd 6 +5v Vcc 2

Kauj ruam 2: Txuas rau Z80-mbc2

Txuas rau Z80-mbc2
Txuas rau Z80-mbc2

Saib ze ntawm MBC2 pawg thawj coj los txheeb xyuas tus pin 1 (MISO) ntawm ICSP. Txuas koj cov xov hlau los ntawm qhov program Arduino Mini rau txhua tus pin ntawm MBC2 header.

TSEEM CEEB: Ua ntej ua kom lub rooj tsavxwm tshem tawm SD-CARD thiab TSEV TSEEM CEEB NTAWV QAUV QAUV. Kuj unplug ib qho USB txuas txuas uas koj yuav muaj. Tsuas yog kev sib txuas rau MBC2 yog rau ICSP lub taub hau.

Kauj Ruam 3: Ntxiv Kev Txhawb Nqa rau Atmega32 Chip

Tam sim no yog lub sijhawm los rub tawm pob txhawb nqa rau atmega32, koj tuaj yeem siv tus thawj tswj hwm pawg thawj coj raws li tau piav qhia ntawm cov tsim tawm github site

Zoo li no:

  • Qhib Arduino IDE
  • Qhib Cov Ntaub Ntawv> Nyiam cov ntawv qhia zaub mov. Kev nkag mus rau URL hauv qab no hauv Tus Thawj Saib Xyuas Ntxiv
  • URLs:
  • Qhib Cov Cuab Yeej> Pawg Thawj Coj> Pawg Thawj Coj … cov ntawv qhia zaub mov.
  • Tos rau lub platform ntsuas ntsuas kom tiav rub tawm.
  • Scroll cia lossis siv qhov kev tshawb nrhiav los nrhiav MightyCore kom txog thaum koj pom MightyCore nkag thiab nyem rau nws.
  • Nyem Nruab.
  • Tom qab kev teeb tsa tiav, kaw qhov Boards Manager window.

Kauj ruam 4: Hlawv Boot Loader

Hlawv Boot Loader
Hlawv Boot Loader
Hlawv Boot Loader
Hlawv Boot Loader

Ua ntej koj xaiv Atmega32, xyuas kom tseeb tias koj tau xaiv tus programmer los siv,

Cov cuab yeej ntawv qhia zaub mov, Programmer, xaiv arduino ua ISP

Tam sim no koj tuaj yeem siv Arduino-IDE los xaiv Atmega32 nti npaj los rub lub bootloader.

Los ntawm Cov cuab yeej ntawv qhia zaub mov, xaiv Board, MightyCore, tom qab ntawd Atmega32

Tam sim no koj yuav tsum muaj peev xwm rub tawm bootloader,

Xaiv Cov Cuab Yeej, Hlawv Bootloader

Thaum nws ua tiav ntsuab ntsuab yuav tsum tau ua ob zaug nyem, qhov no qhia tias bootloader tau tos kom qhia rau dab tsi rau khau raj. Tej zaum koj yuav tsum tau nias pib dua kom tau qhov no.

Koj npaj txhij xa cov duab kos tiag uas siv hauv MBC2 pawg thawj coj, tam sim no lub bootloader tau teeb tsa koj tuaj yeem rub tawm MBC2 software ncaj qha rau nws, tam sim no koj muaj bootloader koj tseem tuaj yeem xa cov kev hloov kho yav tom ntej siv cov theem hauv qab no.

Fais fab tuag (tshem lub programmer) rov txuas koj lub xov tooj USB txuas. Koj tsis tas yuav siv tus programmer ISP los ua kom tiav kev xa tawm txij tam sim no mus.

Kauj Ruam 5: Ua Haujlwm MBC2 Software

Program MBC2 Software
Program MBC2 Software
Program MBC2 Software
Program MBC2 Software
Program MBC2 Software
Program MBC2 Software

Tau txais qhov software tshiab los ntawm

Nws yuav raug hu ua qee yam xws li, S220718-R240620_IOS-Z80-MBC2.zip. Muaj ob qhov hloov pauv, ib qho no thiab ib qho hu ua 'lite' Lite ib qho tsis txhawb nqa khau raj los ntawm SD-Card.

Thaum koj unzip nws kom ntseeg tau tias nws yog txhua yam hauv daim nplaub tshev los ntawm tib lub npe raws li zip cov ntaub ntawv, qhov no yog lub neej ntawd rau feem ntau unzipping cov khoom siv.

Qhib cov ntaub ntawv ino hauv Arduino IDE

Nco ntsoov tias koj tau xaiv lub rooj tsav xwm raug xaiv hauv Cov Cuab Yeej, Cov ntawv qhia zaub mov. Atmega32. Kuj xyuas tias USB chaw nres nkoj tau xaiv thiab qhov ua tsis raug zoo ib yam li daim duab saum toj no.

Tam sim no koj tuaj yeem nyem -> (suav sau thiab xa tawm) rau program Atmega32a.

Txhua yam ua tiav

Kauj Ruam 6: Teeb meem tua thiab lus pom

Txog tam sim no, Kuv tau siv 3 qhov sib txawv sib txawv thiab tswj kom tau cov txheej txheem no los ua haujlwm yuav txhua tus ntawm lawv, tab sis qee qhov xav tau kev ua haujlwm ntxiv:

Mini clone:

Ua haujlwm zoo li lossis tsawg kawg yog kuv ua!

Micro clone: cov

Tsis paub tseeb tias qhov no yog pawg thawj coj saib xyuas. nws yog ib qho me me tab sis tsis muaj onboard USB adapter. Qhov no zoo li muaj qhov teeb meem rov pib dua, koj tuaj yeem tso DTR cable los ntawm USB/TTL adapter txuas, yog li tiv thaiv kev rov pib dua.

arduino duemilanove: cov

Ib zaug ntxiv lub rooj tsavxwm no muaj qhov teeb meem rov pib dua, thiab zoo li ntau lwm tus tau hais los lawm, koj yuav tsum tau ntxiv 10-25uf capacitor nruab nrab ntawm tus pin rov pib dua ntawm lub rooj tsavxwm thiab hauv av.

Qhov teeb meem fais fab:

Qee qhov clones tsis zoo li muab tam sim no txaus ntawm 5v muab lub zog rau Z80-mbc2 thiab lawv tus kheej ua rau yuam kev yuam kev. Nws qhov kev qhia tseem ceeb nws tau qhia tias koj tsis txuas lub usb/ttl ntaus ntawv thaum lub sijhawm ua haujlwm (lub ntsiab ttl txuas tsis yog ib tus programmer). Tab sis txhawm rau pab nrog lub zog koj tuaj yeem txuas qhov no, tab sis tsuas yog +5v thiab 0v pins, tom qab ntawd ntsaws ob lub usb ntsaws rau hauv lub computer host. Qhov no tuaj yeem pab nrog qhov yuam kev yuam.

Pom zoo: