Cov txheej txheem:

Programming Microcontrollers Nrog USBasp Programmer hauv Atmel Studio: 7 Kauj Ruam
Programming Microcontrollers Nrog USBasp Programmer hauv Atmel Studio: 7 Kauj Ruam

Video: Programming Microcontrollers Nrog USBasp Programmer hauv Atmel Studio: 7 Kauj Ruam

Video: Programming Microcontrollers Nrog USBasp Programmer hauv Atmel Studio: 7 Kauj Ruam
Video: Learn PIC Microcontrollers Programming in 1 Tutorial 2024, Kaum ib hlis
Anonim
Programming Microcontrollers Nrog USBasp Programmer hauv Atmel Studio
Programming Microcontrollers Nrog USBasp Programmer hauv Atmel Studio

Nyob zoo

Kuv tau nyeem thiab kawm dhau los ntawm ntau qhov kev qhia qhia yuav siv USBasp programmer nrog Arduino IDE li cas, tab sis kuv xav tau siv Atmel Studio rau Tsev Kawm Ntawv txoj haujlwm thiab nrhiav tsis tau ib qho kev qhia. Tom qab tshawb fawb thiab nyeem dhau los ntawm ntau cov peev txheej, Kuv tau tsim qhov kev qhia no rau txhua tus neeg xav siv Atmel Studio nrog tus tsim USBasp.

USBasp yog qhov kev daws teeb meem pheej yig dua rau AVR cov phiaj xwm thiab txhawb nqa ntau lub microcontrollers. Daim ntawv teev npe tag nrho tuaj yeem pom ntawm

Cov ntawv qhia no siv ATtiny85 ua piv txwv tab sis tuaj yeem txuas ntxiv rau kev ua haujlwm ib qho kev txhawb nqa microcontroller siv USBasp programmer.

Cia peb mus rau nws!

Khoom siv

USBasp AVR Programmer

Kauj Ruam 1: Txhim Kho USBasp Tsav Tsheb Siv Zadig

Txhim kho USBasp Driver Siv Zadig
Txhim kho USBasp Driver Siv Zadig
Txhim kho USBasp Driver Siv Zadig
Txhim kho USBasp Driver Siv Zadig
Txhim kho USBasp Driver Siv Zadig
Txhim kho USBasp Driver Siv Zadig

Qhib koj lub vev xaib thiab mus rau

Siv cov cuab yeej no, peb xub teeb tsa tus tsav tsheb raug rau USBasp.

  1. Ntaus lub pob download thiab teeb tsa daim ntawv thov.
  2. Qhib Zadig
  3. Nyem rau ntawm cov kev xaiv thiab nyem rau ntawm List All Devices
  4. Xaiv USBasp thiab teeb tsa libusbK (v3.0.7.0) tsav tsheb

Thov nco ntsoov, kev txhim kho tus tsav tsheb yuav siv sijhawm ntev li tsib feeb.

Kauj ruam 2: Rub tawm AVRDUDE

Rub tawm AVRDUDE
Rub tawm AVRDUDE

Cov kauj ruam tom ntej yog rub AVRDUDE.

Nyem rau kab ntawv hauv qab no txhawm rau rub tawm ZIP cov ntaub ntawv ncaj qha, lossis xav rub tawm nws sab nraud los ntawm kev tshawb nrhiav rub tawm AVRDUDE.

mirror.freedif.org/GNU-Sa/avrdude/avrdude-…

Thaum rub tawm, rho tawm cov ntawv rau hauv koj cov ntaub ntawv lossis hauv Atmel Studio Program cov ntaub ntawv. Nws yog ib qho tseem ceeb kom paub tias cov no raug rho tawm li cas koj yuav xav tau lawv cov ntawv hauv txoj hauv kev hauv qab no.

Kauj ruam 3: Qhib Atmel Studio

Qhib Atmel Studio
Qhib Atmel Studio

Qhib Atmel Studio thiab hauv lub ntsiab lus qhia bar, lub taub hau rau cov cuab yeej, thiab tom qab ntawd nyem rau ntawm cov cuab yeej sab nraud.

Kauj ruam 4: Nyem "Ntxiv"

Nyem
Nyem

Nyem "Ntxiv" ntxiv cov chaw rau lub cuab yeej tshiab.

Kauj Ruam 5: Sau Cov Lus Qhia rau USBasp Programmer

Nkag Mus Paub meej rau USBasp Programmer
Nkag Mus Paub meej rau USBasp Programmer

Txog qhov hais kom ua, nkag mus rau cov ntaub ntawv chaw nyob mus rau AVRDUDE.exe cov ntaub ntawv peb rub tawm thiab rho tawm ua ntej.

Piv txwv li, kuv cov lus txib yuav yog:

C: / Program Files (x86) Atmel / Studio / avrdude.exe

Nco tseg, qhov no tsuas yog piv txwv xwb !! Koj qhov chaw nyob tej zaum yuav txawv. Xav tias dawb siv lub ntsej muag tshawb pom (peb tus lej ntawm qhov kawg ntawm cov lus txib hais kom ua) txhawm rau nrhiav cov ntaub ntawv avrdude.exe.

Txog kev sib cav, luam thiab muab kab hauv qab no rau hauv koj cov lus sib cav:

-c usbasp -p t85 -Uflash: w: "$ (ProjectDir) Debug / $ (TargetName).hex": i

Ua txhaum cov lus sib cav saum toj no:

  • Kev sib cav tom qab -c txheeb xyuas tus programmer id. Hauv peb qhov xwm txheej, usbasp
  • Kev sib cav tom qab -p txheeb xyuas lub microcontroller. Hauv peb qhov xwm txheej, ATtiny85, hu ua t85
  • Kev sib cav tom qab -U txheeb xyuas hom kev nco

    Hloov t85 rau koj lub microcontroller los ntawm kev saib cov ntsiab lus cuam tshuam hauv cov ntaub ntawv txuas ua ke thaum pib

Nco tseg, cov lus sib cav tau muab los ntawm cov ntaub ntawv avrdude. Qhov no tuaj yeem tau txais los ntawm cov kev sib txuas tau muab thaum pib.

Nyem Thov thaum txhua yam ua tiav!

Kauj Ruam 6: Siv Programmer

Siv Programmer
Siv Programmer

Txhawm rau program AVR, xyuas kom nws txuas nrog USBasp, mus rau cov cuab yeej sab nraud thiab nyem rau ntawm lub cuab yeej uas koj nyuam qhuav tsim.

Tsis txhob hnov qab tsim koj cov kev daws teeb meem ua ntej koj qhov program.

Nws yuav tsum yog txhua qhov programmed!

Kauj ruam 7: Troubleshooting

Yog tias muaj teeb meem tshwm sim:

  • Sim siv cov chaw nres nkoj USB sib txawv los ntsaws rau hauv USBasp programmer rau
  • Xyuas kom AVR txuas nrog tus programmer
  • Nyeem los ntawm txhua qib ua tib zoo rov ua dua thiab xyuas kom cov lus txib thiab cov lus sib cav hauv cov cuab yeej sab nrauv teeb tsa yog qhov raug

Txwv tsis pub, koj txhua tus zoo mus!

Pom zoo: