In SX Microcontrollers, SX/B Compiler and SX-Key Tool, pljack wrote: [quote="Bean (Hitt Consulting)"]The easy way is to just use the "INTERRUPT rate" syntax. If you want your interrupt to occur 25600 times a second just do: INTERRUPT 25600 ' Your code here RETURNINT The SX/B compiler will automatically enable interrupts and set the prescaler and the RETURNINT value for you. Bean.[/quote] What! How did I miss that. So to set an interrupt to 60 Hertz I would just type INTERRUPT 60? ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=153024#m154525 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)