SLYA065 October 2022 TMAG5328
To estimate the magnetic flux density sensed by the TMAG5328, connect a DAC or other voltage source to the TMAG5328 ADJ pin and follow the procedure below:
The more DAC steps there are between the 0.16 V to 1.2 V VADJ operating range of the TMAG5328 and the higher the DAC accuracy, the more accurate the estimate of the sensed magnetic flux density. However, using more DAC steps results in a longer execution time for estimating the sensed magnetic flux density. In the TMAG5328EVM, the DAC43701 DAC is used to determine the magnetic flux density sensed by the TMAG5328. The DAC43701 is an 8-bit DAC that is configured to use a 0 V to 1.82 V range. From this 0 V to 1.82 V range, 144 of the possible 256 DAC codes can be used with the TMAG5328 because these codes fall within the 0.16 V to 1.2 V VADJ range of the TMAG5328. The DAC43701 is pin-to-pin compatible with the 10-bit DAC53701, therefore the DAC53701 can replace the DAC43701 on the EVM to allow 584 usable codes within the 0.16 V to 1.2 V VADJ range of the TMAG5328. Using the DAC53701 can enable a slightly more precise estimate of the sensed magnetic flux density than the DAC43701; however, the more codes that are used for determining the sensed magnetic flux density, the longer it takes for the procedure to run. If 100 ms is spent at each DAC code between the 0.16 V to 1.2 V VADJ range of the TMAG5328, it would take about 14.4 seconds to iterate through all the DAC43701 codes and 58.4 seconds to iterate through all the DAC53701 codes.
Figure 2-1 shows a logic analyzer screenshot when this procedure was conducted using the TMAG5328 and DAC43701 devices on the TMAG5328EVM. In Figure 2-1, the Timer ISR plot shows a pulse every time the DAC output changes, the TMAG5328 OUTPUT plot shows the state of the TMAG5328 OUT pin across time, and the DAC Output Voltage plot measures the DAC output voltage across time. In Figure 2-1, the output is asserted low at VDAC = 0.702 V, which indicates that the sensed magnetic flux density is approximately 8.78 mT. The time it takes for this procedure to run depends on how large the sensed magnetic flux density is, where larger magnetic flux densities result in shorter execution times. In the example below, the procedure completed in about 6 to 7 seconds.