This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

touch screen digitiser AD7843 penirq signal problem

I just wanted to ask that, should there be a code to initialise the PEN interrupt signal or something, because my PEN interrupt signal is not changing state and is stuck at 1.. I'm unsure why is that happening the rest of the code seems to be alright.

i am programming this on the ARM cortex M3

For now this is the initialise code:

    SysCtlPeripheralEnable(SYSCTL_PERIPH_SSI0);
    SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
    
    GPIOPinConfigure(GPIO_PA2_SSI0CLK);
    GPIOPinConfigure(GPIO_PA4_SSI0RX);
       
    GPIOPinTypeGPIOOutput(TC_CS_PORT, TC_CS_PIN);
    GPIOPinTypeGPIOInput(TC_PEN_PORT, TC_PEN_PIN);
     
    GPIOPinTypeSSI(MOSI_PORT,  MOSI_PIN | SCK_PIN);
   
    GPIOPinWrite(TC_CS_PORT,TC_CS_PIN,TC_CS_PIN);
        
    SysCtlPeripheralReset(SYSCTL_PERIPH_SSI0);   

    SSIDisable(SSI0_BASE);

    SSIConfigSetExpClk(SSI0_BASE,SysCtlClockGet(), SSI_FRF_TI, SSI_MODE_SLAVE_OD, SysCtlClockGet() / 50, 8);  // 1MBit/sec
    
    IntMasterEnable(); 
    SSIEnable(SSI0_BASE);

 

thanks in advance