Motorola MSC8101 ADS User's Guide Page 148

  • Download
  • Add to my manuals
  • Print
  • Page
    / 346
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 147
7-14 MSC8101 User’s Guide
Interrupts and Interrupt Priorities
;; irq num from 0-23
nop
if irq_num<16
move.l #irq_num,d6
move.l #1,d7
lsll d6,d7
nop
move.w d7,IPRA
else
move.l #irq_num-16,d6
move.l #1,d7
lsll d6,d7
nop
move.w d7,IPRB
endif
nop
ENDM
Following is an nmis macro to clear the edge-triggered interrupt request:
nmis MACRO nmi_num
;; nmi num from 0-7
nop
move.w PICSR,d6
nop
move.l #nmi_num+8,d6
move.l #1,d7
lsll d6,d7
nop
move.w d7,IPRB
nop
ENDM
7.4.4.1 Examples of SIC Interrupts
#include"Sic.h"
Sic_Branch SIC_BranchTable[64];
main ()
{
...... M A I N - P R O G R A M ......
}
Page view 147
1 2 ... 143 144 145 146 147 148 149 150 151 152 153 ... 345 346

Comments to this Manuals

No comments