Puas yog Arduino embedded C?
Puas yog Arduino embedded C?

Video: Puas yog Arduino embedded C?

Video: Puas yog Arduino embedded C?
Video: Printf on a Microcontroller | Embedded System Project Series #19 2024, Kaum ib hlis
Anonim

Tej zaum yog, lub Arduino IDE (Integrateddevelopment Environment) yog tsim los ua haujlwm tsis zoo ntawm cov tsev qiv ntawv, tsuav yog qhov programming Arduino UNO hauv Embedded C lus tau vim Arduino IDEcan Compile ob qho tib si arduino code as well as AVR standardcode.

Tsuas yog li ntawd, yog Arduino ib qho kev kos npe?

Arduino yog raws li AVR microcontroller. Txawm li cas los xij, los ntawm kev siv arduino koj tsis tuaj yeem nkag mus rau tag nrho cov khoom siv sab hauv. Scope ntawm embedded systems yog heev loj: kev txhim kho software, kho vajtse txhim kho. Ib embedded engineer yuav tsum paub ua hauj lwm ntawm liab qab board tsis muajanyapi.

Tsis tas li ntawd, yog Arduino raws li C lossis C ++? Arduino tsis khiav thiab C los yog C ++. Itruns tshuab code compiled los ntawm ob qho tib si C , C ++ los yog lwm yam lus uas muaj ib tug compiler rau lub Arduino daim ntawv qhia. Yog koj tseem tsis tau paub C tsis yog C ++, koj yuav tsum pib nrog C , tsuas yog kom tau siv tag nrho "pointer" yam.

Ib sab saum toj no, qhov txawv ntawm embedded C thiab C yog dab tsi?

Embedded C feem ntau yog ib tug extension ntawmthe C hom lus, lawv muaj ntau dua lossis tsawg dua. Txawm li cas los xij, qee qhov sib txawv muaj, xws li: C yog feem ntau siv rau desktop computers, thaum embedded C isformicrocontroller raws li kev siv. C tuaj yeem siv cov khoom siv ntawm lub desktop PC xws li nco, OS, thiab lwm yam.

Dab tsi yog txhais los ntawm embedded C?

C lus yog ib qho software tsim nrog cov ntsiab lus sib txawv, cov ntaub ntawv hom, hloov pauv, qhov tsis tu ncua, thiab lwm yam. Embedded C yog ib lo lus generic muab rau ib tug programming lus sau nyob rau hauv C , uas yog txuam nrog ib qho tshwj xeeb hardwarearchitecture. Embedded C yog ib tug extension rau lub C lus nrog qee cov ntaub ntawv header ntxiv.

Pom zoo: