5 Replies Latest reply on Dec 18, 2017 3:08 AM by user_1377889

    GPIO interrupt on change CY8C29466 not working

    user_9986863

      Hi everyone

      I'm porting code from CY8C27143 to CY8C29466.

      Change from Read Interrupt is working well on a 27143 device but not on 29466.

      I isolated to minimal code and still nothing , I can't spot what is wrong.

      Any clue will be very welcome

      This is the code im using:

       

      _main:

          M8C_EnableGInt

       

          M8C_SetBank1

          or reg[PRT0IC0],0x08

          or reg[PRT0IC1],0x08

          ; Enable P0_3 interrupt

          M8C_SetBank0

          or reg[PRT0IE],0x08

          ;Enable GPIO interrupts

          M8C_EnableIntMask INT_MSK0, INT_MSK0_GPIO   

       

      .terminate:

          ;xor     reg[PRT1DR],0X02     ;debug

          jmp .terminate

       

       

      PSoC_GPIO_ISR

       

      mov     A,reg[PRT0DR]

          xor     reg[PRT1DR],0X02

      reti

       

      Thanks in advance

      Luis