Jan 14, 2011 #1 C crankler Junior Member level 2 Joined Dec 21, 2010 Messages 23 Helped 4 Reputation 8 Reaction score 4 Trophy points 1,283 Activity points 1,479 Is it possible to generate 2 pwm outputs from at89c2051? the pwm output should be configured from 5 - 10% duty cycle..
Is it possible to generate 2 pwm outputs from at89c2051? the pwm output should be configured from 5 - 10% duty cycle..
Jan 14, 2011 #2 nandhu015 Advanced Member level 5 Joined Feb 11, 2006 Messages 1,960 Helped 300 Reputation 600 Reaction score 222 Trophy points 1,353 Location India Activity points 9,926 yes, with the help of timers you can generate 2 pwm. What is the frequency of the pwm?
Jan 14, 2011 #3 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 nandhu015 said: yes, with the help of timers you can generate 2 pwm. What is the frequency of the pwm? Click to expand... it may not be as efficient or accurate when changing the pwm at regular intervals
nandhu015 said: yes, with the help of timers you can generate 2 pwm. What is the frequency of the pwm? Click to expand... it may not be as efficient or accurate when changing the pwm at regular intervals
Jan 14, 2011 #4 C crankler Junior Member level 2 Joined Dec 21, 2010 Messages 23 Helped 4 Reputation 8 Reaction score 4 Trophy points 1,283 Activity points 1,479 What is the frequency of the pwm? Click to expand... let's say 20 kHz, what should be the value of crystal oscillator to use? it may not be as efficient or accurate when changing the pwm at regular intervals Click to expand... why? i was planning to have an interval 10 seconds and minimum of 8 duty cycles to choose from
What is the frequency of the pwm? Click to expand... let's say 20 kHz, what should be the value of crystal oscillator to use? it may not be as efficient or accurate when changing the pwm at regular intervals Click to expand... why? i was planning to have an interval 10 seconds and minimum of 8 duty cycles to choose from
Jan 14, 2011 #5 C crankler Junior Member level 2 Joined Dec 21, 2010 Messages 23 Helped 4 Reputation 8 Reaction score 4 Trophy points 1,283 Activity points 1,479 i will be using 12kHz crystal oscillator.. what will be the frequency for 8-bit pwm output? ---------- Post added at 02:59 ---------- Previous post was at 02:56 ---------- ..i mean 11.0592kHz oscillator
i will be using 12kHz crystal oscillator.. what will be the frequency for 8-bit pwm output? ---------- Post added at 02:59 ---------- Previous post was at 02:56 ---------- ..i mean 11.0592kHz oscillator
Jan 14, 2011 #6 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 frequency is not concerned to crystal oscillator, but the timer values corresponding to the max frequency it can generate
frequency is not concerned to crystal oscillator, but the timer values corresponding to the max frequency it can generate
Jan 14, 2011 #7 nandhu015 Advanced Member level 5 Joined Feb 11, 2006 Messages 1,960 Helped 300 Reputation 600 Reaction score 222 Trophy points 1,353 Location India Activity points 9,926 crankler said: i will be using 12kHz crystal oscillator.. what will be the frequency for 8-bit pwm output? ---------- Post added at 02:59 ---------- Previous post was at 02:56 ---------- ..i mean 11.0592kHz oscillator Click to expand... It is not either 12kHz or 11.0592 kHz. It is 12MHz and 11.0592MHz
crankler said: i will be using 12kHz crystal oscillator.. what will be the frequency for 8-bit pwm output? ---------- Post added at 02:59 ---------- Previous post was at 02:56 ---------- ..i mean 11.0592kHz oscillator Click to expand... It is not either 12kHz or 11.0592 kHz. It is 12MHz and 11.0592MHz
Jan 14, 2011 #8 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 i thought it was typing error by the poster.... so did not point it out... thanks to bring it to notice to the poster....
i thought it was typing error by the poster.... so did not point it out... thanks to bring it to notice to the poster....
Jan 16, 2011 #9 C crankler Junior Member level 2 Joined Dec 21, 2010 Messages 23 Helped 4 Reputation 8 Reaction score 4 Trophy points 1,283 Activity points 1,479 frequency is not concerned to crystal oscillator, but the timer values corresponding to the max frequency it can generate Click to expand... what do you mean by timer values.. i'm using 11.0592 MHz crystal oscillator
frequency is not concerned to crystal oscillator, but the timer values corresponding to the max frequency it can generate Click to expand... what do you mean by timer values.. i'm using 11.0592 MHz crystal oscillator
Jan 16, 2011 #10 ckshivaram Advanced Member level 6 Joined Apr 21, 2008 Messages 5,060 Helped 2,150 Reputation 4,306 Reaction score 2,088 Trophy points 1,403 Location villingen (Germany) / Bangalore Activity points 30,088 THE MAXIMUM VALUES SUPPORTED BY PWM REGISTERS... there will be pwm registers, where we load the timer values for ON and OFF values and you vary the duty cycle...
THE MAXIMUM VALUES SUPPORTED BY PWM REGISTERS... there will be pwm registers, where we load the timer values for ON and OFF values and you vary the duty cycle...
Jan 26, 2011 #11 G gella Newbie level 2 Joined Dec 13, 2010 Messages 2 Helped 0 Reputation 0 Reaction score 0 Trophy points 1,281 Activity points 1,289 Can you please post a working sample program for PWM control? One which can control the brightness of an led, and maybe with a schematic? I seem to have problems with interrupt.. Can I use polling instead? Thanks!!!
Can you please post a working sample program for PWM control? One which can control the brightness of an led, and maybe with a schematic? I seem to have problems with interrupt.. Can I use polling instead? Thanks!!!
Jan 17, 2012 #12 M maxim10373 Advanced Member level 4 Joined Feb 26, 2010 Messages 116 Helped 1 Reputation 2 Reaction score 2 Trophy points 1,298 Activity points 2,066 gella said: Can you please post a working sample program for PWM control? One which can control the brightness of an led, and maybe with a schematic? I seem to have problems with interrupt.. Can I use polling instead? Thanks!!! Click to expand... check this attachmevt Ajitkumar Attachments uCTrainerKit.pdf 264 KB · Views: 174
gella said: Can you please post a working sample program for PWM control? One which can control the brightness of an led, and maybe with a schematic? I seem to have problems with interrupt.. Can I use polling instead? Thanks!!! Click to expand... check this attachmevt Ajitkumar