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,738件の閲覧回数
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 返答(返信)

1,522件の閲覧回数
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 件の賞賛
返信

1,522件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Which interrupt source do you mean?

pastedImage_1.png

0 件の賞賛
返信

1,522件の閲覧回数
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 件の賞賛
返信