Tsev > Exhibition > Ntsiab lus

Microcontroller Programming npuas

Mar 08, 2019

Cov Microcontrollers tau muab tso rau hauv cov lus sib dhos, tiam sis muaj ntau hom lus programming ntau yam, xws li C, Python thiab JavaScript, tam sim no tseem siv tau rau cov hom phiaj microcontrollers thiab cov kev tso ua ke. Compilers rau cov laj thawj hom lus feem ntau yuav muaj qee cov kev txwv thiab ntxiv rau kev txhawb nqa zoo dua cov yam ntxwv tshwj xeeb ntawm cov microcontrollers. Qee cov microcontrollers muaj qhov chaw los pab tsim cov hom kev siv. Cov tub lag luam Microcontroller feem ntau ua cov cuab yeej ua tau dawb kom muaj kev yoojyim rau lawv cov khoom kho mob.


Microcontrollers nrog kho tshwj xeeb tej zaum yuav xav tau lawv tus kheej uas tsis yog-standard dialers ntawm C, xws li SDCC rau 8051, uas tiv thaiv tsis tau siv cov cuab yeej txheem (xws li cov chaws qiv los sis cov cuab yeej cuab tam) txawm tias muaj kev sib thooj rau cov khoom nta. Cov neeg txhais lus kuj tseem muaj cov qauv tsis xws li, xws li MicroPython, tab sis lub diav rawg, CircuitPython, tau saib kom txav kho cov cuab yeej kho mob hauv cov tsev qiv ntawv thiab muaj cov lus sib txuas rau tus txheej txheem ntxiv CPython.


Interpreter firmware kuj muaj nyob rau ib co microcontrollers. Piv txwv, BASIC ntawm microcontrollers Intel 8052; [29] BASIC thiab FORTH nyob rau Zilog Z8 [30] thiab qee qhov cuab yeej niaj hnub. Feem ntau cov neeg txhais lus txhawb cov kev sib tham sib pab.


Simulators muaj rau qee cov microcontrollers. Cov no cia tus tsim tawm los soj ntsuam qhov kev coj tus cwj pwm ntawm cov microcontroller thiab lawv qhov kev zov me nyuam yuav tsum yog lawv siv qhov tseeb tiag. Lub simulator yuav ua rau lub xeev sab nraud thiab tseem tias ntawm cov kev tawm, nrog rau kev tso cai tawm tswv yim yuav tsum tau tsim. Thaum nyob ntawm ib sab tes feem ntau simulators yuav tsis txwv los ntawm kev tsis muaj cuab kav sim lwm qhov kho vajtse hauv lawv lub cev, lawv muaj peev xwm siv zog ua rau lwm yam nyuaj rau me nyuam yaus ntawm kev siv lub cev, thiab tuaj yeem ua qhov ceev tshaj plaws kom debug thiab soj ntsuam teeb meem.


Cov microcontrollers tsis ntev los no muaj kev sib txuas nrog on-chip debug circuitry uas thaum nkag los ntawm ib tug hauv-circuit emulator (ICE) ntawm JTAG, cia debugging ntawm firmware nrog ib debugger. Lub sij hawm ICE tiag tiag yuav tso cai rau saib thiab / los yog kev lag luam ntawm sab hauv lub xeev thaum khiav. Kev sib tw ICE muaj peev xwm sau tseg kev kawm thiab MCU hais ua ntej / tom qab lub ntsiab lus.