In SX Microcontrollers, SX/B Compiler and SX-Key Tool, dkemppai wrote: OK, I'm having a mental block... What's the fastest way in ASM to toggle an I/O pin or register bit, knowing only the pin or bit in question. For example, RA.4 needs to be toggled every time I run a sub. What's the least amount of code to do this. I can read the state of the pin from the I/O registers or register. The pin/bit doesn't change often, but when I need to change it I need to conserve clock cycles... Also, Jitter is not a concern. Thanks, Dan ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=364760 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2009 (http://www.dotNetBB.com)