GPIO interrupt on change CY8C29466 not working

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LuNo_297436
Level 3
Level 3
First solution authored 10 replies posted 10 questions asked

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

0 Likes
1 Solution

Your interrupt handler code in PSoCGPIOINT.asm is misplaced and will not get executed.

Bob

View solution in original post

0 Likes
5 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

Can you please post your complete project so that we all can have a look at all of your settings. To do so, use

Creator->File->Create Workspace Bundle (minimal)

and attach the resulting file.

Bob

0 Likes
lock attach
Attachments are accessible only for community members.

Hi Bob

Yes, I'm ataching Project.

Thanks

Luis

0 Likes

Your interrupt handler code in PSoCGPIOINT.asm is misplaced and will not get executed.

Bob

0 Likes

You are correct Bob.

This is embarrassing, I was reading only the ".....below this banner" ending.

This errors become imperceptible at certain moments.

I really appreciate your help!!

Best Regards

Luis

0 Likes

You are always welcome, Luis.

Bob

0 Likes