The /OUTBIT declaration gives the name LED1 to port B bit 0, and defines a >bunch of MPASM macros and string substitutions accordingly. The "n" in the >declaration indicates negative logic, meaning the "ON" case is logic low >and >"OFF" is logic high (LED connected with series resistor to Vdd for >example). >SET_LED1_ON and SET_LED1_OFF are MPASM macros defined in the expansion of >/OUTBIT. These set the bank as appropriate (using my DBANKIF macro, of >course) and then set the pin high or low according to the desired on or off >state. On PICs with LAT registers, SET_LED1_ON and SET_LED1_OFF will write >to LAT instead of PORT. Oww, I do like that enhancement to the macros. Thanks Olin. Haven't gone investigating yet, but is there a similar way of setting up the input sense on the /INBIT macro, and testing if off or on? -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist