SLYA065 October   2022 TMAG5328

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
    1. 1.1 Mapping Switching Distance to Magnetic Flux Density
    2. 1.2 How to Program BOP of TMAG5328
    3. 1.3 Advantages of TMAG5328 Adjustable BOP
  4. 2Determining Sensed Magnetic Flux Density Seen by TMAG5328
  5. 3Implementing a Software-Programmable Hall-Effect Switch With Microcontroller-Less Standalone Mode
  6. 4Implementing Diagnostics and a Magnetic Window Comparator
    1. 4.1 Conducting Diagnostic Tests With TMAG5328EVM and Head-On Linear Displacement 3D Print
      1. 4.1.1 Magnet Out-of-Range Testing (Magnetic Window Comparator Testing)
        1. 4.1.1.1 Signal Disconnections
        2. 4.1.1.2 Signal Shorts
  7. 5Summary

Abstract

This application note discusses how the TMAG5328 resistor and voltage adjustable, low-power Hall-effect switch can increase system design flexibility and reduce design time. In addition, the document also discusses how using voltage to adjust the TMAG5328’s BOP enables multiple applications. One of these applications is a software programmable Hall-effect switch with microcontroller-less standalone mode, which is done by using a DAC or digital potentiometer with nonvolatile memory. Additionally, the document discusses how sweeping the voltage that sets the BOP can be used to back-calculate the sensed magnetic flux density seen by the TMAG5328. This document also discusses how adding a square wave voltage waveform can help the TMAG5328 implement diagnostics for detecting faults such as TMAG5328 device pin shorts, TMAG5328 device pin disconnections, and when a system’s magnet is either too close or too far from the sensor. The magnet out-of-range functionality implemented for diagnostics can also be reused as a magnetic window comparator instead.