Post Created date
Generating two pwms from same timer with different duty cycle
sherifb96 wrote: if you dont mind ,last question and a quick question is the OCF flag raised when PWM reaches compare match -if the compare match is any value but not top-?...
Thursday, 13 February 2020 - 09:48
Generating two pwms from same timer with different duty cycle
clawson wrote: PS isn't life a whole lot easier if you simply use two timers ?? yeah well lol cant argue with that, but its not me who put the constraints I would love to make my...
Thursday, 13 February 2020 - 09:46
Generating two pwms from same timer with different duty cycle
Yeah i know its a 50:50 but since I am using the pwm mode I just called them both pwms, but yeah you are definetly right. and yes that just solved it, i missed the the common...
Thursday, 13 February 2020 - 09:43
Generating PWM using non pwm mode CTC
clawson wrote: PS hope my post actually gives some useful information and does not clog this thread with irrelevant nonsense about your programming style or the way you quote...
Wednesday, 12 February 2020 - 12:07
Generating PWM using non pwm mode CTC
awneil wrote:   There isn't any code which does what that comment says! sherifb96 wrote:I am initializing the timer with a frequency of 1MHz Are you sure?   See Tip #3...
Wednesday, 12 February 2020 - 11:39
Generating PWM using non pwm mode CTC
awneil wrote:   But, as a matter of programming style & good practice, it is better not to expose stuff more widely than it needs to be. It helps to protect you from all...
Wednesday, 12 February 2020 - 11:21
Generating PWM using non pwm mode CTC
awneil wrote: sherifb96 wrote:  Looks like a prime example of where a static local would be more appropriate: static uint8_t count;   well static or not static...
Wednesday, 12 February 2020 - 11:11
Generating PWM using non pwm mode CTC
awneil wrote: sherifb96 wrote:Updated the post Not good to update the post after there have been replies to it in its original form!   Better to reply with the corrections!...
Wednesday, 12 February 2020 - 11:09
Generating PWM using non pwm mode CTC
and a quick question in regards to the method you mentioned in your post, how can the timer reaches over flow if the OCR0 value is 10? shouldnt it just keep resetting tcnt once it...
Wednesday, 12 February 2020 - 11:08
Generating PWM using non pwm mode CTC
well thank you it has been a great help and yes now I can fully control the duty cycle I want, but if you dont mind the question, is there a way to only use the CTC mode? I think...
Wednesday, 12 February 2020 - 10:52
Generating PWM using non pwm mode CTC
Updated the post, nah the variable was correct I just copied an old version of it which was wrong.
Wednesday, 12 February 2020 - 10:36
Phase correct pwm OCR vs Fast PWM OCR
well if it is the way the chip is designed then that would be the answer to my question indeed, I was asking because i thought it is me that is not understanding how it works or...
Thursday, 6 February 2020 - 14:08

Pages