SLYU066A October   2023  – June 2024 TMAG3001

 

  1.   1
  2.   Description
  3.   Get Started
  4.   Features
  5.   Applications
  6.   6
  7. 1Evaluation Module Overview
    1. 1.1 Introduction
    2. 1.2 Kit Contents
    3. 1.3 Specifications
    4. 1.4 Device Information
  8. 2Hardware
    1. 2.1 TMAG3001 EVM Components
    2. 2.2 SCB LEDs
  9. 3Software
    1. 3.1 Quick Start Setup
    2. 3.2 EVM Operation
      1. 3.2.1 Setup
        1. 3.2.1.1 Driver Installation
        2. 3.2.1.2 Firmware
          1. 3.2.1.2.1 Updating Firmware on SCB
        3. 3.2.1.3 GUI Setup and Usage
          1. 3.2.1.3.1 Initial Setup
          2. 3.2.1.3.2 GUI Operation
      2. 3.2.2 Rotate and Push Demo
      3. 3.2.3 CRC Calculator
      4. 3.2.4 Direct EVM Serial Communication
  10. 4Hardware Design Files
    1. 4.1 Schematics
    2. 4.2 PCB Layout
    3. 4.3 Bill of Materials
  11. 5Additional Information
    1. 5.1 Trademarks
  12. 6Related Documentation
  13. 7Revision History

CRC Calculator

If CRC is enabled, the GUI can be used to both calculate the CRC of a single data packet and read back the CRC byte from the TMAG3001 when in Standard 3-Byte I2C Read mode.

Note:

In the standard 3-byte read command, the CRC byte is sent after 4 register bytes are read as the CRC byte sent by the device is the fifth CRC byte calculated based off the CRC calculation of the immediate past 4 register bytes.

  1. In the GUI register page:

    1. Select the DEVICE_CONFIG_1 register and check the following:

      1. Make sure the drop-down menu option for the CRC_EN register bits says 1h = CRC Enabled

      2. Make sure the drop-down menu option for the I2C_RD register bits says 0h = Standard I2C

    2. Use the Device field located at the top of the register map to select which EVM on the I2C bus to use.

  2. Go to the CRC tab within the Results Data page (see Figure 4-17)

    TMAG3001EVM CRC GUI PageFigure 3-17 CRC GUI Page
  3. Device CRC Read - Standard 3-Byte Read
    1. Enter the Starting Register Address to do a Standard 3-Byte Read of the data from the selected register as well as the following 3 registers and the CRC byte. For this example, register 0x12 is being used as the Starting Register Address(see Figure 4-18 below).
      Note: If performing a read of any of the data registers, make sure that the relevant magnetic channels are enabled if wanting to read valid data.
      TMAG3001EVM Device CRC Read - Starting
                  Register Address Figure 3-18 Device CRC Read - Starting Register Address
    2. Press the Read Device CRC button to read the 4 bytes of data, as well as the CRC byte (see Figure 4-19 below).
      TMAG3001EVM Device CRC Read - Standard
                  3-Byte Read Figure 3-19 Device CRC Read - Standard 3-Byte Read
  4. CRC Calculator - Standard 3-Byte Read
    1. As the CRC byte reported by the device is based on the CRC calculation of the immediate past four register bytes, to reproduce the CRC byte that gets sent by the TMAG3001, the user must input 4 bytes of data into the calculator tool.
    2. For this example, the data read by the device from Figure 4-19 is what shall be used to verify the CRC that was read back by the device.
      1. To start, enter the data read back for Register_Address, which in this case was 0x7E (see Figure 4-20 below).
        TMAG3001EVM CRC Data Calculation
                      1 Figure 3-20 CRC Data Calculation 1
        1. Once Data Input 1 gets entered, CRC Calc 1 is then calculated for that data packet based on the CRC calculation formula shown in the data sheet, which can be found to the left of the CRC Calculator Tool under How to Calculate CRC - Example.

      2. Enter the rest of the data read back by the device into the Data Input boxes (see Figure 4-21 below). The value shown by Final CRC (reported by device) ought to be the same as the CRC byte reported in Figure 4-19.

        TMAG3001EVM Final CRC
                      Calculation Figure 3-21 Final CRC Calculation