Cov txheej txheem:
- Kauj Ruam 1: Nta thiab Ntu
- Kauj Ruam 2: Cov txheej txheem ua mov ci, Schematic, thiab Kev Tsim Kho
- Kauj Ruam 3: Kev Siv thiab Kev Thov
Video: VUSBTiny AVR SPI Programmer: 3 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
tom qab ua tus usbtiny isp programmer thiab siv nws rau 6 lub hlis, kuv tau saib ua lwm qhov rau nqa ib ncig. Kuv nyiam qhov yooj yim ntawm usbtiny isp tsim tab sis xav ua kom nws txawm me dua thiab siv tsawg dua. ib yam hauv thawj qhov tsim uas kuv xav hloov yog tshem tawm kev siv lub moos siv lead ua. ib qho kev daws teeb meem kuv pom yog v-usb tsav tsheb txhawb nqa 16.5Mhz sab hauv oscillator ntawm attiny25/45/85 pab kiag li lawm. yog li kuv pib tawm txoj haujlwm no kom muaj usbtiny isp ntiav v-usb rau usb kev sib txuas lus. cov txiaj ntsig tam sim ntawd yog nws txuag chaw thiab tsis suav cov khoom suav (tsis muaj ntau ntau muaju).usbtiny piav qhia los ntawm https://www.xs4all.nl/~dicks/avr/usbtiny/ USBtiny yog kev siv software ntawm USB qis-ceev raws tu qauv rau Atmel ATtiny microcontrollers. Yog lawm, nws tseem yuav ua haujlwm ntawm ATmega series. Lub software tau sau rau AVR moos ntawm 12 MHz. Ntawm qhov zaus no, txhua qhov me me ntawm lub npav USB siv sijhawm 8 teev, thiab nrog ntau qhov kev dag, nws muaj peev xwm txiav txim siab thiab nkag siab lub USB yoj yoj los ntawm software. Tus neeg tsav tsheb USB xav tau kwv yees li 1250 txog 1350 bytes ntawm qhov chaw flash (tsis suav nrog cov hlua xaiv tau xaiv), nyob ntawm kev teeb tsa thiab muab tso ua ke, thiab 46 bytes RAM (tsis suav cov pawg pawg). C interface muaj 3 txog 5 lub luag haujlwm, nyob ntawm kev teeb tsa.vusb kev piav qhia los ntawm https://www.obdev.at/products/vusb/ V-USB yog software-tsuas yog ua kom siv cov cuab yeej USB qis-tsawg rau Atmel's AVR microcontrollers, ua rau nws muaj peev xwm tsim USB kho vajtse nrog yuav luag txhua AVR microcontroller, tsis xav tau ib qho ntxiv chip.video ntawm kev tsim kho thiab siv
Kauj Ruam 1: Nta thiab Ntu
* cov txheej txheem kev xav los ntawm usbtiny isp, paub tab avr-dude txhawb nqa * ko taw me me sau * yam tsawg kawg nkaus * lub zog phiaj ntaus ntawv ceeb toom tias kab io rau lub hom phiaj hnoos tsis raug tiv thaiv. koj tuaj yeem ntxiv 1k-2k resistors rau SCK thiab MOSI thiab tiv thaiv qhov ua tsis tau txuas sib txuas ua ke raws li cov haujlwm pom ntawm v-usb los ntawm moj khaum https://www.obdev.at/vusb/ usbtiny isp https://www.xs4all. nl/~ dicks/avr/usbtiny/daim ntawv teev npe * attiny45/85 (85 yooj yim dua los ntawm) * 3.6v zener diodes (1n747, BZX79,.. zam 1W hom) * 68ohm resistor x 2 * 1.5K resistor * mini breadboard 170 tiepoints * usb cable (duas las khw usb tshuab luam ntawv cable zoo) * 1k/2k resistors rau io kab tiv thaiv (xaiv tau) cov cuab yeej xav tau * ua haujlwm avr programmer (yog, nws yog catch22, peb xav tau ib qho los ua ib qho) * ua haujlwm avr programming ib puag ncig
Kauj Ruam 2: Cov txheej txheem ua mov ci, Schematic, thiab Kev Tsim Kho
kev tsim kho
* ua raws daim phiaj qhia zaub mov, tsis yog qhov uas tuaj yeem ua tau, 3 tus tiv thaiv, 2 diodes, 1 lub hau, ntxiv rau 8 tus pin mcu. * tau txais lub khw muag khoom daus las usb tshuab luam ntawv cable txiav tawm lub tshuab luam ntawv kawg, yuav muaj 4 lub xov hlau nthuav tawm, ruaj ntseg thiab ua rau lawv mus rau hauv 4 tus pin txiv neej lub taub hau, peb yuav siv nws txuas rau lub rooj noj mov. sab laj schematic rau kev teeb tsa thiab tus lej pin (J1). * Saib xyuas rau diode polarity.
tsim thiab ua kom pom qhov project
txoj haujlwm tau tsim hauv linux ubuntu lucid lub thawv nrog avr-gcc toolchain. nws xav tias koj twb muaj ib puag ncig zoo li no, lossis koj tuaj yeem tshawb pom los ntawm internet yuav teeb tsa ib qho li cas. cov lej cim yog gnu gpl v2 ntawv tso cai los ntawm cov qub txeeg qub teg.
qhov chaws tau ua raws li kev pom zoo pom zoo los ntawm v-usb, koj tuaj yeem rub tawm lub pob qhov chaw vusbtiny.tgz thiab tsis muaj npe nkag rau hauv cov phiaj xwm phiaj xwm. hauv koj phau ntawv teev npe, muaj lub ntsiab.c, uas yog kuv qhov kev hloov kho usbtiny programmer. thiab usbdrv sub-directory, uas muaj v-usb txheej. thov saib lub sijhawm tso cai los ntawm ob txoj haujlwm saum toj no thaum tsim qhov no. kuv qhov chaw ntawm tus txheej txheem kev xav yog ua raws Dick Streefland version thiab tsis yog ladyada version (txawm hais tias lawv yuav luag zoo ib yam).
rau cov uas tsis muaj kev tsim cov saw dhau, koj tuaj yeem siv cov binary hauv qab no
nyem rau rub tawm vusbtiny.hex
thiab siv avrdude rau flash firmware
avrdude -c usbtiny -p t45 -e -V -U nyem: w: usbtiny.hex
(yog tias koj lub cuab yeej me me 85, hloov -p t45 w/ -p t85)
qhov peev xwm tuaj yeem rub tawm ntawm no nyem rau rub tawm vusbtiny.tgz
tshem tawm cov peev txheej pob rau hauv koj phau ntawv teev npe ua haujlwm
tar -zxvf vusbtiny.tgz
* ua cd vsubtiny, hloov pauv mus rau vusbtiny ua haujlwm phau ntawv teev npe * ncaj ncees tsim cov ntaub ntawv rau lub cuab yeej phiaj xwm raws li cov nti uas koj yuav siv. piv txwv li PROGRAMMER_MCU = t45 lossis t85 * ua ib qho * txuas koj nyiam ISP programmer * hloov kho cov ntaub ntawv thiab hloov koj cov avrdude tsis tau yog xav tau. cov khoom ib tus xav tias USBTiny programmer. xws li AVRDUDE_PROGRAMMERID = usbtiny * flash firmware ntawm kev teeb tsa
tom qab flashing firmware, peb yuav tsum teeb lub fuse kom raug, peb siv tus pin 1 rov pib dua raws li io hauv txoj haujlwm no
* ppl moos siv raws li xav tau los ntawm v-usb txheej rau usb sijhawm * rov pib dua tus pin xiam vim peb xav tau siv nws li io
avrdude -c usbtiny -p t45 -V -U lfuse: w: 0xe1: m -U hfuse: w: 0x5d: m -U efuse: w: 0xff: m
qhov teeb tsa no ua haujlwm tsis zoo ntxiv ntawm 5V SPI raws li peb xav tau RESET tus pin (pin1) rau io. koj yuav xav tau nkag mus rau HVSP programmer kom rov zoo li qub.
Kauj Ruam 3: Kev Siv thiab Kev Thov
ncaj flashing ntawm breadboard
yog tias koj siv vusbtiny nyem 8 tus pin AVR cov cuab yeej, koj tsuas tuaj yeem nias koj lub cuab yeej lub hom phiaj nyob rau sab saum toj ntawm tus programmer ntaus ntawv. tus programmer tau tsim los kom cov phiaj xwm phiaj xwm sib phim w/ lub hom phiaj. muaj ib qho dag tab sis, koj yuav tsum cais tus pin 2 thiab 3 ntawm tus programmer mcu, vim lawv yog USB D+ thiab D-pins txuas rau lub PC. Kuv siv qhov txiav ntawm kab xev scotch kom ua tiav qhov no, koj tuaj yeem pom nws ntawm cov duab. qhia hauv qab no yog me me 13v "caij" ntawm qhov me me 45, npaj kom tau txais firmware.
ISP flashing ntawm jumper
txhawm rau teeb tsa lub phiaj xwm phiaj xwm ntawm ISP (hauv kab ke ua haujlwm), koj xav tau ISP cable. ntawm no kuv tsis siv tus qauv 2x3 lossis 2x5 tus pin headers. hloov kuv tab tom siv 1x6 jumper uas zoo dua rau lub khob cij rau khaub ncaws, koj tuaj yeem ua 2x3 lossis 2x5 tus pin header los ntawm kev kos lawv rau J2 raws li qhia hauv daim duab qhia zaub mov thiab teeb tsa. cov duab hauv qab no qhia me me 2313 npaj kom tau txais lub teeb ci ntawm ISP.
daws teeb meem
* tsis tuaj yeem nyem lub firmware? txheeb xyuas koj thawj tus programmer, yuav xav tau kho lub sijhawm ntawm -B chij hauv avrdude. sim nyeem nti 1st, tej zaum yuav yog lub fuse tsis zoo, tej zaum yog koj lub nti xav tau lub teeb liab moos sab nraud. tej zaum koj yuav xav kho koj lub nti rov qab rau qhov tsis raug 1st. * txheeb xyuas kev sib txuas * yog tias siv io pins sib txawv, txheeb xyuas tus lej thiab kev sib txuas * koj tuaj yeem hloov zener diodes w/ 500mw, 400mw hom * koj yuav sim txo R3 tus nqi rau 1.2K lossis tsawg dua * koj yuav muaj feem ntau ntsib teeb meem sij hawm, sim -B chij ntawm avrdude, muaj lub USB cable luv dua txhua qhov pab tau
Pom zoo:
Arduino Raws li ISP -- Hlawv Hex Cov Ntaub Ntawv hauv AVR -- Fuse hauv AVR -- Arduino Raws li Programmer: 10 Kauj Ruam
Arduino Raws li ISP || Hlawv Hex Cov Ntaub Ntawv hauv AVR || Fuse hauv AVR || Arduino As Programmer: ……………………… Please SUBSCRIBE To my YouTube channel for more videos …….. Kab lus no yog txhua yam hais txog arduino li isp. Yog tias koj xav xa cov ntawv hex lossis yog tias koj xav teeb tsa koj lub fuse hauv AVR ces koj tsis tas yuav yuav tus programmer, koj tuaj yeem ua
AVR Programmer W/High Voltage: 17 Kauj Ruam
AVR Programmer W/High Voltage: Nov yog kuv thawj zaug qhia. Pawg thawj coj kuv tsim yog AVR Programmer. Pawg thawj coj saib xyuas kev ua haujlwm ntawm 4 cais pawg thawj coj uas kuv tau tsim hauv ob peb xyoos dhau los: - Tus kws siv hluav taws xob siab AVR, feem ntau siv ntawm ATtiny cov cuab yeej los teeb tsa
I2C / IIC LCD Zaub - Siv SPI LCD rau I2C LCD Zaub Siv SPI rau IIC Module Nrog Arduino: 5 Kauj Ruam
I2C / IIC LCD Zaub | Siv SPI LCD rau I2C LCD Zaub Siv SPI rau IIC Module Nrog Arduino: Nyob zoo cov phooj ywg txij li ib txwm muaj SPI LCD 1602 muaj xov tooj ntau dhau los txuas yog li nws nyuaj rau cuam tshuam nrog arduino tab sis muaj ib qho qauv muaj nyob hauv khw uas tuaj yeem hloov SPI zaub rau hauv IIC zaub yog li ntawd koj yuav tsum txuas tsuas yog 4 xov hlau
Pheej Yig STK500 AVR Programmer rau Atmel Studio: 7 Kauj Ruam
Pheej Yig STK500 AVR Programmer rau Atmel Studio: Atmel Studio yog lub cuab yeej muaj zog rau ua AVR cov haujlwm, tab sis kev sau ib qhov program yog thawj kauj ruam. Txhawm rau siv koj txoj haujlwm, koj yuav tsum ua lub Circuit Court thiab hloov koj cov cai rau hauv lub microcontroller. Koj tuaj yeem tsim kho koj li AVR los ntawm Atmel Studio los ntawm kev siv
ISP Programmer rau AVR Microcontrollers: 4 Kauj Ruam
ISP Programmer rau AVR Microcontrollers: Tus tswj hwm lub microcontroller yog tus khoos phis tawj khoos phis tawj nrog software uas yog siv los hloov lub tshuab cov lej lus rau lub microcontroller/EEPROM los ntawm lub PC. ISP programmer rau AVR microcontrollers yog Serial Programmers uas siv cov