Other Parts Discussed in Thread: TRF7960
Hello all,
I have a custom board which has STM32 controller as master and TRF7960 A is the slave for SPI communication. I could read and write to registers successfully. After sending Inventory request I do get an IRQ, when I check the status I get 0x80 and 0x3E which is same as shown in datasheet of trf7960 page 36. But after if I read the fifo register I get zero even though I have placed the rfid tag in the antenna vicinity. I have used the sample tags given by TI for TRF7960A EVM.
After sending the below Inventory request I get the IRQ, when I read the IRQ status register I get 0x80,0x3E and after that I will reset the fifo (0x8F) and again I will get the IRQ but this time when I read the IRQ status I get 0x00 and 0x3E. How can that be zero? May I know where I am doing wrong. Any suggestion would help me a lot.
uint8_t req[10]; void Send_InventoryReq(void) { TRF796xCheckRXWaitTime(); req[0] = 0x8F; req[1] = 0x91; req[2] = 0x3D; req[3] = 0x00; req[4] = 0x30; req[5] = 0x26; req[6] = 0x01; req[7] = 0x00; //Reset the IRQ status register Trf796xResetIrqStatus(); HAL_Delay(20);
spi_write(req, 8); }