1)I am interfacing sama5d36 with PN512 using USART-SPI . 2)Interrupt not firing at PN512 blue board.

cancel
Showing results for 
Search instead for 
Did you mean: 

1)I am interfacing sama5d36 with PN512 using USART-SPI . 2)Interrupt not firing at PN512 blue board.

281 Views
shivarajrph
Contributor I

after power on the PN512 i got slave select high . 
spi pins slve select is high before sending data after it will low. 
mosi gives pulses after transmitting some data. 
miso also same as it is. 
now my doubt is on PN512 blue board interrupt pin will not firing if interrupt will fire as i attached below log the while loop will terminate and NFC pn512 detect the nfc tags. 
please give me solution for this one . 
thank you

0 Kudos
3 Replies

65 Views
shivarajrph
Contributor I

  while(1)
    {
        /* Enter Critical Section */
        phPlatform_EnterCriticalSection();

///////////////////this if condition is not satisfying in my code ///////////////////////////

        if ((((options & E_OS_EVENT_OPT_PEND_SET_ALL) && (((*((uint32_t *)(*eventHandle))) & FlagsToWait) == FlagsToWait))
            || ((!(options & E_OS_EVENT_OPT_PEND_SET_ALL)) && ((*((uint32_t *)(*eventHandle))) & FlagsToWait)))
            || (gbWaitTimedOut))
        {
            /* Exit Critical Section. */
          //  phPlatform_ExitCriticalSection();
            if (gbWaitTimedOut != 0x01)
            {
                status = PH_ERR_SUCCESS;
            }
            break;
        }

        /* Exit Critical Section. */
        phPlatform_ExitCriticalSection();

        /* Wait for interrupts/events to occur */
        phPlatform_Sleep();
    }

          this code is downloaded from nxp semiconductor please give me a solution for this one.in this condition as i check the RF event is occurs but i am not sure is this RF event problem or PN512 blue board problem please help me. 

0 Kudos

65 Views
jimmychan
NXP TechSupport
NXP TechSupport

Which interrupt source do you mean?

pastedImage_1.png

0 Kudos

65 Views
shivarajrph
Contributor I

ComIrqReg register.

i am interfacing sama5d36 xplained  board with NFC PN512 blue board i am not able to get the proper result .The RF event was not occurs please help me. 

0 Kudos