2Motores18F4550

Páginas: 8 (1973 palabras) Publicado: 11 de noviembre de 2012
;------------------------------------------------------------
; Código assembler; Proyecto: 2motor
; Autor:
; Fecha: 20/07/2012
; PIC: 18F4550
; Velocidad de reloj: 10 Mhz
; Descripcion:
;------------------------------------------------------------


LIST P=PIC18F4550


_PLLDIV_1 equ 0xF8
_CPUDIV_OSC1_PLL2 equ 0xE7
_USBDIV_1 equ 0xDF
_FOSC_HSequ 0xFC
_FCMEN_OFF equ 0xBF
_IESO_OFF equ 0x7F
_PWRT_ON equ 0xFE
_BOR_OFF equ 0xF9
_BORV_0 equ 0xE7
_VREGEN_ON equ 0xFF
_WDT_OFF equ 0xFE
_WDTPS_1 equ 0xE1
_MCLRE_ON equ 0xFF
_LPT1OSC_OFF equ 0xFB
_PBADEN_OFF equ 0xFD
_CCP2MX_OFFequ 0xFE
_LPT1OSC_OFF equ 0xFB
_STVREN_OFF equ 0xFE
_LVP_OFF equ 0xFB
_ICPRT_OFF equ 0xDF
_XINST_OFF equ 0xBF
_DEBUG_OFF equ 0xFF
_CP0_OFF equ 0xFF
_CP1_OFF equ 0xFF
_CP2_OFF equ 0xFF
_CP3_OFF equ 0xFF
_CPB_OFF equ 0xFF
_CPD_OFFequ 0xFF
_WRT0_OFF equ 0xFF
_WRT1_OFF equ 0xFF
_WRT2_OFF equ 0xFF
_WRT3_OFF equ 0xFF
_WRTB_OFF equ 0xFF
_WRTC_OFF equ 0xFF
_WRTD_OFF equ 0xFF
_EBTR0_OFF equ 0xFF
_EBTR1_OFF equ 0xFF
_EBTR2_OFF equ 0xFF
_EBTR3_OFF equ 0xFF
_EBTRB_OFFequ 0xFF
_config1l equ 0x300000
_config1h equ 0x300001
_config2l equ 0x300002
_config2h equ 0x300003
_config3h equ 0x300005
_config4l equ 0x300006
_config5l equ 0x300008
_config5h equ 0x300009
_config6l equ 0x30000a
_config6h equ 0x30000b
_config7lequ 0x30000c
_config7h equ 0x30000d

__config _config1l, _PLLDIV_1 & _CPUDIV_OSC1_PLL2 & _USBDIV_1
__config _config1h, _FOSC_HS & _FCMEN_OFF & _IESO_OFF
__config _config2l, _PWRT_ON & _BOR_OFF & _BORV_0 & _VREGEN_ON
__config _config2h, _WDT_OFF & _WDTPS_1
__config _config3h, _MCLRE_ON & _LPT1OSC_OFF & _PBADEN_OFF & _CCP2MX_OFF
__config _config4l, _STVREN_OFF &_LVP_OFF & _ICPRT_OFF & _XINST_OFF & _DEBUG_OFF
__config _config5l, _CP0_OFF & _CP1_OFF & _CP2_OFF & _CP3_OFF
__config _config5h, _CPB_OFF & _CPD_OFF
__config _config6l, _WRT0_OFF & _WRT1_OFF & _WRT2_OFF & _WRT3_OFF
__config _config6h, _WRTB_OFF & _WRTC_OFF & _WRTD_OFF
__config _config7l, _EBTR0_OFF & _EBTR1_OFF & _EBTR2_OFF & _EBTR3_OFF
__config _config7h, _EBTRB_OFF;------------------------------------------------------------
; Declaración de Registros
;------------------------------------------------------------
w equ 0x0000
_np_temp3 equ 0x0000
alto equ 0x0001
bajo equ 0x0002
_np_temp1 equ 0x0003
_np_temp2 equ 0x0004
aa equ 0x0005
bbequ 0x0006
_np_temp4 equ 0x0007
_np_timers equ 0x0008
_np_t2_ini equ 0x0009
_np_t2_cint_l equ 0x000a
_np_t2_cint_h equ 0x000b
_np_t2_cint1_l equ 0x000c
_np_t2_cint1_h equ 0x000d
_np_temp5 equ 0x000e
_np_temp6 equ 0x000f
_np_temp7 equ 0x0010
_np_temp8equ 0x0011
_np_temp9 equ 0x0012
_np_temp10 equ 0x0013
_np_temp11 equ 0x0014
_np_temp12 equ 0x0015
_np_temp13 equ 0x0016
_np_temp14 equ 0x0017
_np_temp15 equ 0x0018
_np_temp16 equ 0x0019
porta equ 0x0f80
portb equ 0x0f81
portc equ...
Leer documento completo

Regístrate para leer el documento completo.

Conviértase en miembro formal de Buenas Tareas

INSCRÍBETE - ES GRATIS