Page 1 of 1

Electronic Switch

Posted: Wed Jul 02, 2008 3:20 pm
by kirstom14
I want to select between 3 types of waveforms: a square wave, a triangular wave and a sine wave. Then the selection must be the output.
Can I use a PIC to do so, as when I tried it, I noticed a change in frequency but the output was always a square wave type.
I want to use it as a sort of electronic switch. Or it is a better idea to just use an analogue switch, like a multiplexor???

Thanks in advanvce

Re: Electronic Switch

Posted: Wed Jul 02, 2008 4:48 pm
by goldwingers
You will always get a square wave out of a digital chip, there are chips out there that will produce the waves your asking about.


Regards
Ian

Re: Electronic Switch

Posted: Wed Jul 02, 2008 5:15 pm
by Benj
Hello

You could always use a PWM output with a capacitor between the PWM output and ground. This will act as a digital to analogue converter of sorts and allow you to output analogue signals.

Re: Electronic Switch

Posted: Thu Jul 03, 2008 7:15 am
by Steve
Or use a D2A chip (or even a simple resistor-ladder arrangement).