Cov txheej txheem:

ISP Programmer rau AVR Microcontrollers: 4 Kauj Ruam
ISP Programmer rau AVR Microcontrollers: 4 Kauj Ruam

Video: ISP Programmer rau AVR Microcontrollers: 4 Kauj Ruam

Video: ISP Programmer rau AVR Microcontrollers: 4 Kauj Ruam
Video: USBtinyISP AVR ISP программатор 2024, Hlis ntuj nqeg
Anonim
Image
Image

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 mus rau microcontroller/EEPROM los ntawm lub PC. ISP programmer rau AVR microcontrollers yog Serial Programmers uas siv lub chaw nres nkoj txuas mus cuam tshuam nrog PC ntawm RS232 cov txheej txheem. Lawv nrov dua ntawm cov neeg nyiam ua haujlwm hauv PC thiab yooj yim lawv ua.

Kauj Ruam 1: Circuit Schematic Diagram ntawm Programmer

Circuit Board
Circuit Board

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 mus rau microcontroller EEPROM los ntawm lub PC. Tus compiler hloov pauv cov cai sau ua lus zoo li kev sib sau ua ke, C, java thiab lwm yam rau tshuab cov lus thiab khaws nws hauv cov ntawv hex. Tus tswj hwm microcontroller ua tus cuam tshuam ntawm PC thiab lub hom phiaj tswj. API software ntawm tus programmer nyeem cov ntaub ntawv los ntawm hex cov ntaub ntawv khaws cia hauv PC thiab pub nws rau hauv tus tswj lub cim xeeb. Lub software hloov cov ntaub ntawv los ntawm lub PC mus rau kho vajtse uas siv cov ntawv txuas, txuas mus lossis USB chaw nres nkoj.

Tus tswj hwm micro, ATmega32 yog programmed siv tus pin txhais rau SPI kev sib txuas lus. Serial Peripheral Interface yog synchronous, tag nrho-duplex raws tu qauv. SPI tseem raug hu ua "3-wire interface" raws tu qauv vim nws xav tau 3 kab kev sib txuas lus hu ua MISO, MOSI thiab SCK. Cov txheej txheem SPI xav tau ob lub cuab yeej rau kev sib txuas lus. Ib ntawm lawv tau suav tias yog MASTER thiab lwm qhov yog SLAVE.

Kauj Ruam 2: Circuit Board

Circuit Board
Circuit Board
Circuit Board
Circuit Board
Circuit Board
Circuit Board

Koj tuaj yeem ua koj tus kheej lub rooj tsav xwm hauv tsev siv cov txheej txheem hloov pauv toner.

Siv lub rooj tsav xwm acircuit tsim software los hloov daim duab kos duab hluav taws xob mus rau hauv PCB txheej txheem.

Txhawm rau luam tawm daim iav duab ntawm PCB txheej txheem. Luam yuav tsum tau muab coj los siv rau ntawm daim ntawv Glossy/Daim Duab Duab siv Lub Tshuab Luam Ntawv Laser.

Txhawm rau txiav tooj liab clad board hauv qhov xav tau loj, raws li peb cov txheej txheem PCB tsim.

Txhawm rau muab tooj liab tooj liab tso rau ntawm qhov kev teeb tsa luam tawm, nrog sab tooj liab nqes mus rau ntawm qhov txheej txheem luam tawm. Tawv kom nias cov hlau kub rau qee lub sijhawm. Cua sov daim ntawv yuav hloov tus number case mus rau pawg thawj coj saib tooj liab. Yog tias daim ntawv tau daig rau hauv phaj, siv dej sov tshem tawm daim ntawv kom raug.

Peb cov txheej txheem teeb tsa hauv qab tus cwj mem dub.

Tshem tawm tag nrho lwm cov tooj liab tshwj tsis yog cov kab dub siv cov tshuaj tov rau hauv paus hydrogen peroxide.

Kauj Ruam 3: Cov Cheebtsam Cheeb Tsam

Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob
Cov Khoom Siv Hluav Taws Xob

Peb cov txheej txheem teeb tsa hauv qab tus cwj mem dub.

Tshem tawm tag nrho lwm cov tooj liab tshwj tsis yog cov kab dub siv cov tshuaj tov rau hauv paus hydrogen peroxide.

Siv cov ntawv xuab zeb zoo los tshem tus cwj mem dub.

Txhawm rau txhawm rau lub qhov rau jumper.

Txhawm rau muab cov khoom sib txuas thiab xaim ntawm Cov Luam Ntawv Circuit Board (PCB).

Tam sim no, ua cov programmer rau AVR microcontrollers nrog SPI kev txhawb nqa tau ua tiav.

Kauj Ruam 4: Hlawv Txoj Haujlwm Rau Hauv Lub Cim Nco ntawm Microcontroller

Hlawv Txoj Haujlwm Rau Hauv Kev Nco ntawm Microcontroller
Hlawv Txoj Haujlwm Rau Hauv Kev Nco ntawm Microcontroller

Txhawm rau hlawv qhov program rau lub cim xeeb ntawm microcontroller xav tau txuas cov xov hlau ntawm tus programmer mus rau tus pin ntawm microcontroller raws li daim duab pinout hauv daim ntawv microcontroller.

Tom qab ntawd txuas tus programmer mus rau qhov chaw nres nkoj txuas ntawm lub khoos phis tawj thiab txuas lub hwj chim usb ntsaws.

Siv tus neeg tsim khoom los tsim los ntawm txoj haujlwm ntawm microcontroller cov ntaub ntawv hex, uas muaj lub tshuab lus qhia kom nkag siab los ntawm microcontroller. Tus programmer hloov cov ntsiab lus ntawm cov ntaub ntawv hex no mus rau lub cim xeeb ntawm microcontroller. Thaum ib qhov program raug pauv lossis sau rau hauv lub cim xeeb ntawm lub microcontroller, nws tom qab ntawd ua haujlwm raws li qhov program.

Hauv cov vis dis aus tom ntej no peb yuav sim tsim txoj haujlwm yooj yim rau lub microcontroller.

Raws li txoj haujlwm, lub microcontroller yuav tswj lub teeb ci ntawm LED.

Peb yuav sim siv tus programmer uas peb tau sib sau ua ke los teeb tsa cov fuse me me ntawm lub microcontroller thiab hlawv qhov program mus rau hauv lub cim xeeb ntawm AVR ATMega32 microcontroller.

Ntau cov vis dis aus yuav los sai sai no. Sau npe yuav ua rau peb YouTube channel tsis txhob nco dab tsi!

Zoo siab ua, Tsaug!

Pom zoo: