Hi all,
Can body ho to generate sine compared PWM in F2407..
thanks in Advance
Regards
Priya
Reg: PWM in 2407
Started by ●January 29, 2009
Reply by ●January 29, 20092009-01-29
Howdy Priya,
You'll have to expand on that a bit more. Do you want the sine
to be controlled by the PWM in terms of amplitude, frequency or phase?
Or do you want to generate a PWM based on those parts of the signal?
Patience, persistence, truth,
Dr. mike
On Thu, 29 Jan 2009, shanmugapriya Muthusamy wrote:
> Hi all,
>
> Can body ho to generate sine compared PWM in F2407..
> thanks in Advance
>
> Regards
> Priya
>
You'll have to expand on that a bit more. Do you want the sine
to be controlled by the PWM in terms of amplitude, frequency or phase?
Or do you want to generate a PWM based on those parts of the signal?
Patience, persistence, truth,
Dr. mike
On Thu, 29 Jan 2009, shanmugapriya Muthusamy wrote:
> Hi all,
>
> Can body ho to generate sine compared PWM in F2407..
> thanks in Advance
>
> Regards
> Priya
>
Reply by ●January 30, 20092009-01-30
Howdy Priya,
I'm not familiar with the F2407, but in general, if you put the two
signals into a comparitor, you will get a high and low based on how fast
you read the comparitor. If you want 8 bit resolution, you will need to
check the comparitor at 256 kHz. The timing for transition from low to
high or high to low is what determines how accurate your pwm signal is.
If I understand correctly, you just need to read the comparitor value and
hold a bit high or low depending on the comapritor being high or low. The
result will be a pwm signal with a 1 kHz update rate. The number of bits
in your PWM signal will depend on how fast your read the comparitor.
Patience, persistence, truth,
Dr. mike
On Fri, 30 Jan 2009, shanmugapriya Muthusamy wrote:
> Hi,
>
> thank u sir,
> I want to generate PWM pulse by comparing Sine wave of 50 Hz and
> triangular wave of 1KHz.
> Can u tell me what are all the register to be configured. I'm generating the
> sinewave by vm=vsinwt.
>
> Thanks
> Priya
>
> On Fri, Jan 30, 2009 at 6:26 AM, Mike Rosing wrote:
>
I'm not familiar with the F2407, but in general, if you put the two
signals into a comparitor, you will get a high and low based on how fast
you read the comparitor. If you want 8 bit resolution, you will need to
check the comparitor at 256 kHz. The timing for transition from low to
high or high to low is what determines how accurate your pwm signal is.
If I understand correctly, you just need to read the comparitor value and
hold a bit high or low depending on the comapritor being high or low. The
result will be a pwm signal with a 1 kHz update rate. The number of bits
in your PWM signal will depend on how fast your read the comparitor.
Patience, persistence, truth,
Dr. mike
On Fri, 30 Jan 2009, shanmugapriya Muthusamy wrote:
> Hi,
>
> thank u sir,
> I want to generate PWM pulse by comparing Sine wave of 50 Hz and
> triangular wave of 1KHz.
> Can u tell me what are all the register to be configured. I'm generating the
> sinewave by vm=vsinwt.
>
> Thanks
> Priya
>
> On Fri, Jan 30, 2009 at 6:26 AM, Mike Rosing wrote:
>