Cov txheej txheem:

Meter Zaus Siv Microcontroller: 8 Kauj Ruam
Meter Zaus Siv Microcontroller: 8 Kauj Ruam

Video: Meter Zaus Siv Microcontroller: 8 Kauj Ruam

Video: Meter Zaus Siv Microcontroller: 8 Kauj Ruam
Video: lauj thoj - tseem siv tu xov tooj qub 2018 2024, Hlis ntuj nqeg
Anonim
Image
Image
Meter Zaus Siv Microcontroller
Meter Zaus Siv Microcontroller
Meter Zaus Siv Microcontroller
Meter Zaus Siv Microcontroller
Meter Zaus Siv Microcontroller
Meter Zaus Siv Microcontroller

Phau ntawv qhia no yooj yim hais yuav ua li cas los xam qhov zaus ntawm qhov chaw siv mem tes siv lub microcontroller. High voltage qib ntawm qhov chaw pulse yog 3.3 V thiab qis yog 0V. I tau siv STM32L476, Tiva launchpad, 16x2 alphanumeric LCD qee lub xov tooj cua thiab 1K resistor.

Kho vajtse yuav tsum tau:-

1) STM32L476 nucleo board

2) Tiva launchpad lossis lwm lub microcontroller board (lub hauv paus mem tes)

3) 16x2 tus lej lej

4) Daim ntawv qhia zaub mov

5) 1K resistor (rau lcd sib piv)

Software yuav tsum tau:-

1) STM32cubemx

2) Keil uVision5

3) Energia (rau Tiva launchpad)

Kauj Ruam 1: Nruab Stm32cubemx, Keil UVision5 thiab Energia hauv Koj Lub PC, hloov kho lawv

Kauj Ruam 2: Qhib Stm32cubemx Xaiv Stm32l476 Nucleo Board. Select PC_13 Raws Li Sab Nraud cuam tshuam Pin

Qhib Stm32cubemx Xaiv Stm32l476 Nucleo Board. Select PC_13 Raws Li Sab Nraud cuam tshuam Pin
Qhib Stm32cubemx Xaiv Stm32l476 Nucleo Board. Select PC_13 Raws Li Sab Nraud cuam tshuam Pin

Kauj Ruam 3: Tsis tas yuav hloov pauv dab tsi hauv moos teeb tsa

Tsis tas yuav hloov dab tsi hauv kev teeb tsa moos
Tsis tas yuav hloov dab tsi hauv kev teeb tsa moos

Kauj Ruam 4: Xaiv TIMER1 thiab Clock Source Raws Li Sab Hauv

Xaiv TIMER1 thiab Clock Source Raws Li Lub Sijhawm Hauv. Thiab Ua Chaw Nyob hauv TIMER1 Raws Li Duab
Xaiv TIMER1 thiab Clock Source Raws Li Lub Sijhawm Hauv. Thiab Ua Chaw Nyob hauv TIMER1 Raws Li Duab
Xaiv TIMER1 thiab Clock Source Raws Li Lub Sijhawm Hauv. Thiab Ua Chaw Nyob hauv TIMER1 Raws Li Duab
Xaiv TIMER1 thiab Clock Source Raws Li Lub Sijhawm Hauv. Thiab Ua Chaw Nyob hauv TIMER1 Raws Li Duab
Xaiv TIMER1 thiab Clock Source Raws Li Lub Sijhawm Hauv. Thiab Ua Chaw Nyob hauv TIMER1 Raws Li Duab
Xaiv TIMER1 thiab Clock Source Raws Li Lub Sijhawm Hauv. Thiab Ua Chaw Nyob hauv TIMER1 Raws Li Duab

Kauj Ruam 5: Muab Lub Npe rau Koj Txoj Haujlwm thiab Tsim Txoj Cai rau Keil Lub Tswv Yim Los ntawm Stm32cubemx

Muab Lub Npe rau Koj Txoj Haujlwm thiab Tsim Txoj Cai rau Keil Lub Tswv Yim Los ntawm Stm32cubemx
Muab Lub Npe rau Koj Txoj Haujlwm thiab Tsim Txoj Cai rau Keil Lub Tswv Yim Los ntawm Stm32cubemx
Muab Lub Npe rau Koj Txoj Haujlwm thiab Tsim Txoj Cai rau Keil Lub Tswv Yim Los ntawm Stm32cubemx
Muab Lub Npe rau Koj Txoj Haujlwm thiab Tsim Txoj Cai rau Keil Lub Tswv Yim Los ntawm Stm32cubemx

Kauj Ruam 6: Txuas LCD mus rau STM3276 Nucleo Board Nrog Kev Sib Txuas Hauv qab no

Pin txuas ntawm stm32 rau lcd

STM32L476 - LCD

GND - PIN 1

5V - PIN 2

NA - 1K resistor txuas nrog GND

PB10 - PIB

PB11 - RWJ

PB2 - TSO

PEB 12 - D4

PEB 13 - D5

PEB 14 - D6

PEB 15 - D7

5V - PIN 15

GND - PIN 16

Kauj Ruam 7: Txuas Ib Tus Pin ntawm Tiva Launchpad rau Sab Nraud cuam tshuam Pin ntawm Stm32l476 thiab GND Pin ntawm Tiva Launchpad rau GND Pin ntawm STM32L476

Yog tias koj muaj lwm lub microcontroller board nrog koj xav tau txuas GPIO ntawm lub rooj tsav xwm sab nraud cuam tshuam tus pin ntawm STM32L476 nucleo board thiab txuas GND ntawm ob lub laug cam rau ib leeg. Koj yuav tsum toggle GPIO tus pin programmatically hauv nws IDE.

Pom zoo: