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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,162 次查看
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

标记 (4)
0 项奖励
回复
3 回复数

946 次查看
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 项奖励
回复

946 次查看
jimmychan
NXP TechSupport
NXP TechSupport

Which interrupt source do you mean?

pastedImage_1.png

0 项奖励
回复

946 次查看
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 项奖励
回复