Académique Documents
Professionnel Documents
Culture Documents
AO Chapitre 3
AO Chapitre 3
CHAPITRE 3:
LES INTERRUPTIONS
Pr. A. ELMOUNADI
LES INTERRUPTIONS
INTRODUCTION
LES INTERRUPTIONS
INTRODUCTION
Le Polling :
LES INTERRUPTIONS
INTRODUCTION
LES INTERRUPTIONS
INTRODUCTION
LES INTERRUPTIONS
INTRODUCTION
Les Interruptions :
LES INTERRUPTIONS
DÉFINITIONS
Les interruptions sont générées par appel d’un périphérique (cas des
interruptions matérielles). Elles donnent lieu à l’exécution d’un programme,
appel de routine de service ou routine de traitement de l’interruption comme
expliqué ci-dessus.
LES INTERRUPTIONS
DÉFINITIONS
LES INTERRUPTIONS
TYPES D’INTERRUPTIONS
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
Adresses/bus de données:
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
Lorsque le Microprocesseur
reçoit ce signal, il acquitte
l'interruption.
LES INTERRUPTIONS
INTERRUPTIONS MATÉRIELLES
LES INTERRUPTIONS
MASQUAGE DES INTERRUPTIONS
LES INTERRUPTIONS
MASQUAGE DES INTERRUPTIONS
Une interruption masquée est ignorée par l'unité de contrôle tant qu'elle
reste masquée.
LES INTERRUPTIONS
CONTRÔLEUR D’INTERRUPTIONS
LES INTERRUPTIONS
CONTRÔLEUR D’INTERRUPTIONS
Bus de données
IRQ0
Microprocesseur PIC
IRQ1
…
NMI IRQn
LES INTERRUPTIONS
CONTRÔLEUR D’INTERRUPTIONS
Le PIC est relié aux interfaces gérant les périphériques par les bornes IRQ
(InteRrupt reQuest).
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
1. Un signal INT est émis par un périphérique (ou plutôt par l’interface
gérant celui-ci).
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
LES INTERRUPTIONS
TRAITEMENT D’UNE INTERRUPTION EXTERNE MASQUABLE
LES INTERRUPTIONS
EXEMPLE 1: L’HORLOGE
LES INTERRUPTIONS
EXEMPLE 1: L’HORLOGE
LES INTERRUPTIONS
Soit un programme lisant des données sur un Disque Dur, les traitant et les
affichant à l’écran. Voici l’algorithme général sans utiliser d’interruption :
Étape 1:
Répéter :
LES INTERRUPTIONS
L’étape 2 est une boucle de scrutation qui peut être exprimée comme suit :
Répéter :
LES INTERRUPTIONS
Ce temps pourrait être mis à profit pour réaliser une autre tâche. En gros,
les E/S par interruption fonctionnent sur le modèle suivant:
LES INTERRUPTIONS