List P=PIC18F45J10
#include "P18F45J10.INC"
config DEBUG = OFF
config XINST = OFF
config STVREN = ON ; Stack Overflow/Underflow Reset = encendido
config WDTEN = OFF ; Watchdog apagado
config CP0 = OFF ; Code protection deshabilitados
config FCMEN = OFF ; fail safe clock monitor
config IESO = OFF
config FOSC2 = ON
config FOSC = HS ; Osc section bits
config WDTPS = 1
config CCP2MX = DEFAULT
ORG 0000H
GOTO INICIO
ORG 0100H
INICIO
MOVLW 0xFF
MOVWF BSR
MOVLW B'00000000'
MOVWF OSCCON
movlw b'00000000' ;PLLen OFF
movwf OSCTUNE
MOVLW B'01000000'
MOVWF TRISB
BSF LATB,0
BSF LATB,1
BSF LATB,2
BSF LATB,3
BSF LATB,4
BSF LATB,5
LOOP:
goto LOOP
END