In SX Microcontrollers, SX/B Compiler and SX-Key Tool, jdemeyer wrote: HIGH rst probably works because it tells RC.5 to be an output pin. If you added something like TRIS_C = %00000000 'all outputs near the beginning of your program (after the PLP commands, say), rst=1 might work again. The HIGH command produces seven lines of assembly because it assigns I/O direction (i.e., makes the pin an output). It could get expensive if you have a large program. By assigning your pins I/O direction at the start, you assign I/O direction once. From then on, you should be able to use rst=1 which produces a single line of assembly. Joe ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=232042#m232367 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2007 (http://www.dotNetBB.com)