This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cypress ez-usb and interrupts

Hi all,

I'm dealing with a cy7c68013a and the framework cypress provide. The fw use a jump table for usb interrupt but I've to add some ISR for INT0 and serial comm.

Do I need a .a51 file like this?

;INT0 vector handler
EXTRN CODE (ISR_INT0)
CSEG AT 0003H LJMP ISR_INT0
END

And inside C code:

void ISR_INT0(void) interrupt 0
{...}

What does mean "interrupt 0"?
I can't find documentation about syntax of ISR ...
fw already uses "interrupt 0" do I've to use 1?

Thanks a lot

Parents
  • "I spotted the NOIV pragma and for this I'd to put some assembler code like this..."

    '#pragma NOIV' affects just to the source file on which it is declared.
    Make a new source file for your ISR, and you don't need to add the asm code.

    Cypress examples uses this pragma to generates a custom jump table for the extended interrupt vectors of the USB ISRs, which is supported by EZ-USB hardware. The interrupt 'number' attached to the USB ISRs has no significance, it is there just to satisfy the syntax.

    Tsuneo

Reply
  • "I spotted the NOIV pragma and for this I'd to put some assembler code like this..."

    '#pragma NOIV' affects just to the source file on which it is declared.
    Make a new source file for your ISR, and you don't need to add the asm code.

    Cypress examples uses this pragma to generates a custom jump table for the extended interrupt vectors of the USB ISRs, which is supported by EZ-USB hardware. The interrupt 'number' attached to the USB ISRs has no significance, it is there just to satisfy the syntax.

    Tsuneo

Children
No data