Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
19Activity
0 of .
Results for:
No results containing your search query
P. 1
Manejo de Displays con PIC16F887

Manejo de Displays con PIC16F887

Ratings: (0)|Views: 1,495 |Likes:
Published by api-27527336

More info:

Published by: api-27527336 on Dec 04, 2009
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

C:\proyectos\asembler\Puertos_16F887\Display_887.asm
domingo, 13 de septiembre de 2009 12:48
TITLE"Manejo de dos displays de 7 segmentos"
SUBTITLE"Configuraci\u00f3n de puertos del PIC16F887 "
PROCESSOR16F887
INCLUDE
P16F887.INC
;Palabra de configuracion OSCILADOR XT
__CONFIG _CONFIG1,_LVP_OFF&_FCMEN_OFF&_IESO_OFF&_BOR_OFF&_CPD_OFF&_CP_OFF&
_MCLRE_OFF&_PWRTE_ON&_WDT_OFF&_INTRC_OSC_NOCLKOUT
__CONFIG _CONFIG2,_WRT_OFF&_BOR21V
;Definici\u00f3n de Entradas/Salidas
#DEFINE
DIS_UNI
PORTA,1
;Activar transistor NPN para habilitar display de las unidades
#DEFINE
DIS_DEC
PORTA,2
;Activar transistor NPN para habilitar display de las decenas

CBLOCK0X20
AUXA,AUXB,AUXC
ENDC

;*******************************************************************************************
ORG
0X00
GOTO
PPAL
;Configuraci\u00f3n de registros del PIC16F887
CONFIG_PIC
; BANCO 4
BANKSEL
ANSEL
CLRF
ANSEL
CLRF
ANSELH
; BANCO 1
BANKSEL
TRISA
MOVLW
B'11111001'
MOVWF
TRISA
MOVLW
B'00000001'
MOVWF
TRISB
MOVLW
B'01101001'
MOVWF
OSCCON
; BANCO 0
BANKSEL
PORTA
CLRF
PORTB
RETURN
;********************************************************************************
;Rutina de retardo para visualizaci\u00f3n
RETARDO
MOVLW
.1
MOVWF
AUXA
RETAR3
MOVLW
.2
MOVWF
AUXB
RETAR2
MOVLW
.100
MOVWF
AUXC
RETAR1
DECFSZ
AUXC,F
GOTO
RETAR1
DECFSZ
AUXB,F
-1-

Activity (19)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
Edwin Orellana liked this
Agustin Dioca liked this
Pablo Santana liked this
hle5457 liked this
hle5457 liked this
huuthobacninh liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->