Motorola M68CPU32BUG User Manual Page 45

  • Download
  • Add to my manuals
  • Print
  • Page
    / 56
  • Table of contents
  • TROUBLESHOOTING
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 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
Page view 44
1 2 ... 40 41 42 43 44 45 46 47 48 49 50 ... 55 56

Comments to this Manuals

No comments