Rather than writing out all the EQUs try using the INC file The fuses can be set as follows: As far as I understand it, portA A/D settings are only important if you're using portA. We're not so it doesn't matter. I've trimmed the code a bit. This *should* work if you paste it into MPLAB and adjust the tabs :) include "p16f877.inc" list p=16f877 __CONFIG _CP_OFF & _DEBUG_OFF & _WRT_ENABLE_OFF & _CPD_OFF & _LVP_OFF & _BODEN_OFF & _PWRTE_OFF & _WDT_OFF & _RC_OSC ;-----= PROGRAM =------------------------------------------------------- bcf STATUS, RP1 ; into page 1 bsf STATUS,RP0 ; movlw b'00000000' ; set port B to output movwf TRISB bcf STATUS,RP0 ; then back to page 0 start clrf PORTB ; make sure portB is off loop incf PORTB,F nop nop nop nop goto loop END -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body