In SX Microcontrollers, SX/B Compiler and SX-Key Tool, Beau Schwabe wrote: Günther, Bean, Thanks....and Oops. Originally I used the TOGGLE command from the SX/B.... TOGGLE RB.0 This method did not provide a "nice" number of clock cycles to easily calculate the oscillator frequency. Something handy when using an RC oscillator and you don't want to introduce parasitics to the RC oscillator circuit to measure the frequency. So I "quick" put together an assembly routine to do the same thing as TOGGLE but slightly faster. BTW) The setb and clrb work just fine. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=89554#m89809 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2005 (http://www.dotNetBB.com)