Reply by praveen April 28, 20042004-04-28
Hi all, I am trying to run a small interrupt program using IRQA(DSP56F801)but
the interrupt action is not occuring when i press IRQA button . The following is the code
void main()
{

int x,y;
// STEP 1 : To take care I1 and I0 Bits
asm(bfset #$0100,sr);
asm(bfclr #$0200,sr);

// STEP 2 : Enable Both IRQA and IRQB

asm(bfset #0012,X:IPR);

// STEP 3 :
// ISR definition

declareISR(x ,y);
declareISR((int)0xE9C8,(int)0x0010);
declareISR((int)&isrint,(int)0x0011);
while(1); }

///////// This is in another C file and i have declared the header
files also.
int k; declareISR(int,int)

{ asm(MOVE Y1,R0);
asm(NOP);
asm(MOVE Y0,P:(R0)+);
} isrint()
{

k;
asm(RTI); }

Please help me with this one. Thanking you
Praveen