In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Cenlasoft wrote: Thanks for the info, I tried the code below and it gave me a 54.6 khz square wave signal on my scope. I will tweak it to get my 53 khz square wave. INTERRUPT NOCODE 106_000 OutPin = ~OutPin RETURNINT My questions are: 1. I will be sending the square wave to a tank circuit (coil and capacitor). LC tank circuits can produces high voltages and current. Should I put a resistor or diode to protect my sx28 pin? 2. Is there is any code I can use to keep the frequency stable? I am a beginner in the sxb. 3. I will be reading the voltage on the coil using a voltage divider and ADC0831 later. Any thoughts are appreciated. Thanks, Curtis ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=315692#m315841 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2008 (http://www.dotNetBB.com)