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

CY768013A - Interrupt coding problem

Hi frnds,

I am working on Cypress EZ-USB CY768013A while analyzing the code i found many interrupts with same interrupt number as " interrupt 0 " , though this EZ Cypress usb chip has AUTOVECTOR facility, I would like to know how all these interrupt functions are executed with same Interrupt number in EZ CYPRESS USB chip ???


void ISR_Sudav(void) interrupt 0
{
   printf("Data\n");
   GotSUD = TRUE;            // Set flag
   EZUSB_IRQ_CLEAR();
   USBIRQ = bmSUDAV;         // Clear SUDAV IRQ
}

// Setup Token Interrupt Handler
void ISR_Sutok(void) interrupt 0
{
   printf("Token\n");
   EZUSB_IRQ_CLEAR();
   USBIRQ = bmSUTOK;         // Clear SUTOK IRQ
}

void ISR_Sof(void) interrupt 0
{
   printf("SOF\n");
   EZUSB_IRQ_CLEAR();
   USBIRQ = bmSOF;            // Clear SOF IRQ
}

void ISR_Ures(void) interrupt 0
{
        printf("Ureq\n");
   if (EZUSB_HIGHSPEED())
   {
          pConfigDscr = pHighSpeedConfigDscr;
      pOtherConfigDscr = pFullSpeedConfigDscr;
   }
   else
   {
      pConfigDscr = pFullSpeedConfigDscr;
      pOtherConfigDscr = pHighSpeedConfigDscr;
   }

   EZUSB_IRQ_CLEAR();
   USBIRQ = bmURES;         // Clear URES IRQ
}

void ISR_Susp(void) interrupt 0
{
   printf("Sup");
   Sleep = TRUE;
   EZUSB_IRQ_CLEAR();
   USBIRQ = bmSUSP;
}

Parents
  • "I would like to know how all these interrupt functions are executed with same Interrupt number"

    Isn't that exactly what the Autovector facility does?!

    You will have to read the Cypress Autovectore Documentation to see how their implementation works!

Reply
  • "I would like to know how all these interrupt functions are executed with same Interrupt number"

    Isn't that exactly what the Autovector facility does?!

    You will have to read the Cypress Autovectore Documentation to see how their implementation works!

Children
No data