Search found 10 matches

by altEnergy
Tue Sep 28, 2021 8:22 am
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3"SOLVED"

ag123 thankyou for making my post less lonely Hats off to you Sir :D
by altEnergy
Tue Sep 28, 2021 7:59 am
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3"SOLVED"

Also because I was not patient enough to understand how to sync all the timers so they run together at the same count, I used getcount on timer 2 then set count when all timers were paused so when i start them all they all start near each other no noticable differance at my lower speeds, but this mi...
by altEnergy
Tue Sep 28, 2021 7:32 am
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3"SOLVED"

I used three timers in the end (2,3 and 4) so 1 is free should i need it! I just used the same code or similar as I used on timer2 thanks!
by altEnergy
Mon Sep 27, 2021 8:02 am
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3

ag123, I have just noticed you linked twice to the temp sensor post, I guess when you copied the scope link it did not copy and you pasted the same link to the temp sensor lol
by altEnergy
Mon Sep 27, 2021 7:27 am
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3

I will take a look at the scope. I have a couple of adc chips that go up to 100Meg samples but I currently can not make a board with small enough traces to mount them. However my current project is all short wires at lower frequencies. The outputs are driving mosfet drivers that are all housed close...
by altEnergy
Sun Sep 26, 2021 6:22 pm
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3

ag123 ... Thankyou for the reply and I found it all great feedback the 500khz is more than I need the way I am doing things with this application. That is why I switched from using a dds (ad9833 and ad9850) tried both good for speed but not so easy to get nice clear pulses at certain places in sync ...
by altEnergy
Sun Sep 26, 2021 4:59 pm
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3

Ok I get it, interrupts are good and bad but when there is nothing easier go with it!
Well I hope I left something of use to someone or two . . :?
by altEnergy
Sun Sep 26, 2021 12:42 pm
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3

Well I have completed the code to display everything which is working but I am only getting my 2 180 out of phase pwm signals nothing is coming out of PA7 and I have wired PA6 to PA1 so the input trigger is getting to the correct pin. I am almost certain the problem is in the "void Tim3Setup()&...
by altEnergy
Sun Sep 26, 2021 7:45 am
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

Re: PWM and OneShot on TIM2 and TIM3

I think I have worked out the required code, I have not tested it yet but here is what I have got and I also realized it was Timer3 pins I was looking at not timer one, I have changed the subject accordingly. I think I just made myself too tired and stressed with it all. I will test it when I have w...
by altEnergy
Sat Sep 25, 2021 2:07 pm
Forum: General discussion
Topic: PWM and OneShot on TIM2 and TIM3"SOLVED"
Replies: 13
Views: 6301

PWM and OneShot on TIM2 and TIM3"SOLVED"

Hi, I have had to re-register. I did have the same user name in the old archived forum, but this is my first time in the new forum everything looks the same and it is great to see the forum is back! So I have copied some code and written some code to output a user defined frequency and pulse width. ...

Go to advanced search