Cov txheej txheem:

Kev Sib Txuas Lus Txuas Siv ARM Cortex-M4: 4 Cov Kauj Ruam
Kev Sib Txuas Lus Txuas Siv ARM Cortex-M4: 4 Cov Kauj Ruam

Video: Kev Sib Txuas Lus Txuas Siv ARM Cortex-M4: 4 Cov Kauj Ruam

Video: Kev Sib Txuas Lus Txuas Siv ARM Cortex-M4: 4 Cov Kauj Ruam
Video: 25# lu suav khoom siv kab ce txuas yam 工具扳手类型 2024, Hlis ntuj nqeg
Anonim
Kev Sib Txuas Lus Txuas Siv ARM Cortex-M4
Kev Sib Txuas Lus Txuas Siv ARM Cortex-M4

Nov yog cov phiaj xwm ua mov ci uas siv ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) rau Kev Sib Txuas Sib Txuas siv Virtual Terminal. Cov zis tuaj yeem tau txais ntawm 16x2 LCD Screen thiab cov tswv yim rau Kev Sib Txuas Lus tuaj yeem muab hauv Serial Monitor ntawm Energia IDE, Tera Team, Keil uVision lossis lwm yam software davhlau ya nyob twg.

Thaum lub sijhawm ua haujlwm, RED LED ntawm EK-TM4C123GXL qhia qhov xwm txheej ntawm microcontroller. Thaum hloov pauv Cov Ntaub Ntawv Serial mus rau microcontroller, RED LED ntawm EK-TM4C123GXL tig DAWB. Tag nrho cov Circuit Court yog siv los ntawm +5V (VBUS) thiab +3.3V ntawm EK-TM4C123GXL..bin cov ntaub ntawv ntawm c99 code tau txuas nrog cov ntawv qhia no..bin cov ntaub ntawv tuaj yeem xa mus rau lub microcontroller siv LM Flash Programmer.

Kauj ruam 1: Yuav tsum tau ua

Cov hauv qab no yuav tsum ua kom tiav txoj haujlwm no: 1- Texas Instruments EK-TM4C123GXL

2- Potentiometer (piv txwv li 5K)

3- LCD 16x2

4- Virtual Terminal (software ntawm PC)

5- LM Flash Programmer (software ntawm PC)

=> Yog tias koj tsis paub siv thiab teeb tsa LM Flash Programmer, tom qab ntawv thov txheeb xyuas kuv li Kev Qhia Ua Ntej dhau los, lossis nyem rau ntawm qhov txuas hauv qab no:

Rub tawm LM Flash Programmer

Upload.bin lossis.hex Cov Ntaub Ntawv Siv LM Flash Programmer

Kauj Ruam 2: Pin-outs & thaiv

Pin-outs & Txuas
Pin-outs & Txuas

Tus Pin-outs & Wiring ntawm ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) thiab lwm yam khoom siv sab nraud txuas nrog cov kauj ruam no thiab tseem muab cov hauv qab no:

================= TM4C123GXL => LCD

=================

VBUS => VDD lossis VCC

GND => VSS

PB4 => RS

GND => RW

PE5 => E

PE4 => D4

PB1 => D5

PB0 => D6

PB5 => D7

+3.3V => AW

GND => KA

========================

TM4C123GXL => Potentiometer

========================

VBUS => 1st pin

GND => pin 3

=================

Potentiometer => LCD

=================

Pin 2 => Vo

=> Koj tuaj yeem teeb qhov sib piv siv Potentiometer

Kauj ruam 3: Upload cov ntaub ntawv.bin

Upload cov ntaub ntawv.bin
Upload cov ntaub ntawv.bin
Upload cov ntaub ntawv.bin
Upload cov ntaub ntawv.bin

Xa cov ntawv.bin txuas nrog cov kauj ruam no rau ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL) siv LM Flash Programmer.

Kauj Ruam 4: Sau Koj Cov Ntaub Ntawv rau Kev Nkag Mus

Sau Koj Cov Ntaub Ntawv rau Kev Nkag Mus
Sau Koj Cov Ntaub Ntawv rau Kev Nkag Mus
Sau Koj Cov Ntaub Ntawv rau Kev Nkag Mus
Sau Koj Cov Ntaub Ntawv rau Kev Nkag Mus

Tom qab xa cov ntaub ntawv.bin rau ARM Cortex-M4 (Texas Instruments EK-TM4C123GXL), koj tuaj yeem tau txais koj cov zis ntawm 16x2 LCD Screen thiab nkag mus rau qhov koj xav tau hauv lub davhlau ya nyob twg piv txwv. Energia IDE Serial Monitor, Tera Team Virtual Terminal, Keil uVision lossis lwm lub davhlau ya nyob twg virtual.

Pom zoo: