Reading NS_REG via NFC

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading NS_REG via NFC

258 Views
cateaz
Contributor II

I am currently using a clev6630Ard board as a recevier communicating with an NT3H2111. I am trying tot set up pass through communication i2c->nfc. I am trying to implement the following steps on the ntag:

1. field is detected by ntag -> FD pin goes low

2. once FD pin is low the following script it sent to sent up passthrough mode 

            NTAG_SetTransferDir(I2C_TO_RF);
            NTAG_SetPthruOnOff(TRUE);
            NTAG_SetFDOnFunction(DATA_READY_BY_I2C_OR_DATA_READ_BY_RF_11b);
                      NTAG_SetFDOffFunction(I2C_LAST_DATA_READ_OR_WRITTEN_OR_RF_SWITCHED_OFF_11b);
3. waiting for the FD pin to go high and start writing data via i2c
At the same time, on the reader board i am trying to read the NS_REG to know when data was finished being written and reading can start. when i read the registers tho, only page 236 of the seession register is abe to be printed and not the rest. what should i do? cateaz_0-1729511355556.png
0 Kudos
Reply
5 Replies

236 Views
KellyLi
NXP TechSupport
NXP TechSupport

Hello @cateaz 

From the log that you provided, the memory you want to read involves an invalid part, so it cannot be read.

KellyLi_0-1729567688242.png

 

0 Kudos
Reply

200 Views
cateaz
Contributor II

Thank you very much. It is now seems to work. however I am having another issue. Once the field is detected and the FD pin goes low, these commands are sent :


            NTAG_SetTransferDir(I2C_TO_RF);
            NTAG_SetPthruOnOff(TRUE);
            NTAG_SetFDOnFunction(DATA_READY_BY_I2C_OR_DATA_READ_BY_RF_11b);
            NTAG_SetFDOffFunction(I2C_LAST_DATA_READ_OR_WRITTEN_OR_RF_SWITCHED_OFF_11b);
            MXC_Delay(5000);
 
I am excpecting the NC register to be 0x7C and the FD to go high. The NC Reg is read to be 0x7C, however the FD pin is not going high. What could be the issue? Thank you. PLease see below the logi analyzer pics showng the data being acknowldeged. 
cateaz_0-1729857042430.pngcateaz_1-1729857110152.png

 

 

Tags (1)
0 Kudos
Reply

172 Views
KellyLi
NXP TechSupport
NXP TechSupport

Hello @cateaz 

If you set NC_REG=0x7C,  FD_ON=11, FD_OFF=11, means if the field is switched off or if last data is read by I2C (in pass-through mode NFC---> I2C) or last data is written by I2C (in pass-through mode I2C---> NFC), the event upon which the signal output on the FD pin is released, in that case, you would see FD pin go to high.

0 Kudos
Reply

154 Views
cateaz
Contributor II

does this mean that the diagram in the datasheet is incorrect? From the datasheet it seems that the FD pin goes high upon writing the NC REG to be 7C and doesn not change vlaue as the data has finished being written by i2c.

Thank you for your help 

cateaz_0-1730033458312.png

 

Tags (1)
0 Kudos
Reply

45 Views
KellyLi
NXP TechSupport
NXP TechSupport

Hello @cateaz 

Set NC REG to 0x7C and the corresponding event is triggered and then FD goes high. Just setting the register, there will be nothing happening. Please check the descriptions of the datasheet for details.

0 Kudos
Reply