Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
“ESPE-L”
Integrante:
Willam Tumbaco.
Alex Chiliquinga
Carrera:
Ing. Electrónica e instrumentación
Nivel: quinto Paralelo: “A”
Asignatura:
Microcontroladores
INICIO
Conf. LCD/,PB
Entrada análoga A0
2
ACTIVAR
CONVERSOR
1 NO
Conversi
NO
ón 1
r
VISUALIZAR eLCD (rest1)
s
tr
1
e
Ret 0.5 segundos
rs
e
t
s1
tr
1
e2
s
t
1
Ret 0,7 segundos
RA RA+ 1
1 SI RA>1F NO 2
Sub
INTERRUPCION
LCD LENIN CH
INTCON,1 0
REGRESO
ESPECIAL
CÓDIGO:
Define LCD_DREG PORTC
define LCD_DBIT 4
define LCD_RSREG PORTC
define LCD_RSBIT 0
define LCD_EREG PORTC
define LCD_EBIT 1
ON INTERRUPT GOTO INTE
INTCON =$90
TRISB.0=1
contador var byte
limpiar:
contador=2
lcdout $fe,1
ciclo:
lcdout$fe,2
lcdout "CONTADOR=",HEX contador
pause 400
contador=contador+1
if contador>$A then limpiar
goto ciclo
end
DISABLE INTERRUPT
INTE
lcdout $fe,1
lcdout "WILLAM"
lcdout $fe,$C0
lcdout "ALEX"
PAUSE 1000
lcdout $fe,1
INTCON.1=0
RESUME
ENABLE INTERRUPT
SIMULACIÓN UTILIZANDO PROTEUS