Just a question of my own - when should you use EQU or CONSTANT as I thought they both provide a constant value. How do you know the if the pin is not been pulled up? What have you got connected to the pin? ************************************************* Roy Hopkins :-) rdhopkins@ihug.co.nz ************************************************* --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.590 / Virus Database: 373 - Release Date: 16/02/2004 -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.