You can generate a sine wave using PWM and a technique called direct digital synthesis. What frequency do you need? Bob Ammerman RAm Systems (contract development of high performance, high function, low-level software) ----- Original Message ----- From: "Freddie Leaf" To: Sent: Thursday, May 17, 2001 4:47 PM Subject: [EE]: Square Wave Pulse Converted to Sine Wave Pulse > Hi PICList, > > I need to generate a sine wave signal for input to an existing electronic > circuit. The signal will vary in frequency as a function of some other inputs > to a 16F877. I'm thinking I could generate a 0V to 5V output pulse with the > PIC but need a circuit to convert this signal to a +/- sine wave. The > peak-to-peak voltage has to be a least 2.0V. > > I've experimented with a cap in series with the PIC output, and a resistor to > ground. This generates a nice positive and negative spike with clean zero > crossings but this is not good enough. The device I am sending the signal to > is also looking at the slew rate of the signal. I need a relatively genuine > sine wave. > > Thanks in advance if you have an ideas. > > Freddie. > > > ===== > Best Regards, > "If it can't be done with a PIC, it can't be done :+)" > > __________________________________________________ > Do You Yahoo!? > Yahoo! Auctions - buy the things you want at great prices > http://auctions.yahoo.com/ > > -- > http://www.piclist.com hint: PICList Posts must start with ONE topic: > [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads > > -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads