Posted on June 11, 2016 at 01:55
Hi to all, I'm giuseppe and I'm new here,
I've a big problem with the generation of pwm signal, in the code below i'm trying to create a pwm of 50% duty cycle in port PA0, the pwm would be of a period of 1s, s...
Posted on June 11, 2016 at 23:02clive1 thanks for the help, i solved it i was getting wrong because i written 3 instead of 2 in GPIOA->MODER (because 3 let me select analog function while i needed to select the alternate function) and i was using AF...
Posted on June 11, 2016 at 09:01I noticed that when i try to set the UG bit in the EGR register, I can't do that but I don't know why it goes to modify the UIF bit of SR register, I'll add a pic of the situation after the TIM2->EGR = 1<<0; istructio...