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:
>