3 phase from func.gen. IC

--
And how, exactly, would you do that over a 10:1 change in frequency?

JF
Reply to
John Fields
Loading thread data ...

I've always been thinking. The mentally incapacitated, usually don't notice.

Don't fret, it'll probably take you a while to get this.

Reply to
Jamie

Never made a variable frequency generator with a uC before?

it's very easy. Look at DDS technology. Just an old idea with a new name on it and some alterations to make it possible for a wide range of output.

With 20 Mhz uC's you can get 1khz sine waves via pwm with no problem into a padded network that is unity buffered.

Even the slower ones can do that. Math isn't a problem, I just load a data table with the integral coefficients to index into, for fast computations of the PWM duty cycle.

And I have made a 3 phase 60 Hz reference generator with a PLL that did a 12 cycle latency sample. This was to replace an obsolete chip. (via an older generation PIC). The output wave form looked clean....

btw, there are some external components needed to polish this off, naturally. And if memory serves, I think microchip has newer uC's that makes this even easier now.

Have a good day..

Reply to
Jamie

=20

=20

Nothing at all. However average engineers find it difficult to maintain=20 proper phase relationships and maintain stable amplitude versus = frequency.

Reply to
JosephKK

Yawn. You're as stupid as dimbulb. You'll never get that.

--
Lead free solder is Belgium's version of 'Hold my beer and watch this!'
Reply to
Michael A. Terrell

--
Heh...

One of the first ones I ever made was using the 6502 in a Commodore 64
and a light pen to translate the amplitude variations on the face of the
monitor into musical tones as the light pen was moved around the screen.
Reply to
John Fields

My favorite phrase since my MECL days... "Speed Kills" :-) ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
      The only thing bipartisan in this country is hypocrisy
Reply to
Jim Thompson

I usually think of a DDS sinewave lookup table as being, well, sines, but you could just load the table with the PWM of the sines. A 20 MHz CPU - especially an ARM - doing 32-bit math could probably do 3-phase sines up to a couple hundred KHz with milli-Hz frequency resolution.

John

Reply to
John Larkin

Yes, he and JT are unusually vulgar today. I figure they were cuddling for warmth and the shawl fell off their knees.

John

Reply to
John Larkin

Ah, but you missed the whole point: PICs don't *have* DACs. To do it by PWM, you need big clocks.

Have you not noticed Jan's entire exploration of PICs? "How much can you do with a PIC and a minimum of support hardware?" DACs are support hardware, not internal, so they are excluded as much as possible.

Some hardware implementation of a count-and-compare PWM generator or sigma-delta DAC, locally PLL'd to some much higher clock (like 256MHz), and controlled by a microcontroller at much lower rates (4MHz would be enough), would be suitable. Alas, they don't make these, nor do they make PICs (or AVRs) with [parallel] DACs inside, so you're SOL as far as running the core at big MHz. The alternative is finding a uC which *does* have a DAC inside, but that directly violates the thesis: use a *PIC*.

Tim

--
Deep Friar: a very philosophical monk.
Website: http://webpages.charter.net/dawill/tmoranwms
Reply to
Tim Williams

Whatsa matter, John, can't you see reality?... You're a prissy-panted asshole. ...Jim Thompson

--
| James E.Thompson, CTO                            |    mens     |
| Analog Innovations, Inc.                         |     et      |
| Analog/Mixed-Signal ASIC's and Discrete Systems  |    manus    |
| Phoenix, Arizona  85048    Skype: Contacts Only  |             |
| Voice:(480)460-2350  Fax: Available upon request |  Brass Rat  |
| E-mail Icon at http://www.analog-innovations.com |    1962     |
             
The first sign of senility is persistently trying to be an asshole

The second sign of senility is touting your company's wonderful
circuit designs as your own, while posting amateur crap on S.E.D

The third sign is acting like Polly Prissypants :-)
Reply to
Jim Thompson

Professional courtesy response, I presume ?

My my, what vulgarity out of a prestige young man, like yourself.

I like your social candor, it has some of the most explicit, unique, qualities.

Have a good day and may your plasma eruptions be many..

Reply to
Jamie

PICs are mostly antiques. One of my guys is working with an eval board that has a sub-$1 ARM processor on board, with enough flash, ram, and i/o stuff to be useful. It could easily do DDS with 1-bit (software delta-sigma) DAC outputs at KHz sine wave rates.

John

Reply to
John Larkin

The ARM cortex-m3 from st has 2 built-in DACs, that can both be driven using the DMA engine, with no software intervention at all other than setup (the DMA can fetch repeatedly from a table and loop back to the start). Doesn't do DDS, but doing it in software would be easy.

The one I've been playing with recently is about $5 in quantities. 512k flash, 64k ram, ADC, DAC, scads of timers, DMA engines that can interface with most of the internal devices, etc. Nice debug support using jtag.

You are right, PICs are antiques. Even their new 32 bit chip is an antique; it uses the MIPS core I was programming 12 years ago.

Regards, Bob Monsen

Reply to
Bob Monsen

If you had, say, a 100 or 200 KHz periodic interrupt, the code to do

2-phase DDS and two multiplies for amplitude control would run in microseconds, not burning much of the CPU. That would get you an audio-range polyphase sine generator (or other waveforms if you switch lookup tables) with microhertz frequency resolution, quality limited only by the dacs. A few external 12-16 bit dacs would be even better.

NXP and Marvell have some screamer ARMs with cache, ram, dram controllers, all sorts of peripherials, and 100M or Gbit MACs. Cheap.

John

Reply to
John Larkin

Google "Scott Tee Transformer" and then figure out how to generate a sine wave in quadrature to the reference.

--
Paul Hovnanian     mailto:Paul@Hovnanian.com
------------------------------------------------------------------
definition: recursion; see recursion.
Reply to
Paul Hovnanian P.E.

formatting link

--
Many thanks,

Don Lancaster                          voice phone: (928)428-4073
Synergetics   3860 West First Street   Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml   email: don@tinaja.com

Please visit my GURU's LAIR web site at http://www.tinaja.com
Reply to
Don Lancaster

From my reply in the same thread,3/11/2010 03:03PM:

"Once you've got two sine waves in quadrature, getting three phase is simple. Just use a Scott-T transformer. These were once used for power applications, but since two phase power is almost extinct, they are now used for connecting servos that use synchros to those with resolvers."

formatting link

Glad to see another old time power guy! :-)

--
VWWall, P.E.
Reply to
VWWall

--
72 and counting...;)
Reply to
John Fields

--- Geez, John, one of us finding you wrong and the other agreeing with that finding doesn't represent "cuddling" in my book, just statement of, and agreement on, objective fact.

Of course being found wrong is "mea maxima culpa" when viewed through your deranged set of values and can't be allowed to coexist with what you hold precious; your infallibility, Mr. "Infinity only means something very large.", so you'll try to do whatever you can to fool all of the people all of the time even though all you do is fool yourself since you think you've gotten everyone to goose-step along with you.

JF

Reply to
John Fields

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.