SlideShare a Scribd company logo
10/06/2015
ESCUELA SUPERIOR POLITÉCNICA DEL LITORAL
TAREA 9: Uso de tablas y retardos
INTEGRANTES:
Gabriel Andrade
Niel Mayor Fuentes
Escarleth Rueda
TAREA DE MICROCONTROLADORES #9
 CODIGO
;*********************************************************************
LIST p=16F887 ;Tipo de microcontrolador
INCLUDE P16F887.INC ;Define los SFRs y bits del
;P16F887
__CONFIG _CONFIG1, _CP_OFF&_WDT_OFF&_XT_OSC
;Setea parámetros de
;configuración
errorlevel -302 ;Deshabilita mensajes de
;advertencia por cambio
;bancos
;INICIO DEL PROGRAMA
org 0x00 ; Address of the first program instruction
;DECLARACION DE VARIABLES
cblock 0x20
counter1
counter2
endc
;SETEO DE PUERTOS
banksel TRISB ; Selects bank containing register TRISB
clrf TRISB ; All port B pins are configured as outputs
banksel ANSEL
clrf ANSEL
clrf ANSELH
banksel PORTB ; Selects bank containing register PORTB
;INICIALIZACION DE VARIABLES
clrf PORTB
;DESARROLLO DEL PROGRAMA
LOOP
movlw 0
call TABLA
movwf PORTB
TAREA DE MICROCONTROLADORES #9
call RETARDO
movlw 1
call TABLA
movwf PORTB
call RETARDO
movlw 2
call TABLA
movwf PORTB
call RETARDO
;**********************IMPLEMWENTACIÓN DE LA TABLA***********************
TABLA
addwf PCL,1
retlw H'7D'
retlw H'79'
retlw H'71'
;**********************IMPLEMWENTACIÓN DEL RETARDO (Delay)***********************
RETARDO
clrf counter2 ; Clears variable "counter2"
loop1
clrf counter1 ; Clears variable "counter1"
loop2
decfsz counter1 ; Decrements variable "counter1" by 1
goto loop2 ; Result is not 0. Go to label loop2
decfsz counter2 ; Decrements variable "counter2" by 1
goto loop1 ; Result is not 0. Go to lab loop1
return ; Return from subroutine "DELAY"
goto LOOP
end ; End of program;
************************************************************************
TAREA DE MICROCONTROLADORES #9
 FUNCIONAMIENTO EN PROTEUS
PRIMERA LETRA
SEGUNDA LETRA
TAREA DE MICROCONTROLADORES #9
TERCERA LETRA

More Related Content

Viewers also liked

Limitación a la responsabilidad de proveedores de servicios por infracciones ...
Limitación a la responsabilidad de proveedores de servicios por infracciones ...Limitación a la responsabilidad de proveedores de servicios por infracciones ...
Limitación a la responsabilidad de proveedores de servicios por infracciones ...
COMEXpresentacion
 
Amistad pura
Amistad puraAmistad pura
Amistad pura
denitza4
 
Mocion upyd sobre transparencia real
Mocion upyd sobre transparencia realMocion upyd sobre transparencia real
Mocion upyd sobre transparencia real
UPyD Parla
 
Windows phone Configuraciones Basicas
Windows phone Configuraciones BasicasWindows phone Configuraciones Basicas
Windows phone Configuraciones Basicas
Danilo Cao
 
Derechos humanos
Derechos humanosDerechos humanos
Derechos humanos
Gabriel Poma Ospinal
 
Anualidaddes simples practica
Anualidaddes simples practicaAnualidaddes simples practica
Anualidaddes simples practica
Edgar Sanchez
 
Tabla recomendacionesaceite
Tabla recomendacionesaceiteTabla recomendacionesaceite
Tabla recomendacionesaceite
Lubricantes Abamex
 
2 el amplificador de audio
2 el amplificador de audio2 el amplificador de audio
2 el amplificador de audio
Gustavo Jiménez
 
8 orientacions per TRIAR ESCOLA
8 orientacions per TRIAR ESCOLA8 orientacions per TRIAR ESCOLA
8 orientacions per TRIAR ESCOLA
Fundació Jaume Bofill
 
Ojos azules 2
Ojos azules 2Ojos azules 2
Ojos azules 2
Elizabeth Lavanchy
 
Ecologia apartados
Ecologia apartadosEcologia apartados
Ecologia apartados
katgr
 
Tema 10 dar informacion personal, rellenar formularios sencillos
Tema 10   dar informacion personal, rellenar formularios sencillosTema 10   dar informacion personal, rellenar formularios sencillos
Tema 10 dar informacion personal, rellenar formularios sencillosaulaacademia
 
Los once cisnes
Los once cisnesLos once cisnes
Los once cisnes
prsmariela
 
Jiovana deber
Jiovana deberJiovana deber
Jiovana deber
jiovana elizabeth
 
Los virus y_antivirus
Los virus y_antivirusLos virus y_antivirus
Los virus y_antivirus
virusyantivirus
 
Comunicación social periodismo
Comunicación social periodismoComunicación social periodismo
Comunicación social periodismo
brendacalderon18
 
Campamento cortes
Campamento cortesCampamento cortes
Campamento cortes
animagines
 
WEBINAR. Desafecció i educació. Begoña Gash
WEBINAR. Desafecció i educació. Begoña GashWEBINAR. Desafecció i educació. Begoña Gash
WEBINAR. Desafecció i educació. Begoña Gash
Fundació Jaume Bofill
 
Nucleo general uno primer rparcial
Nucleo general uno primer rparcialNucleo general uno primer rparcial
Nucleo general uno primer rparcial
Alan Misael Tovar Romero
 
Novela el leon de comarre(nucleo general uno primer rparcial)
Novela el leon de comarre(nucleo general uno primer rparcial)Novela el leon de comarre(nucleo general uno primer rparcial)
Novela el leon de comarre(nucleo general uno primer rparcial)
Alan Misael Tovar Romero
 

Viewers also liked (20)

Limitación a la responsabilidad de proveedores de servicios por infracciones ...
Limitación a la responsabilidad de proveedores de servicios por infracciones ...Limitación a la responsabilidad de proveedores de servicios por infracciones ...
Limitación a la responsabilidad de proveedores de servicios por infracciones ...
 
Amistad pura
Amistad puraAmistad pura
Amistad pura
 
Mocion upyd sobre transparencia real
Mocion upyd sobre transparencia realMocion upyd sobre transparencia real
Mocion upyd sobre transparencia real
 
Windows phone Configuraciones Basicas
Windows phone Configuraciones BasicasWindows phone Configuraciones Basicas
Windows phone Configuraciones Basicas
 
Derechos humanos
Derechos humanosDerechos humanos
Derechos humanos
 
Anualidaddes simples practica
Anualidaddes simples practicaAnualidaddes simples practica
Anualidaddes simples practica
 
Tabla recomendacionesaceite
Tabla recomendacionesaceiteTabla recomendacionesaceite
Tabla recomendacionesaceite
 
2 el amplificador de audio
2 el amplificador de audio2 el amplificador de audio
2 el amplificador de audio
 
8 orientacions per TRIAR ESCOLA
8 orientacions per TRIAR ESCOLA8 orientacions per TRIAR ESCOLA
8 orientacions per TRIAR ESCOLA
 
Ojos azules 2
Ojos azules 2Ojos azules 2
Ojos azules 2
 
Ecologia apartados
Ecologia apartadosEcologia apartados
Ecologia apartados
 
Tema 10 dar informacion personal, rellenar formularios sencillos
Tema 10   dar informacion personal, rellenar formularios sencillosTema 10   dar informacion personal, rellenar formularios sencillos
Tema 10 dar informacion personal, rellenar formularios sencillos
 
Los once cisnes
Los once cisnesLos once cisnes
Los once cisnes
 
Jiovana deber
Jiovana deberJiovana deber
Jiovana deber
 
Los virus y_antivirus
Los virus y_antivirusLos virus y_antivirus
Los virus y_antivirus
 
Comunicación social periodismo
Comunicación social periodismoComunicación social periodismo
Comunicación social periodismo
 
Campamento cortes
Campamento cortesCampamento cortes
Campamento cortes
 
WEBINAR. Desafecció i educació. Begoña Gash
WEBINAR. Desafecció i educació. Begoña GashWEBINAR. Desafecció i educació. Begoña Gash
WEBINAR. Desafecció i educació. Begoña Gash
 
Nucleo general uno primer rparcial
Nucleo general uno primer rparcialNucleo general uno primer rparcial
Nucleo general uno primer rparcial
 
Novela el leon de comarre(nucleo general uno primer rparcial)
Novela el leon de comarre(nucleo general uno primer rparcial)Novela el leon de comarre(nucleo general uno primer rparcial)
Novela el leon de comarre(nucleo general uno primer rparcial)
 

Similar to Uso de tablas y retardos

1st experiment ee 3214
1st experiment ee 32141st experiment ee 3214
1st experiment ee 3214
AponShafiul
 
ZiLOG Universal Infrared Remote Reference Design
ZiLOG Universal Infrared Remote Reference DesignZiLOG Universal Infrared Remote Reference Design
ZiLOG Universal Infrared Remote Reference Design
Diana Laboy-Rush
 
89 c2051
89 c205189 c2051
89 c2051
Nitin Joshi
 
At89 c2051 (3)
At89 c2051 (3)At89 c2051 (3)
At89 c2051 (3)
angiey y
 
Sinumerik 802 s c base line turning operation programming
Sinumerik 802 s c base line turning operation programmingSinumerik 802 s c base line turning operation programming
Sinumerik 802 s c base line turning operation programming
Raul Victor Martinez
 
[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)
[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)
[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)
Simen Li
 
Pic16f84
Pic16f84Pic16f84
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.ppt
IlaiyarajaS1
 
Embedded Systems Project 3rd Year
Embedded Systems Project 3rd YearEmbedded Systems Project 3rd Year
Embedded Systems Project 3rd Year
Andrew Kozik
 
Danfoss vlt fc 101 programming guide
Danfoss vlt fc 101 programming guideDanfoss vlt fc 101 programming guide
Danfoss vlt fc 101 programming guide
Anton Dlabač
 
MicroLab2 2011.pptx
MicroLab2 2011.pptxMicroLab2 2011.pptx
MicroLab2 2011.pptx
HebaEng
 
Lcd n PIC16F
Lcd n PIC16FLcd n PIC16F
Lcd n PIC16F
hairilfaiz86
 
P89v51rd2
P89v51rd2P89v51rd2
P89v51rd2
Jagadeesh Kumar
 
PCF8583.pdf
PCF8583.pdfPCF8583.pdf
PCF8583.pdf
EFran9
 
Experiment 16 x2 parallel lcd
Experiment   16 x2 parallel lcdExperiment   16 x2 parallel lcd
Experiment 16 x2 parallel lcd
Prashanta Chowdhury
 
Interactive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseInteractive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr response
eSAT Publishing House
 
Interactive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseInteractive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr response
eSAT Journals
 
Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...
Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...
Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...
fjjkefkksem
 
