In SX Microcontrollers, SX/B Compiler and SX-Key Tool, JonnyMac wrote: Hmmm..... I wrote that program and never had any problem with it. My understanding is that the comparator output bit is written directly to the RB.0 pin, regardless of the state of the TRIS register, and the the demo program for COMPARE (in the help file) seems to bear this out. When mode 1 is used (comparator output enabled) the LED lights, even though RB.0 was not specifically set into output mode. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=234186#m234455 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)