-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move project description to their own README.md
- Loading branch information
Showing
22 changed files
with
229 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,8 @@ | |
|
||
PC13 is the on-board LED. It is active-low and | ||
is turned on when the tone is playing. | ||
|
||
--- | ||
|
||
IDE: | ||
- Keil uVision 5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# ADC-PWM_HAL | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
This project is to make use of ADC and PWM. | ||
|
||
A potentiometer is attached to PA0 (ADC1, Channel 0) | ||
|
||
One LED is connected on PA8 (TIM1, Channel 1) | ||
Its brightness is controlled by the pot. | ||
|
||
Another LED is connected on PA10 (TIM1, Channel 3) | ||
It fades from 0% to 100% repeatedly (triangle wave) | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
|
||
## References | ||
|
||
+ ADC | ||
- http://microtechnics.ru/en/stm32cube-stm-and-adc-analog-to-digital-converter/ | ||
- https://visualgdb.com/tutorials/arm/stm32/adc/ | ||
- https://electronics.stackexchange.com/questions/202938/stm32-adc-conversion-using-hal | ||
|
||
+ PWM | ||
- https://electronics.stackexchange.com/a/239783 | ||
- https://stackoverflow.com/questions/43483762/using-stm32-hal-timer-and-adjusting-the-duty-cycle-of-a-pwm-signal | ||
- https://www.waveshare.com/wiki/STM32CubeMX_Tutorial_Series:_PWM | ||
- https://www.youtube.com/watch?v=Ql6klWiROik |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# BlinkLED | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
Blinking LED on PC13 | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,3 @@ | ||
/** | ||
* STM32F103C8T6 | ||
* Blue Pill Board | ||
* | ||
* Blinking LED on PC13 | ||
*/ | ||
|
||
#include "stm32f1xx.h" | ||
|
||
int main(void) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# PushButtonInterrupt | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
Toggle LED on PC13 with push button on PA0. | ||
|
||
PA0 uses external interrupt set up using registers. | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
|
||
## References | ||
|
||
- http://www.hertaville.com/external-interrupts-on-the-stm32f0.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# PushButtonInterrupt_HAL | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
Toggle LED on PC13 with push button on PA0. | ||
|
||
PA0 uses external interrupt set up using Cube HAL. | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
## References | ||
|
||
- http://www.hertaville.com/external-interrupts-on-the-stm32f0.html | ||
- https://www.simonmartin.ch/resources/stm32/dl/STM32%20Tutorial%2007%20-%20GPIO%20Interrupts%20(EXTI)%20using%20HAL%20(and%20FreeRTOS).pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# PushButtonPolling | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
Blinking LED on PC13. | ||
|
||
Press and hold push button on PA0 | ||
to speed blinking frequency | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# PushButtonPolling_HAL | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
Blinking LED on PC13. | ||
|
||
Press and hold push button on PA0 | ||
to speed blinking frequency | ||
|
||
Setup using Cube HAL | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
## References | ||
|
||
- https://www.simonmartin.ch/resources/stm32/dl/STM32%20Tutorial%2001%20-%20GPIO%20Operations%20using%20HAL%20(and%20FreeRTOS).pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# SPI-Write | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
SPI using MAX7219 to drive an 8x8 LED matrix | ||
Each pixel is turned on one by one. | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
## Connections | ||
|
||
Label | Pin | Function | ||
--- | --- | --- | ||
CS | PA4 | Software slave select | ||
CLK | PA5 | SPI clock | ||
DIN | PA7 | SPI MOSI | ||
NC | PA6 | SPI MISO | ||
|
||
## References | ||
|
||
- https://www.simonmartin.ch/resources/stm32/dl/STM32%20Tutorial%2001%20-%20GPIO%20Operations%20using%20HAL%20(and%20FreeRTOS).pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# SPI-Write_HAL | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
SPI using MAX7219 to drive an 8x8 LED matrix | ||
Each pixel is turned on one by one. | ||
|
||
This uses CubeHAL to initialise SPI | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
## Connections | ||
|
||
Label | Pin | Function | ||
--- | --- | --- | ||
CS | PA4 | Software slave select | ||
CLK | PA5 | SPI clock | ||
DIN | PA7 | SPI MOSI | ||
NC | PA6 | SPI MISO | ||
|
||
## References | ||
|
||
- https://www.simonmartin.ch/resources/stm32/dl/STM32%20Tutorial%2001%20-%20GPIO%20Operations%20using%20HAL%20(and%20FreeRTOS).pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Timer-BlinkLED | ||
|
||
STM32F103C8T6 | ||
Blue Pill Board | ||
|
||
TIM1 is configured as an up-counter and triggers | ||
an interrupt every 500ms to toggle an LED on PC13. | ||
|
||
--- | ||
|
||
IDE: | ||
- SW4STM32 | ||
|
||
## References | ||
|
||
- http://homepage.cem.itesm.mx/carbajal/Microcontrollers/SLIDES/STM32F3%20Timers.pdf | ||
- http://www.keil.com/download/docs/363.asp | ||
- https://www.youtube.com/watch?v=mqA4ELmzCmM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.