list p=16f628 include "p16f628.inc" __CONFIG _CP_OFF & _DATA_CP_OFF & _BODEN_OFF & _MCLRE_OFF & _PWRTE_OFF & _WDT_OFF & _INTRC_OSC_NOCLKOUT & _LVP_ON movlw 0x0 bsf STATUS, RP0 ; Bank 1 movwf TRISB ; PortB all pins output bcf STATUS, RP0; Back to Bank 0 bsf PORTB, 0 infinite: goto infinite end