1 / 1

EJEMPLO DE INTERRUPCIONES

EJEMPLO DE INTERRUPCIONES. OBJETIVO. Sacar por el puerto P1.0 una señal oscilante cada vez que llega una interrupción INT0. ORG 0000H LJMP INICIO ; Vector de interrupcion de la INT0. ORG 0003H LJMP RUTINT0 ; Salto a la rutina de Servicio dela interrupcion INT0.

gordon
Download Presentation

EJEMPLO DE INTERRUPCIONES

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. EJEMPLO DE INTERRUPCIONES • OBJETIVO. • Sacar por el puerto P1.0 una señal oscilante cada vez que llega una interrupción INT0. ORG 0000H LJMP INICIO ; Vector de interrupcion de la INT0. ORG 0003H LJMP RUTINT0 ; Salto a la rutina de Servicio dela interrupcion INT0. ....................... ORG 200H INICIO: MOV IEN0,#81H ; Activar interuupciones(EAL=1) e INT0. MOV TCON,#01H ; La INT0 se activa por Flanco Bajada. NADA: NOP ; Bucle sin FIN. LJMP NADA RUTNIT0: CPL P1.0 ANL TCON,#0FDH ; Borrar Flag de la INT0. RETI

More Related