In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Beau Schwabe wrote: Anyone have some clever code to generate a pseudo sine wave? Eventually this will be implemented in a frequency sweep application for doing Bode plots. (Bean, your audio generation project gave me an ide for this.) Right now I have a scheme that requires two I/O pins that are "flipped" at the same time, with one lagging the other by 60 Deg. [code] 1K A >----/\/\----o | 0----> Out 1K | B >----/\/\----o A B SinePhase 0 1 0 0 0 60 0 0 120 1 0 180 1 1 240 1 1 300 [/code] ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=108186 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)