This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMAG5273: Inappropriate Z-axis value

Part Number: TMAG5273

Hi Team,

Can you please help us with our customer's inquiry below?

I am reading inappropriate values from z-axis when I start reading x-axis, y-axis, z-axis. I have been following the procedure for reading magnetic value from  X, Y, Z axis as given in the datasheet.

I'm configuring the sensor to all magnetic channels off mode by configuring SENSOR_CONFIG1 to 0x09 and for the other register configurations, I followed the register settings given in the datasheet. Even after that, I am

reading some inappropriate value from z-axis. In the attached image, 3rd one is z-axis.

Regards,

Danilo

  • Hello Danilo,

    Thanks for posting to the sensors forum!

    I am guessing the incorrect data the customer is reading from the TMAG5273 is the data listed as FFFFxxxx in the picture posted above?

    Has the customer ensured that the error doesnt arise from trying to print the results to the terminal, I have had issues using the terminal in the past to print data. If they have a way to look at the I2C data directly they could perform a read of the magnetic results on the Z channel and manually calculate the result to ensure that they are receiving valid data from the device. This would help isolate any uncertainty being created by the terminal.

    Best,

    Isaac

  • Hi Isaac,

    Thank you for your response. Please see our customer's feedback below.

    I configured the sensor to all axis off mode and I am performing read of the magnetic results on the X,Y,Z channel directly and printing on the terminal, X,Y axis values are printed as zero as expected but Z-axis value is not zero as expected. I am ensuring that the error doesn't arise from trying to print the results to the terminal.

    Regards,

    Danilo

  • Hello Danilo,

    Thanks for the information. I think it would be best to confirm that the Z data is something besides 0 when the channel is disabled. If the customer were to provide a logic analyzer capture of the magnetic data when the channel is disabled then we could identify if the device is indeed still sending out information, this can be done by reading registers 0x16 and 0x17.

    The terminal adds an additional layer of abstraction, if we can remove some of those layers and see what data the device is actually sending out we can confirm that there is not an error with the way the data is being interpreted by their firmware or by the communication to the COM port. 

    Best,

    Isaac

  • Hi, 

    Please refer for the screenshot of logic analyzer while I'm reading data from all axis( 6 bytes) in all axis-off mode by configuring SENSOR_CONFIG_1 to 0x09.

  • Hello Abhinav,

    Is the value you are reading constant? Or is it continuously changing?

    The reason I ask is because for example if start up your device without enabling measurements then your magnetic results registers should read 0mT. This is shown in the capture below

    If the channel is enabled and then disable them then they will hold the contents of the last set of data converted by the device. As shown below this is the device with the Z channel disabled but we are still reading data.

    The only way to clear the contents of the register would be to power cycle the device or set the device to sleep mode this should default your registers back to 0.

    Best,

    Isaac