Motorola M68CPU32BUG Manuel d'utilisateur Page 45

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 56
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 44
MC68332TUT/D MOTOROLA
45
*** Interrupt Initialization on Channel 4 ***
MOVE.W #$0680,(TICR).l ;Interrupt level = 6, base vector = $80
OVE.L #INT,($0210).l ;start interrupt routine at label INT
;assuming VBR is equal to zero
NDI.W #$F5FF,SR ;allow interrupts on level 6 and
;above (assume reset condition of SR)
CLR.L D0
MOVEC D0,VBR ;initialize VBR to zero
ORI.W #$0005,(TMCR).l ;set IARB field to $5
ORI.W #$0010,(CIER).l ;enable interrupts for channel 4
*** Interrupt Routine ***
INT
ANDI.W #$FFEF,(CISR).l ;read and clear interrupt
**** Code for interrupt routine ****
RTE ;return from exception
Vue de la page 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 55 56

Commentaires sur ces manuels

Pas de commentaire