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 ......
}
Comments to this Manuals