How to create a sine lookup table...

Sep 12, 2008 8 Replies

Hi,



Can anyone guide me to create a sine lookup table according to the adc value.I am new to PIC.so plz help me.


I am designin a UPS control with PID.here sine wave is generated according to the adc and triangle wave is generated with fixed amplitute.



Then these two will compare by comparator.



Plz tell me how to do this task.....


Assuming you mean DAC (not adc), write a simple program in your favorite language to spit out source code in whatever language you are using to program your micro. Best regards, Spehro Pefhany

"it's the network..." "The Journey is the reward" speff@interlog.com Info for manufacturers: http://www.trexon.com Embedded software/hardware/analog Info for designers: http://www.speff.com

Google sine table generator

g

I just used Excel to do it.

JM

ing

Hi Mr.JM,

can you please help me to create sine lookup table using excel.I dont know how to create in excel.

So yo are designing a 'UPS control with PID' but ar unable to find the sine function in excel? Interesting skills set.

Stef (remove caps, dashes and .invalid from e-mail address to reply by mail) Kennedy's Market Theorem: Given enough inside information and unlimited credit, you've got to go broke.

c

rding

Start with Excel's Help menu. Look up or search for the SIN() worksheet function.

JM

ad=

acco=

Perhaps it would be opportune to mention my book: Excel by Example: A Microsoft Excel Cookbook for Electronics Engineers published by Elsevier/Newnes ISBN: 0750677562

Amongst many other functions pertinent to electrical engineering, I also describe the sine function

-Aubrey

c

rding

I do hope this is some form of university project.

If this is a commercial product, please tell us who for so we know to=20 avoid those POTENTIALLY dangerous products.=20

--=20 Paul Carpenter | snipped-for-privacy@pcserviceselectronics.co.uk PC Services Timing Diagram Font GNU H8 - compiler & Renesas H8/H8S/H8 Tiny For those web sites you hate

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required