Maker Pro
Maker Pro

Single Pole Compensating for Sine Wave Generation

M

Myauk

Jan 1, 1970
0
I am studying on PIC Reference UPS design manual
http://www.freeweb.hu/t-t/elokep/pic/download/picref01.pdf.

It explained briefly on the sine wave generation scheme. Reading the
program, I understand that it will start putting 0 on the PWM as duty
cycle first. Then next reference value is looked up from the table,
compare with the actual singal read from output via A/D converter from
which a new PWM value will be calculated.

I am looking for a detailed explanation on such kind of singe wave
generation algorithm using a micro controller like PIC.

All I need, I think, is the A/D converter specification, PWM
specification and the instruction of the controller to determine the
values in look up table, calculate the coefficients for compensation,
and some scheme for DC offset correction.

What else more???

Could anybody please give me some links where I could find such kind
of detailed information??

A little more detail than this with less complex application will be
better.

I only need the sine wave generation part.

Thanks

Aung Ko Ko Thet
 
B

Ben Bradley

Jan 1, 1970
0
I am studying on PIC Reference UPS design manual
http://www.freeweb.hu/t-t/elokep/pic/download/picref01.pdf.

It explained briefly on the sine wave generation scheme. Reading the
program, I understand that it will start putting 0 on the PWM as duty
cycle first. Then next reference value is looked up from the table,
compare with the actual singal read from output via A/D converter from
which a new PWM value will be calculated.

I am looking for a detailed explanation on such kind of singe wave
generation algorithm using a micro controller like PIC.

All I need, I think, is the A/D converter specification, PWM
specification and the instruction of the controller to determine the
values in look up table, calculate the coefficients for compensation,
and some scheme for DC offset correction.

That UPS design does more than what you want to do, and the extras
may be confusing you.

(I always get a headache when looking a PIC-based design anyway)
What else more???

Could anybody please give me some links where I could find such kind
of detailed information??

A little more detail than this with less complex application will be
better.

I only need the sine wave generation part.

The main thing in all that stuff that applies to sine generation is
the lookup table.

You might want to google this:

numerically controlled oscillator
 
M

Myauk

Jan 1, 1970
0
It's too bad this guy uses googlegroups to post rather than a non-spamming
news service. Otherwise, I would gladly share my code on how to make a
PWM-able microcontroller generate sine waves.

Bob

Could you please explain what you meant by that?

Regards
Aung Ko Ko Thet
 
M

Myauk

Jan 1, 1970
0
numerically controlled oscillator

I found Direct Digirtal Synthesis which is related to numerically
controlled oscillator, however, I think it is slightly different from
my requirement and more complex for me to learn.

Regards
 
Top