Cov txheej txheem:

USBasp Compatible Codevision AVR: 8 Kauj Ruam
USBasp Compatible Codevision AVR: 8 Kauj Ruam

Video: USBasp Compatible Codevision AVR: 8 Kauj Ruam

Video: USBasp Compatible Codevision AVR: 8 Kauj Ruam
Video: Контроллер вентилятора на ATtiny10 | ШИМ + Вкл/Выкл 2024, Kaum ib hlis
Anonim
USBasp Compatible Codevision AVR
USBasp Compatible Codevision AVR

USB ASP yog cov cuab yeej siv uas feem ntau siv los rub cov program rau hauv lub micro-controller vim nws yooj yim siv thiab tau kawg nws tseem pheej yig! USB ASP nws tus kheej yog sib xws nrog qee tus neeg sau ua ke, tau kawg nrog kev teeb tsa sib txawv.

Nov yog kev qhia yuav ua li cas teeb USBasp kom sib haum nrog Codevision AVR.

Kauj Ruam 1: Cov Khoom Uas Koj Xav Tau

Koj yuav xav tau:

  1. Yeej AVR
  2. Tsav USBasp
  3. Codevision AVR UA
  4. Cov ntaub ntawv ".bat"
  5. USBasp
  6. Yam tsawg kawg nkaus

Kauj ruam 2: Kev teeb tsa

Nruab WIN AVR thiab Codevision AVR ua ntej, tom qab ntawd tsim txoj haujlwm nrog Codevision AVR. Cov kauj ruam tom ntej yog teeb tsa ASP USB tsav tsheb. Kev teeb tsa USBasp tsav tsheb raws li hauv qab no:

  1. Txuas USBasp rau hauv lub khoos phis tawj, tom qab ntawd lub khoos phis tawj yuav pom lub cuab yeej tshiab.
  2. Qhib tus thawj tswj ntaus ntawv
  3. Hauv tus thawj tswj hwm lub cuab yeej yuav tshwm sim USBasp ntaus ntawv uas nws tus tsav tsheb tsis tau teeb tsa, tom qab ntawv nyem rau thiab xaiv Hloov Kho Tshiab Software.
  4. Cov ntawv qhia zaub mov yuav tshwm, tom qab ntawv xaiv "Xauj kuv lub computer …"
  5. Nrhiav qhov chaw ntawm tus tsav USBasp uas tau rub tawm hauv qhov txuas saum toj no.
  6. Tom qab ntawd Nruab, tos kom tiav.

Kauj Ruam 3: Tsim thiab piav qhia.bat Cov Ntaub Ntawv

Kev tsim cov ntaub ntawv.bat raws li hauv qab no:

  1. Qhib notepad.
  2. Ntaus raws li hauv qab no (tsis hais nqe lus): "ncha tawm avrdude -c usbasp -P USB -p m328 -U nyem: w: lfArduAvr.hex ncua"
  3. Txuag nrog qhov txuas ntxiv.bat
  4. Cov ntaub ntawv khaws cia hauv EXE nplaub tshev ntawm Codevision AVR txoj haujlwm tsim los ua piv txwv.

Kev piav qhia ntawm.bat cov ntaub ntawv cov ntsiab lus:

  1. "usbasp" ntaus ntawv siv yog usb asp.
  2. "m328" hom microcontroller siv.
  3. "lfArduAvr.hex" lub npe cov ntaub ntawv nrog HEX txuas ntxiv ntawm txoj haujlwm tsim.

Kauj Ruam 4: Codevision AVR Teeb: Project

Codevision AVR Teeb: Project
Codevision AVR Teeb: Project

Ua ntej, qhib qhov haujlwm tsim.

Tom qab ntawd, xaiv "project" ntawm Codevision AVR menu tab thiab xaiv "Configure"

Kauj Ruam 5: Codevision AVR Teeb: Kho

Codevision AVR Teeb: Kho
Codevision AVR Teeb: Kho

Hauv kev teeb tsa qhov project pom, xaiv "Tom Qab Tsim" ntawm cov ntawv qhia zaub mov.

Tom qab ntawv, khij "Program Chip" thiab "Execute User's Program".

Thiab, nyem rau "Program Setting".

Kauj Ruam 6: Codevision AVR Teeb: Kev teeb tsa program

Codevision AVR Teeb: Kev teeb tsa
Codevision AVR Teeb: Kev teeb tsa

Hauv qhov program teeb tsa, xauj thiab rub cov ntaub ntawv.bat hauv "program directory and file name" thiab nkag mus rau EXE phau ntawv teev npe uas muaj cov ntaub ntawv.bat hauv "cov npe ua haujlwm".

Thiab tom qab ntawd, nyem OK.

Kauj Ruam 7: Codevision AVR Teeb: Codevision AVR

Codevision AVR Teeb: Codevision AVR
Codevision AVR Teeb: Codevision AVR

Nyem "tsim txhua yam" ntawm Codevision AVR lossis CTRL + F9.

Thiab tom qab ntawd, xaiv Ua tiav tus neeg siv txoj haujlwm.

Kauj Ruam 8: Codevision AVR Teeb: Ua tiav

Codevision AVR Teeb: Ua tiav!
Codevision AVR Teeb: Ua tiav!

Yog tias nws ua haujlwm ces cov zaub yuav tshwm li daim duab saum toj no. Tsis quav ntsej qhov ceeb toom ceeb toom ntawm "comport".

Pom zoo: