ASM Template

Acciones de Documento
  • Marcadores (bookmarks)
Autores: Guillermo Carpintero, Marta Ruiz

PR-F-001_ASM_template.asm — Plain Text, 1 kB (1880 bytes)

Contenido del Archivo

;    Filename:                                               
;    Date:                                                                   
;    File Version:                                                           
;                                                                            
;    Author:                                                                 
;    Company:                                                                
;                                                                            
;	
;*****************************************************************
;                                                                            
;    Files required:                                                         
;                                                                            
;********************************************************************
	LIST P=18F2525			;directive to define processor
	#include <P18F2525.INC>;	;processor specific variable

;******************************************************************************
;Configuration bits
;   Oscillator Selection:
    CONFIG  OSC = HS             ; alta velocidad del PIC
    CONFIG  WDT = OFF

;*********************************************************************
;Etiquetas
label		equ	expr	


;*********************************************************************
;Reset vector
; This code will start executing when a reset occurs.

		ORG	0x0000
		goto	Main	;go to start of main code

		ORG	0x0008
		retfie   	;go to high priority interrupt routine

		ORG	0x0018
		retfie		;go to low priority interrupt routine

Main:
;Configura PIC para utilizar los pines del puerto A como E/S
		MOVF	ADCON1,W,A
		IORLW	0Fh
		MOVWF	ADCON1

		CLRF	TRISA   ; TRISA para que PORTA, todo outputs


PPAL:

		goto PPAL

 END
Reutilizar Curso
Descargar este curso