Yuav Ua Li Cas Pab Ib Lub Microcontroller

Cov txheej txheem:

Yuav Ua Li Cas Pab Ib Lub Microcontroller
Yuav Ua Li Cas Pab Ib Lub Microcontroller

Video: Yuav Ua Li Cas Pab Ib Lub Microcontroller

Video: Yuav Ua Li Cas Pab Ib Lub Microcontroller
Video: Quickest Kev Paab Hauv Ib Lub Limtiam Yog Dabtsi? 2024, Hlis ntuj nqeg
Anonim

Tus microcontroller yog tsim los tswj cov khoom siv hluav taws xob, thiab ntxiv rau kev sib cuam tshuam ntawm lawv nyob rau hauv raws li cov phiaj xwm hauv nws. Microcontrollers muaj built-in ntxiv cov khoom siv.

Yuav ua li cas pab ib lub microcontroller
Yuav ua li cas pab ib lub microcontroller

Tsim nyog

  • - CodeVisionAVR;
  • - VMLAB.

Cov Lus Qhia

Kauj ruam 1

Nruab qhov CodeVisionAVR compiler thov rau hauv koj lub computer rau kev tswj hwm microcontrollers. Nws tsim qhov program rau AVR. Tsis tas li, koj yuav tsum tau nruab VMLAB simulator daim ntawv thov, uas yog tsim los kuaj qhov haujlwm ntawm qhov kev zov me nyuam ntawm microcontroller.

Kauj ruam 2

Tom qab kev teeb tsa, ua cov thaub qab ntawm qhov programmes. Cov ntawv thov suav nrog cov khoom siv rau cov microcontrollers, nrog rau cov ntaub ntawv pab tsim. Siv lawv rau qhov program tswj tus kheej.

Kauj ruam 3

Nqa cov ntawv x8pwm2.rar xa mus rau hauv daim nplaub tshev nrog cov haujlwm Vmlab nruab - z8. Tom qab ntawd pib lub Vmlab application, mus rau qhov Project menu thiab xaiv Open project hauv nws, tom qab ntawd qhib qhov project los ntawm Vmlab.prj program folder. Qhov project qhov rai yuav tshwm sim ntawm qhov screen, uas muaj cov hauv qab no: LEDs, resistors, keyboard, oscilloscope, davhlau ya nyob twg.

Kauj ruam 4

Tom ntej no, nyem rau Qhov Rov Ua Txhua Yam nyob rau hauv cov ntawv qhia Project txhawm rau rov ua kom tiav qhov project. Ib cov lus yuav tshwm sim txog kev ua tiav ntawm cov txheej txheem, tom qab ntawd koj tuaj yeem pib sim ua cov microcontroller.

Kauj ruam 5

Ntxog, i.e. pib tsim cov haujlwm uas tau ntim rau hauv lub khoos phis tawj tus qauv ntawm lub maub los, nrog rau lub voj voog ncig nws. Nyem rau ntawm lub teeb liab yuav pib ua haujlwm cov phiaj xwm thauj khoom mus rau hauv lub cim xeeb ntawm MK. Nres cov txheej txheem tam sim ntawd.

Kauj Ruam 6

Khiav nws dua thiab saib txoj kev hloov voltage hauv qhov Scope qhov rai. Nres qhov kev pab cuam, nthuav tawm lub qhov rai sau npe Txoj Cai, nws yuav muab cov kab kev cai ntawm qhov program xam los ntawm Cvavr.

Kauj Ruam 7

Thov nco ntsoov tias qee cov kab raug sau ua daj, qhov ntev ntawm lub ntsiab tseem ceeb qhia lub sijhawm uas qhov kev pab cuam tau nyob rau ntawm kab no. Tom qab ntawd, koj tuaj yeem nyem cov maub los siv qhov program no.

Pom zoo: