- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your interrupt handler code in PSoCGPIOINT.asm is misplaced and will not get executed.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your interrupt handler code in PSoCGPIOINT.asm is misplaced and will not get executed.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are always welcome, Luis.
Bob