Difference between revisions of "STM32 Crazy Mystery"

From Stm32World Wiki
Jump to navigation Jump to search
Line 2: Line 2:
 
This page documents a bit of a mystery that I - so far - have been unable to solve.
 
This page documents a bit of a mystery that I - so far - have been unable to solve.
  
Since PC13 is commonly used to drive an on-board [[LED]] on [[:Category:Development Boards|Development Boards]]
+
Since PC13 is commonly used to drive an on-board [[LED]] on [[STM32 Development Boards|Development Boards]] and since PC13 is not connected to any timer channel, usually one can only toggle that [[LED]] on or off.  A while back I was experimenting with bit banging PWM on this pin to be able to dim and pulse the led.
  
Watch on Youtube here: [https://www.youtube.com/watch?v=ZsHR1bQOmzk https://www.youtube.com/watch?v=ZsHR1bQOmzk]
+
{{#ev:youtube|ZsHR1bQOmzk}}
  
{{#ev:youtube|ZsHR1bQOmzk}}
+
== What works (STM32F411 - [[Black Pill]]) ==

Revision as of 06:19, 16 October 2024

This page documents a bit of a mystery that I - so far - have been unable to solve.

Since PC13 is commonly used to drive an on-board LED on Development Boards and since PC13 is not connected to any timer channel, usually one can only toggle that LED on or off. A while back I was experimenting with bit banging PWM on this pin to be able to dim and pulse the led.

What works (STM32F411 - Black Pill)