; USES MACRO "PUERTOS" TO CONFIGURE LEDS
; MICROSWITCHES AND RELAY
; READS 4 MICROSWITCHES SW1..SW4 AND PUTS
; THAT SAME VALUE IN LEDS RB0..RB3
; EXTERNAL CRYSTAL IS 20 MHZ BUT EFFECTIVE
; FREQUENCY IS 48 MHZ DUE TO PLL MULTIPLIERS 
; INSTRUCTION CYCLE IS 83.3 NANOSECONDS
; TO SIMULATE PROGRAM IN MPLAB, ORG=0
; PARA EXECUTE PROGRAM IN BOLT, ORG=0x800

	processor 18F2550
	include	  <p18F2550.inc>
	include	 "KEYBOLT2.inc"


CLAVECIN EQU 88H		;LOCALIDAD PARA MACRO BOLTSWITCH
	 
		org 	0x800	;MODIFIQUE A ORG=0 PARA SIMULAR EN MPLAB
		PUERTOS
;FIN DE INICIALIZACION DE PUERTOS
repite:	BOLTSWITCH
		goto repite
		end