EmbeddedRelated.com
Forums
Memfault Beyond the Launch

How to create a sine lookup table...

Started by kvrajasekar September 12, 2008
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.....


On Fri, 12 Sep 2008 08:13:15 -0500, "kvrajasekar"
<rajas_kvr_ec@yahoo.co.in> wrote:

>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
kvrajasekar wrote:
> 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.....
Google sine table generator
On Sep 12, 8:13=A0am, "kvrajasekar" <rajas_kvr...@yahoo.co.in> wrote:
> 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 accordin=
g
> 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.....
I just used Excel to do it. JM
On Sep 14, 6:17=A0am, John Mianowski <spamf...@skytex.net> wrote:
> On Sep 12, 8:13=A0am, "kvrajasekar" <rajas_kvr...@yahoo.co.in> wrote: > > > 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 accord=
ing
> > 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..... > > I just used Excel to do it. > > JM
Hi Mr.JM, can you please help me to create sine lookup table using excel.I dont know how to create in excel.
In comp.arch.embedded,
raja <raja.kvr@gmail.com> wrote:
> On Sep 14, 6:17&#4294967295;am, John Mianowski <spamf...@skytex.net> wrote: >> On Sep 12, 8:13&#4294967295;am, "kvrajasekar" <rajas_kvr...@yahoo.co.in> wrote: >> >> > 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..... >> >> I just used Excel to do it. >> >> JM > > 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.
On Sep 15, 1:21=A0am, raja <raja....@gmail.com> wrote:
> On Sep 14, 6:17=A0am, John Mianowski <spamf...@skytex.net> wrote: > > > > > On Sep 12, 8:13=A0am, "kvrajasekar" <rajas_kvr...@yahoo.co.in> wrote: > > > > Hi, > > > > Can anyone guide me to create a sine lookup table according to the ad=
c
> > > value.I am new to PIC.so plz help me. > > > > I am designin a UPS control with PID.here sine wave is generated acco=
rding
> > > 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..... > > > I just used Excel to do it. > > > JM > > Hi Mr.JM, > > can you please help me to create sine lookup table using excel.I dont > know how to create in excel.
Start with Excel's Help menu. Look up or search for the SIN() worksheet function. JM
>On Sep 15, 1:21=A0am, raja <raja....@gmail.com> wrote: >> On Sep 14, 6:17=A0am, John Mianowski <spamf...@skytex.net> wrote: >> >> >> >> > On Sep 12, 8:13=A0am, "kvrajasekar" <rajas_kvr...@yahoo.co.in>
wrote:
>> >> > > Hi, >> >> > > Can anyone guide me to create a sine lookup table according to the
ad=
>c >> > > value.I am new to PIC.so plz help me. >> >> > > I am designin a UPS control with PID.here sine wave is generated
acco=
>rding >> > > 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..... >> >> > I just used Excel to do it. >> >> > JM >> >> Hi Mr.JM, >> >> can you please help me to create sine lookup table using excel.I dont >> know how to create in excel. > >Start with Excel's Help menu. Look up or search for the SIN() >worksheet function. > >JM >
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
In article <9e7e1766-a528-4f97-88d2-
bd2fad96b35a@z11g2000prl.googlegroups.com>, raja.kvr@gmail.com says...
> On Sep 14, 6:17=A0am, John Mianowski <spamf...@skytex.net> wrote: > > On Sep 12, 8:13=A0am, "kvrajasekar" <rajas_kvr...@yahoo.co.in> wrote: > > > > > Hi, > > > > > Can anyone guide me to create a sine lookup table according to the ad=
c
> > > value.I am new to PIC.so plz help me. > > > > > I am designin a UPS control with PID.here sine wave is generated acco=
rding
> > > 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..... > > > > I just used Excel to do it. > > > > JM >=20 > Hi Mr.JM, >=20 > can you please help me to create sine lookup table using excel.I dont > know how to create in excel.
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 | paul@pcserviceselectronics.co.uk <http://www.pcserviceselectronics.co.uk/> PC Services <http://www.pcserviceselectronics.co.uk/fonts/> Timing Diagram Font <http://www.gnuh8.org.uk/> GNU H8 - compiler & Renesas H8/H8S/H8 Tiny <http://www.badweb.org.uk/> For those web sites you hate

Memfault Beyond the Launch