Cov txheej txheem:

Yuav Ua Li Cas Upload C Code rau ِ AVR Siv Arduino Uno Raws Li Tus Kws Ua Haujlwm: 6 Kauj Ruam
Yuav Ua Li Cas Upload C Code rau ِ AVR Siv Arduino Uno Raws Li Tus Kws Ua Haujlwm: 6 Kauj Ruam

Video: Yuav Ua Li Cas Upload C Code rau ِ AVR Siv Arduino Uno Raws Li Tus Kws Ua Haujlwm: 6 Kauj Ruam

Video: Yuav Ua Li Cas Upload C Code rau ِ AVR Siv Arduino Uno Raws Li Tus Kws Ua Haujlwm: 6 Kauj Ruam
Video: YUAV UA LI CAS LUAG THIAJ SAIB TAUS YUS 2024, Kaum ib hlis
Anonim
Yuav Ua Li Cas Upload C Code rau ِ AVR Siv Arduino Uno Raws Li Programmer
Yuav Ua Li Cas Upload C Code rau ِ AVR Siv Arduino Uno Raws Li Programmer

HI txhua tus: D

Ntawm no kuv yuav qhia txoj hauv kev yooj yim rau kev teeb tsa ib qho AVR nti siv Arduino Uno R3

Txhua yam koj xav tau los hlawv cov cai rau koj lub microcontroller yog Arduino Uno es tsis txhob yuav cov programmer tshwj xeeb uas raug nqi ntau.

Khoom siv

Koj yuav xav tau:

  1. Arduino uno r3 nrog nti tshem tau (1)
  2. Jumper xov hlau
  3. 10uF electrolyte capacitor (1)
  4. Hex cov ntaub ntawv tsim los ntawm koj li C code

Kauj ruam 1: Arduino ISP

ISP ntawm Arduino
ISP ntawm Arduino

Ua ntej: qhib koj Arduino IDE thiab xa Arduino ISP rau hauv koj Arduino

koj tuaj yeem pom nws hauv File -> Piv txwv

Ua ntej nias tus yuam sij upload koj yuav tsum txheeb xyuas Pawg Thawj Coj thiab chaw nres nkoj COM.

NCO TSEG: cov cai no yuav tig koj Arduino rau tus programmer!

Kauj Ruam 2: Nrhiav Daim Ntawv Teev Npe rau Koj AVR thiab Txheeb Tus Pin

Nrhiav Cov Ntaub Ntawv rau Koj AVR thiab Txheeb Tus Pin
Nrhiav Cov Ntaub Ntawv rau Koj AVR thiab Txheeb Tus Pin

Tus Pin 1 yog tus pin uas muaj qhov me me nyob ze nws

peb xav tau (VCC, GND, Pib dua, UCSK, MISO, MOSI) nrhiav lawv hauv koj AVR.

Kauj Ruam 3: Txuas Arduino rau AVR

Txuas Arduino rau AVR
Txuas Arduino rau AVR
Txuas Arduino rau AVR
Txuas Arduino rau AVR
Txuas Arduino rau AVR
Txuas Arduino rau AVR

txuas Arduino rau AVR raws li Daim Duab thiab koj cov ntaub ntawv AVR

thiab tsis txhob hnov qab txuas tus 10uF capacitor nruab nrab ntawm GND ib qho RST ntawm koj Arduino rau kev xiam qhov pib pib dua ntawm Arduino

Kauj Ruam 4: Tau Txais Koj Lub Fuse Teeb thiab AVRDUDE APP

Tau Txais Koj Lub Fuse Teeb thiab AVRDUDE APP
Tau Txais Koj Lub Fuse Teeb thiab AVRDUDE APP

mus rau

www.engbedded.com/fusecalc/

thiab xaiv koj AVR, kuv yog Atmega16

Kuv yuav tsis hloov dab tsi yog li kuv tsis rhuav kuv AVR, tab sis kuv yuav hloov sab hauv RC mus rau 8 MHZ "Koj tuaj yeem xaiv sab nraud 16 MHZ siv lead ua" nws nyob ntawm koj.

scroll down thiab luam avrdude kev sib cav

muab nws tso rau hauv AVRDUDE programe.

kuv yog

-U lfuse: w: 0xe4: m -U huse: w: 0x99: m

AVEDUDE download link:

download.savannah.gnu.org/releases/avrdude/

tom qab ntawd qhib nws thiab hloov chaw teeb tsa zoo li cov duab thiab nyob ntawm koj lub khoos phis tawj thiab tsis txhob hnov qab muab cov fuse teeb tsa tso rau hauv kab lus hais ntxiv

Kauj Ruam 5: Tau Txais Koj Cov Ntaub Ntawv HEX Los Ntawm Koj Li C Code

Tau txais koj li HEX Cov Ntaub Ntawv los ntawm Koj Tus lej C
Tau txais koj li HEX Cov Ntaub Ntawv los ntawm Koj Tus lej C

Kuv yuav sau tus lej c yooj yim rau ntsais LED hauv tus lej 20

upload cov ntaub ntawv hex rau avrdude hauv Flash ntu thiab ntaus qhov program

Kauj Ruam 6: Qhov Kawg

Rau txhua lo lus nug tawm hauv qab no

Pom zoo: