Cov txheej txheem:

Atollic TrueSTUDIO-STM32L100 PWM Tutorial: 4 Kauj Ruam
Atollic TrueSTUDIO-STM32L100 PWM Tutorial: 4 Kauj Ruam

Video: Atollic TrueSTUDIO-STM32L100 PWM Tutorial: 4 Kauj Ruam

Video: Atollic TrueSTUDIO-STM32L100 PWM Tutorial: 4 Kauj Ruam
Video: How to Interface buzzer with STM32 || PWM || HAL || CubeMx 2024, Lub Xya hli ntuj
Anonim
Atollic TrueSTUDIO-STM32L100 PWM Tutorial
Atollic TrueSTUDIO-STM32L100 PWM Tutorial

Hauv qhov kev qhia no peb yuav qhia koj txog kev siv PWM hauv STM32 raws microcontroller, ntawm no peb siv 32L100discovery-Discovery Kit nrog STM32L100RCT6 microcontroller rau nws.

Kauj Ruam 1: Siv Software:

Siv Software
Siv Software
Siv Software
Siv Software

Nov yog cov software peb tau siv rau txoj haujlwm no:

1. Atollic TrueSTUDIO: Atollic® TrueSTUDIO® rau STM32 yog qhov kev hloov pauv tau yooj yim thiab nthuav dav thiab debug deb IDE rau STM32 MCU cov tsim tawm uas xav tau cov cuab yeej muaj zog los pab txhim kho cov cuab yeej siv tau zoo. TrueSTUDIO® yog ua raws cov qauv qhib (ECLIPSE thiab GNU) thiab txuas ntxiv nrog cov yam ntxwv zoo rau kev tswj hwm cov cai thiab kev tshuaj xyuas qib siab. Qhov no muab qhov kev nkag siab tshwj xeeb rau hauv tus qauv thiab kev coj ua zoo ntawm lub system.

Koj tuaj yeem rub tawm cov software los ntawm qhov txuas no

2. STM32CubeMX: STM32CubeMX yog cov cuab yeej siv duab uas tso cai rau kev teeb tsa yooj yim heev ntawm STM32 microcontrollers thiab microprocessors, nrog rau cov cim ntawm kev pib ua haujlwm C code rau Arm® Cortex®-M core lossis ib nrab Linux® Device Tree for Arm ® Cortex®-A core), los ntawm cov txheej txheem ib qib zuj zus.

Koj tuaj yeem rub tawm cov software los ntawm qhov txuas no

Kauj Ruam 2: Cov Khoom Siv:

Cheebtsam Siv
Cheebtsam Siv

Tsuas muaj ib qho khoom siv uas peb tau siv hauv qhov kev qhia no:

1.32L100CDISCOVERY: 32L100CDISCOVERY pab koj kom pom cov yam ntxwv ntawm STM32L100 Tus Nqi Kab 32-ntsis Cortex®-M3 microcontrollers thiab txhim kho koj daim ntawv thov yooj yim. Nws suav nrog txhua yam xav tau rau cov pib tshiab thiab cov neeg siv kev paub dhau los kom pib sai.

Raws li STM32L100RCT6, nws suav nrog ST-LINK/V2 embedded debug tool, LEDs, thawb lub pob kom yooj yim txuas ntawm cov khoom ntxiv thiab cov qauv.

Kauj ruam 3: Code:

Raws li peb tau tsim cov cai nrog kev pab los ntawm STM32CubeMX, yog li ntawm no kuv yuav qhia koj cov ntaub ntawv main.c.

koj tuaj yeem tau txais cov ntaub ntawv main.c los ntawm hauv qab rub tawm txuas

Kauj Ruam 4: Txoj Cai Ua Haujlwm thiab Yees Duab:

Ntawm no ua ntej koj yuav tsum qhib STM32CubeMX tom qab ntawd koj yuav tsum xaiv lub rooj tsav xwm raug lossis mcu yog tias koj siv lub rooj tsav xwm tshwj xeeb.

Rau tag nrho cov txheej txheem thov saib peb cov vis dis aus.

Tag Nrho Cov Lus Piav Qhia tau muab rau hauv cov vis dis aus saum toj no Yog tias koj muaj kev tsis ntseeg txog txoj haujlwm no xav tawm tswv yim rau peb hauv qab no. Thiab yog tias koj xav kawm paub ntau ntxiv txog kev teeb tsa kab ke koj tuaj yeem mus ntsib peb tus youtube channel Thov mus saib thiab nyiam peb Facebook Page kom hloov tshiab tas li.

Ua tsaug & Ua tsaug, Embedotronics yees

Pom zoo: