INTERRUPCIONES Introducción.

Slides:



Advertisements
Presentaciones similares
PIC 16F873 CONVERSIÓN A/D Y TRANSMISIÓN POR PUERTO SERIE
Advertisements

Equipo #3 Unidad III: ALU Efraín Corral Eduardo Castillo Elías Alarcón
A REA DE TECNOLOGIA ELECTRONICA U NIVERSIDAD DE O VIEDO LECCION 8 – LOS REGISTROS DEL MCU - 1 MEMORIA DE DATOS La memoria de datos esta distribuida en.
MICROCONTROLADORES NOCIONES BÁSICAS.
Integrantes: Moyolehuani Tatéi Temai
RESUMEN: Softmicro de 8 bits Xilinx
MICROCONTROLADORES.
TEMPORIZADORES.
Programación básica de la interfase RS232 C
MICROCONTROLADORES MICROCHIP
Introducción a los MCU´s de Motorola
Sistemas Digitales Curso 2007/2008 Departamento de Tecnología E l e c t r ó n i c a Periféricos E/S. VIA 65C22 Sistemas Digitales 2º curso Ingeniero Técnico.
Funcionamiento de una Computadora
Entrada / salida digital con ccs
PICmicro GAMA MEDIA: PIC16F87X
Lenguaje Ensamblador integrantes: Esthela Vianey Vázquez Medina No.30
Microcontroladores PIC
EL IMPERFECTO What’s the story?. “Used to” Expresses the idea that something happened repeatedly in the past.
Microcontroladores PIC16F84A.
2.2 Registro de Banderas Conjunto de bits que nos dan información sobre el estado del procesador y sobre el resultado de la última operación efectuada.
INTERRUPCIONES Y TEMPORIZADORES Programación en C para electrónica.
Stem Changing Verbs Shoe Verbs Boot Verbs.
TIMERS Modelo Básico : 2 Timers/Contadores de 16 bits (T0 y T1) Derivados: 3 Timers/Contadores de 16 bits (T0, T1 y T2) Timers: Cuentan ciclos de Máquina.
José Estay A / jea I semestre académico 2014 Computadores (TU Sistemas Computacionales) Elementos de estructura de computadores.
TIMER 1 El módulo TIMER1 así como el TIMER0 es un temporizador/contador con las siguientes características. Trabaja con 16 bits (con 2 registros de 8 bits:TMR1H.
Maquinas Digitales  La idea principal es dividir el procesamiento de cada una de las instrucciones en una serie de pasos totalmente independientes.
Overview Sistemas Computacionales
El microcontrolador 68HC11 Avanzado Marco Antonio López Trinidad Departamento de Computación.
MICROCONTROLADORES NOCIONES BÁSICAS. ¿QUÉ ES UN MICROCONTROLADOR? MICROCONTROLADOR = MICROPROCESADOR + MEMORIA + PERIFERICOS.
CPU 8088 vs. Pentium TEEL 4011 Prof. Jaime José Laracuente-Díaz.
Ing. Jorge A. Abraham Técnicas Digitales II
Timer 3 Presentan: Fernando piñal moctezuma Tecilli tapia Tlatelpa BENEMÉRITA UNIVERSIDAD AUTÓNOMA DE PUEBLA FACULTAD DE CIENCIAS DE LA ELECTRÓNICA SISTEMAS.

MICROCONTROLADORES COMPATIBLES CON 8XC51
PIC16F877 Timers.
Universidad Técnica Federico Santa María Departamento de Electrónica Seminario II1 Timers A - B. Usos y programación. Paola Rojas Pablo Naveas Carlos Silva.
What has to be done today? It can be done in any order. Make a new ALC form Do the ALC Get two popsicle sticks Get 16 feet of yarn. That is 4 arms width.
Microcontrolador MPS430F149
Comparador A Integrantes Álvaro Bravo Domingo Devotto Nelson Figueroa.
Circuitos Digitales.
Sesión 11: - Comparador, Captura y PWM. 2009/1 Circuitos Digitales III 2010/1 Circuitos Digitales III 2010/1 Circuitos Digitales III 2010/1 Sistemas Digitales.
Sesión 09: TIMER como base de tiempo.
Sesión 10: Conversión Análoga a Digital
Sesión 08: Interrupciones - IRQ. 2009/1 Circuitos Digitales III 2010/1 Circuitos Digitales III 2010/1 Circuitos Digitales III 2010/1 Sistemas Digitales.
INTRODUCCIÓN A LAS HERRAMIENTAS DE DISEÑO CON PIC
Sesión 07: Interrupciones. 2009/1 Circuitos Digitales III 2010/1 Circuitos Digitales III 2010/1 Circuitos Digitales III 2010/1 Sistemas Digitales II Universidad.
¿QUÉ HORA ES? Frases importantes  ¿Qué hora es?  What time is it?  ¿A qué hora es ____________________.  At what time is _______?  (saying when.
NOCIONES BÁSICAS COMPUTO II
DESCRIBING PEOPLE #2 Use the pictures in the Power point to complete the handout. You may use notes, textbook, or previous Powerpoints if needed.
DO NOW: Copy and translate the following into English.
Arquitectura de Computadoras
INTERRUPCIONES – ABRAZO MORTAL
PICmicro GAMA MEDIA: PIC16F84 [I]
TENER, ESTAR and ANDAR in the Preterite. The verbs tener, estar, and andar have similar stem changes in the Preterite tense. They all have “uv” in the.
Verbos con cambio en la raiz Pretérito Preterite Stem changing verbs Por: Señora Aguilera.
Javier Mauricio Galvis Moreno
ESTADO Registro de ESTADO más utilizado  Es el registro más utilizado.  Ocupa la dirección 03 H tanto del Banco 0 como el Banco 1 de la Memoria de Datos.
COMUNIDAD YAQUI! Sikiri#4 Heeka#7 Ba’am#19.
Programando puertos en C freescale
Programación de microcontroladores PIC16f877a en linux
Time Expressions Using HACER Present, Preterite and Imperfect Spanish III.
Vámonos Write out the following sentences in Spanish and English. 1)Anoche, yo comí con mi familia. 2)Cuando yo era niña, siempre comía con mi familia.
Arquitectura de Computadores Clases Interrupciones de software y hardware IIC 2342 Semestre Rubén Mitnik Pontificia Universidad Católica.
CONIMEIRA XVI Bootloaders para microcontroladores PIC de Microchip Presentan: Ing. Ricardo Guadrón Tec. Juan José Guevara Escuela Especializada en Ingeniería.
Parte I Pines de E/S Interrupciones
Curso de Medidas Eléctricas 2016 CLASE 18 MEDIDAS AUTOMÁTICAS.
Encoders Opticos Armando Mtz. Reyes ITNL.
Interrupciones Una interrupción consiste en que el procesador suspende temporalmente la tarea que está ejecutando para atender a algún periférico, mediante.
Transcripción de la presentación:

INTERRUPCIONES Introducción

Interrupciones Una interrupción es un evento que requiere que el CPU detenga la ejecución normal del programa y a continuación, ejecutar un código del programa relacionado con el suceso causante de la interrupción.  Las interrupciones pueden ser generados:  Internamente (por algún evento dentro del chip) o Externa (por parte de algunos externos evento).  Un ejemplo de una interrupción interna es un contador de desbordamiento o de A / D de completar una conversión.  Un ejemplo de una interrupción externa es un pin de E/S  al cambiar el estado.

Interrupciones

PIC18F4550 El microcontrolador PIC18F4550 tiene dos fuente principales de interrupción: del Núcleo  y de los periféricos.  La principales fuentes de interrupción del núcleo son:    Exteriores disparado por el interrupción en los pines : INT0, INT1 e INT2.    Pines PORTB interrumpe cuando cambia el estado de uno de los pines RB4 a RB7 .    Temporizador 0.  Alguna de las fuentes de interrupción periférica son:    Conversión A / D completa.    USART interrupción de recepción.    USART interrupción de transmisión. Detección de bajo voltaje. Otros…

PIC18F4550 Las interrupciones en la familia PIC18F se puede dividir en dos grupos: de alta prioridad y baja prioridad.  Si en la aplicación no es necesario establecer prioridades para las interrupciones, el usuario puede optar por desactivar el esquema de prioridades para que  todas las interrupciones se encuentran en la  misma nivel de prioridad.  El PIC18F4550 utiliza varios registros para  el control de la interrupción. Estos son: RCON INTCON INTCON2 INTCON3 PIR1, PIR2 PIE1, PIE2 IPR1, IPR2

PIC18F4550 Cada fuente de Interrupción (excepto INT0) tiene tres bits para controlar su funcionamiento. Estos bits son:  Un bit que indique si se ha producido una interrupción.  Este bit tiene un nombre que terminan en. . . IF. Un bit  para habilitar o deshabilitar el origen de la interrupción.  Este bit tiene el nombre que termina en. . . IE.  Un bit de prioridad para seleccionar alta o baja prioridad.  Este bit tiene un nombre que termina en. . . IP Importante: Los bits de interrupción  se establecen cuando una condición de interrupción se produce independientemente del estado de su correspondiente bit de habilitación. El usuario debe asegurarse limpiar el  adecuado bits  antes de habilitar una interrupción. 

Registro RCON bit 7 IPEN: Interrupt Priority Enable bit 1 = Enable priority levels on interrupts 0 = Disable priority levels on interrupts bit 6 SBOREN: BOR Software Enable bit(1) For details of bit operation, see Register 4-1. bit 5 Unimplemented: Read as ‘0’ bit 4 RI: RESET Instruction Flag bit bit 3 TO: Watchdog Time-out Flag bit bit 2 PD: Power-Down Detection Flag bit bit 1 POR: Power-on Reset Status bit(2) bit 0 BOR: Brown-out Reset Status bit

Registro intCON bit 7 GIE/GIEH: Global Interrupt Enable bit When IPEN = 0: 1 = Enables all unmasked interrupts 0 = Disables all interrupts When IPEN = 1: 1 = Enables all high-priority interrupts bit 6 PEIE/GIEL: Peripheral Interrupt Enable bit 1 = Enables all unmasked peripheral interrupts 0 = Disables all peripheral interrupts 1 = Enables all low-priority peripheral interrupts (if GIE/GIEH = 1) 0 = Disables all low-priority peripheral interrupts

Registro intCON bit 5 TMR0IE: TMR0 Overflow Interrupt Enable bit 1 = Enables the TMR0 overflow interrupt 0 = Disables the TMR0 overflow interrupt bit 4 INT0IE: INT0 External Interrupt Enable bit 1 = Enables the INT0 external interrupt 0 = Disables the INT0 external interrupt bit 3 RBIE: RB Port Change Interrupt Enable bit 1 = Enables the RB port change interrupt 0 = Disables the RB port change interrupt bit 2 TMR0IF: TMR0 Overflow Interrupt Flag bit 1 = TMR0 register has overflowed (must be cleared in software) 0 = TMR0 register did not overflow bit 1 INT0IF: INT0 External Interrupt Flag bit 1 = The INT0 external interrupt occurred (must be cleared in software) 0 = The INT0 external interrupt did not occur bit 0 RBIF: RB Port Change Interrupt Flag bit(1) 1 = At least one of the RB7:RB4 pins changed state (must be cleared in software) 0 = None of the RB7:RB4 pins have changed state

Registro intCON bit 5 TMR0IE: TMR0 Overflow Interrupt Enable bit 1 = Enables the TMR0 overflow interrupt 0 = Disables the TMR0 overflow interrupt bit 4 INT0IE: INT0 External Interrupt Enable bit 1 = Enables the INT0 external interrupt 0 = Disables the INT0 external interrupt bit 3 RBIE: RB Port Change Interrupt Enable bit 1 = Enables the RB port change interrupt 0 = Disables the RB port change interrupt bit 2 TMR0IF: TMR0 Overflow Interrupt Flag bit 1 = TMR0 register has overflowed (must be cleared in software) 0 = TMR0 register did not overflow bit 1 INT0IF: INT0 External Interrupt Flag bit 1 = The INT0 external interrupt occurred (must be cleared in software) 0 = The INT0 external interrupt did not occur bit 0 RBIF: RB Port Change Interrupt Flag bit(1) 1 = At least one of the RB7:RB4 pins changed state (must be cleared in software) 0 = None of the RB7:RB4 pins have changed state

Registro y bits de interrupcion