I have a working piece of code for the ADSP-21569 where PB15 (port B 15) should act as falling interrupt. Now I want to port the same code to 21593 and it is not working. I can make the sports, spi and other things work but not this one. I read thru the hrm of both the 21569 and 21593 and for the most part I believe the register usage is the same.
Other side details: using cces 2.10.0, chip marking is 21593-BCZENG , 6032322.1-0.0, #2244
Thank you.
I am pasting my code here.
void HS_interrupt(int iid, void *handlerArg)
{
int ppp;
*pREG_PINT0_LATCH = 0x00008000;
lcd_handshake_counter++;
lcd_handshake_detected = 1;
}
void setup_PB15_as_falling_edge_interrupt(void)
{
// PB15
*pREG_PINT0_ASSIGN = 0x00008100;
*pREG_PINT0_EDGE_SET = 0x00008000;
*pREG_PINT0_INV_SET = 0x00008000;
*pREG_PINT0_MSK_SET = 0x00008000;
adi_int_InstallHandler(INTR_PINT0_BLOCK, HS_interrupt ,0 , true);
}