Program, Code of Program and Screen Shot of Output (UNIVERSAL DRIVER USING µ...
Program, Code of Program and  Screen Shot of Output (UNIVERSAL DRIVER USING µ...Program, Code of Program and  Screen Shot of Output (UNIVERSAL DRIVER USING µ...
Program, Code of Program and Screen Shot of Output (UNIVERSAL DRIVER USING µ...
Er. Ashish Pandey
 
P sim.val
P sim.valP sim.val
P sim.val
Corneliu Modilca
 

Similar to Uso de tablas y retardos (20)

1st experiment ee 3214
1st experiment ee 32141st experiment ee 3214
1st experiment ee 3214
 
ZiLOG Universal Infrared Remote Reference Design
ZiLOG Universal Infrared Remote Reference DesignZiLOG Universal Infrared Remote Reference Design
ZiLOG Universal Infrared Remote Reference Design
 
89 c2051
89 c205189 c2051
89 c2051
 
At89 c2051 (3)
At89 c2051 (3)At89 c2051 (3)
At89 c2051 (3)
 
Sinumerik 802 s c base line turning operation programming
Sinumerik 802 s c base line turning operation programmingSinumerik 802 s c base line turning operation programming
Sinumerik 802 s c base line turning operation programming
 
[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)
[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)
[嵌入式系統] MCS-51 實驗 - 使用 IAR (2)
 
Pic16f84
Pic16f84Pic16f84
Pic16f84
 
PIC16F877A C Programming.ppt
PIC16F877A C Programming.pptPIC16F877A C Programming.ppt
PIC16F877A C Programming.ppt
 
Embedded Systems Project 3rd Year
Embedded Systems Project 3rd YearEmbedded Systems Project 3rd Year
Embedded Systems Project 3rd Year
 
Danfoss vlt fc 101 programming guide
Danfoss vlt fc 101 programming guideDanfoss vlt fc 101 programming guide
Danfoss vlt fc 101 programming guide
 
MicroLab2 2011.pptx
MicroLab2 2011.pptxMicroLab2 2011.pptx
MicroLab2 2011.pptx
 
Lcd n PIC16F
Lcd n PIC16FLcd n PIC16F
Lcd n PIC16F
 
P89v51rd2
P89v51rd2P89v51rd2
P89v51rd2
 
PCF8583.pdf
PCF8583.pdfPCF8583.pdf
PCF8583.pdf
 
Experiment 16 x2 parallel lcd
Experiment   16 x2 parallel lcdExperiment   16 x2 parallel lcd
Experiment 16 x2 parallel lcd
 
Interactive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseInteractive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr response
 
Interactive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr responseInteractive irrigation system through mobile with ivr response
Interactive irrigation system through mobile with ivr response
 
Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...
Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...
Caterpillar cat 308 e2sr mini hydraulic excavator (prefix sr8) service repair...
 
Program, Code of Program and Screen Shot of Output (UNIVERSAL DRIVER USING µ...
Program, Code of Program and  Screen Shot of Output (UNIVERSAL DRIVER USING µ...Program, Code of Program and  Screen Shot of Output (UNIVERSAL DRIVER USING µ...
Program, Code of Program and Screen Shot of Output (UNIVERSAL DRIVER USING µ...
 
P sim.val
P sim.valP sim.val
P sim.val
 

Recently uploaded

Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
siemaillard
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
سمير بسيوني
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
Iris Thiele Isip-Tan
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
National Information Standards Organization (NISO)
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
giancarloi8888
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
Nguyen Thanh Tu Collection
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 

Recently uploaded (20)

Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptxPrésentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
Présentationvvvvvvvvvvvvvvvvvvvvvvvvvvvv2.pptx
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdfمصحف القراءات العشر   أعد أحرف الخلاف سمير بسيوني.pdf
مصحف القراءات العشر أعد أحرف الخلاف سمير بسيوني.pdf
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Educational Technology in the Health Sciences
Educational Technology in the Health SciencesEducational Technology in the Health Sciences
Educational Technology in the Health Sciences
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"Benner "Expanding Pathways to Publishing Careers"
Benner "Expanding Pathways to Publishing Careers"
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdfREASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
REASIGNACION 2024 UGEL CHUPACA 2024 UGEL CHUPACA.pdf
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
BÀI TẬP BỔ TRỢ TIẾNG ANH LỚP 8 - CẢ NĂM - FRIENDS PLUS - NĂM HỌC 2023-2024 (B...
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 

Uso de tablas y retardos

  • 1. 10/06/2015 ESCUELA SUPERIOR POLITÉCNICA DEL LITORAL TAREA 9: Uso de tablas y retardos INTEGRANTES: Gabriel Andrade Niel Mayor Fuentes Escarleth Rueda
  • 2. TAREA DE MICROCONTROLADORES #9  CODIGO ;********************************************************************* LIST p=16F887 ;Tipo de microcontrolador INCLUDE P16F887.INC ;Define los SFRs y bits del ;P16F887 __CONFIG _CONFIG1, _CP_OFF&_WDT_OFF&_XT_OSC ;Setea parámetros de ;configuración errorlevel -302 ;Deshabilita mensajes de ;advertencia por cambio ;bancos ;INICIO DEL PROGRAMA org 0x00 ; Address of the first program instruction ;DECLARACION DE VARIABLES cblock 0x20 counter1 counter2 endc ;SETEO DE PUERTOS banksel TRISB ; Selects bank containing register TRISB clrf TRISB ; All port B pins are configured as outputs banksel ANSEL clrf ANSEL clrf ANSELH banksel PORTB ; Selects bank containing register PORTB ;INICIALIZACION DE VARIABLES clrf PORTB ;DESARROLLO DEL PROGRAMA LOOP movlw 0 call TABLA movwf PORTB
  • 3. TAREA DE MICROCONTROLADORES #9 call RETARDO movlw 1 call TABLA movwf PORTB call RETARDO movlw 2 call TABLA movwf PORTB call RETARDO ;**********************IMPLEMWENTACIÓN DE LA TABLA*********************** TABLA addwf PCL,1 retlw H'7D' retlw H'79' retlw H'71' ;**********************IMPLEMWENTACIÓN DEL RETARDO (Delay)*********************** RETARDO clrf counter2 ; Clears variable "counter2" loop1 clrf counter1 ; Clears variable "counter1" loop2 decfsz counter1 ; Decrements variable "counter1" by 1 goto loop2 ; Result is not 0. Go to label loop2 decfsz counter2 ; Decrements variable "counter2" by 1 goto loop1 ; Result is not 0. Go to lab loop1 return ; Return from subroutine "DELAY" goto LOOP end ; End of program; ************************************************************************
  • 4. TAREA DE MICROCONTROLADORES #9  FUNCIONAMIENTO EN PROTEUS PRIMERA LETRA SEGUNDA LETRA
  • 5. TAREA DE MICROCONTROLADORES #9 TERCERA LETRA