Ntawm technology, Electronics
Yuav ua li cas yog ib tug JTAG-programmer?
Muaj ib tug heev ob peb txawv configurations ntawm cov uas cia sau dua tshiab software uas nyob rau hauv microcontroller. Tej zaum lawv yuav sib txawv, tsim rau cov tub txawg, los yog, conversely, muaj ib tug yooj yim to taub interface. Cov yav tas yog hais txog programmer thiab cov hero ntawm no tsab xov xwm. Koj yuav kawm tsis tau tsuas yog nws yog dab tsi, tab sis kuj yuav ua li cas yuav ua rau ib tug JTAG programmer nrog nws tus kheej txhais tes. Koj nrhiav tau kev kos duab thiab cov duab yuav tsum zoo li qhov tshwm sim.
Yuav ua li cas yog ib tug JTAG-programmer?
Yog vim li cas xaiv cov programming JTAG?
disadvantages programmer
Qhov tseeb version ntawm microcontroller tsev neeg, tsis muaj tus ntxiv ua hauj lwm yuav tsis tau programmed. Tsis tas li ntawd, muaj muaj teeb meem nrog cov neeg sawv cev uas muaj tsawg tshaj li 40 feet, thiab 16 KB ntawm lub cim xeeb. Raws li koj tau pom, tus xov tooj ntawm tej cov neeg muas zaub yog theej limited. Tab sis ob peb nrov qauv cia li poob mus rau nws, yog li ntawd nws yog ib pab tau.
tswvyim
Rau ntau dua yooj yim ntawm cov neeg uas tsis txaus uas tsim nyog programmer yog tsim los rau cov MAX232, tab sis lwm cov kev xaiv yuav tsum tau tsuas tsim kom muaj lwm kev twb kev txuas.
hloov
Muab hais tias muaj tus tsim nyog circuits yuav tsum tau tsuas lwv board. Ntxiv mus, tag nrho cov ntxiab kev cob cog rua, soldered mus rau lub teb thiab soj ntsuam hauj lwm ntawm lub programmer los ntawm cov firmware loader. Qhov no yog ua raws li nrog AVR Studio los mus hloov cov firmware rau lub JTAG-programming mus rau qhov tseeb version, los yog raws li ntev raws li tsim nyog. Los ntawm lub adapter txuas lub programmer. Yog hais tias nws ua hauj lwm - li ntawd, koj yuav tsiv mus nyob rau lub seem tom ntej no, uas qhia txog tus nuances ntawm kev ua hauj lwm thiab programming. Nws yuav tsum tau muab sau tseg tias tag nrho cov nyob ntawm tej, lawv yog cov cia li sab nraum lub thawv nyob.
Raws li kev npaj rau lub lag luam yuav tsum tau teem Fuse khoom. Lawv nyob ntawm seb lub cim, nyob rau hauv uas lub chaw ua hauj lwm yog ua. Rau ib tug zoo kev nkag siab peb tuaj ntawm no cov nram qab no cov lus:
me ntsis | Direct cim (datasheet, UniProf) | Hom cim (AVR tug yawg GUI, PonyProg) |
OCDEN | [] | [1] |
JTAGEN | [] | [1] |
SPIEN | [] | [1] |
CKOPT | [1] | [] |
EESAVE | [1] | [] |
BOOTSZ1 | [] | [1] |
BOOTSZ0 | [] | [1] |
BOOTRST | [1] | [] |
BODLEVEL | [1] | [] |
|
BODEN | [1] | [] |
SUT1 | [] | [1] |
SUT0 | [] | [1] |
CKSEL3 | [1] | [] |
CKSEL2 | [1] | [] |
CKSEL1 | [1] | [] |
CKSEL0 | [1] | [] |
Thiab yuav ua li cas koj puas paub dab tsi los xaiv? Lo lus teb rau lo lus nug no yooj yim: koj yuav tsum tau txuas mus rau lub microcontroller thiab pib nyeem cov tib khoom. Nco ntsoov lub SPIEN - yog hais tias muaj yog ib tug kos cim tom ntej no mus rau nws, ces nws txhais tau hais tias cov cim yog inverted. Yog hais tias nws tsis yog - ces nws yog ncaj. Yog hais tias txhua yam twb ua kom raug, lub programmer yog npaj txhij rau xaws microcontrollers. Tab sis yog hais tias nws yog tom qab tsis tau kom firmware - reread thiab saib txhua yam dua.
Ua hauj lwm nrog cov programmer
Ib me ntsis ntawm kev xyaum. Mus xyuas lub plug rau hauv qhov chaw nres nkoj A 3 LEDs. Ces connects rau lub Rooj Tswjhwm Saib: plaub hlau interface (TCK, TDI, TMS, TDO) thiab 2 Vcc hwj chim mus rau qhov zoo thiab GND yog kev cob cog rua rau hauv av. Tag nrho cov khoom noj khoom haus, koj muaj peev xwm mus ntxiv. Lub studio yog tsim nyog los compile cov code thiab khiav nws. Peb tes num compiles sai sai, muaj yuav kuj yuav stitched thiab pib ua hauj lwm. Yuav kom saib xyuas cov tiav kev, koj yuav nias lub F11, thiab ces koj yuav saib tau nyob rau hauv tej xov tooj ntawm cov code tam sim no qhov kev pab cuam. Nws yog txaus rau coj tus cursor rau cov kab uas muaj xws li ib tug LED thiab nws teeb. Muaj yog tseem muaj ib tug ntau ntawm cov thwmsim. Nco ntsoov hais tias nyob rau hauv thiaj li yuav ua ib yam dab tsi, koj yuav tsum mus ua hauj lwm. Cia advancement yuav tau qeeb, tab sis nws thiaj li koj yuav tsum tau txais raws nraim li cas koj xav tau, cov tseem ceeb tshaj plaws - tsis txhob muab thiab mus txuas ntxiv xyaum ua tej yam nrog tus haum rau cov theoretical lub hauv paus (tsis muaj nws nyob rau hauv txhua txoj kev).
Similar articles
Trending Now