Posted on June 20, 2017 at 18:31Have an STM32415RG chip and would like an example using Timer1 blinking an LED on PA8 using either PWM or alternating.#timers
Posted on July 03, 2017 at 15:49Because you are using PWM2 which means the pulse is negative instead of Positive with PWM1, if you set the counter to zero the pin stays in the high state which will leave the LED turned on. At 50% which is 32767 you...
Posted on July 03, 2017 at 14:02I hate configuring clocks. It's too cryptic to get it right. Anyway I used the STM32Cub software to build your example and put a scope on it and it seems to work just fine.What I don't see in your code is the config...
Posted on June 23, 2017 at 13:50Ok, now for the answer which doesn't seem easy.First we want to pulse the LED 10 times a second or every 10th of a second so we can see it blink.In the STM32CUB software we select RCC.HSE=Crystal as I am using a 1Bits...
Posted on June 21, 2017 at 15:12Right, I wanted a solution using Timer 1 driving PA8 to an on off state. I guess the example provide were helpful in determining what might be wrong with my example.My impression is that the STM32CUB software is easy...
Posted on June 21, 2017 at 13:04Ok, Using Timer 2 is cheating. Timer one only has Output Compare as an option which I set to Toggle mode and 32767 so it's 50% duty cycle.The LED is either on or off but does not flash.Using an interrupt is nice to k...