TIDUC26A April   2022  – April 2024

 

  1.   1
  2.   Description
  3.   Resources
  4.   Features
  5.   Applications
  6.   6
  7. 1System Description
  8. 2System Overview
    1. 2.1 Block Diagram
    2. 2.2 Design Considerations
      1. 2.2.1 Inductive Touch Buttons
      2. 2.2.2 Sensor Coil Placement
      3. 2.2.3 Collecting Data from Multiple LDCs
      4. 2.2.4 Magnetic Dial Implementation
      5. 2.2.5 CORDIC Algorithm
    3. 2.3 Highlighted Products
      1. 2.3.1 LDC3114-Q1
      2. 2.3.2 TMAG5273
      3. 2.3.3 DRV2605
      4. 2.3.4 TLV75518
      5. 2.3.5 TCA9534
      6. 2.3.6 PCA9543
      7. 2.3.7 Sensor Control Board
  9. 3Hardware, Software, Testing Requirements, and Test Results
    1. 3.1 Firmware and Programming
      1. 3.1.1 Operational Mode 1
      2. 3.1.2 Operational Mode 2
      3. 3.1.3 Operational Mode 3
    2. 3.2 Test Setup
    3. 3.3 Test Results
      1. 3.3.1 ABS Force Response
      2. 3.3.2 ABS Gain Corrected
      3. 3.3.3 Nylon Force Response
      4. 3.3.4 Nylon Gain Corrected
  10. 4Hardware Components
  11. 5Design and Documentation Support
    1. 5.1 Design Files
      1. 5.1.1 Schematics
      2. 5.1.2 BOM
    2. 5.2 Tools and Software
    3. 5.3 Documentation Support
    4. 5.4 Support Resources
    5. 5.5 Trademarks
  12. 6Revision History

Firmware and Programming

This reference design uses the SCB to control the different ICs on board. The firmware for this design was developed using Code Composer Studio™ IDE. Once the SCB is flashed with the proper firmware, the SCB can be used along with this reference design. Since the SCB can be used with multiple EVMs, the SCB can easily be flashed by using the GUI to upload the proper firmware.

GUID-20220302-SS0I-XZFZ-C7GV-VD54GWHSSTBM-low.svgFigure 3-1 Initialization Flowchart

The firmware for this design starts by initializing the different ICs on the board. The LDC3114s are setup for the button application and set the registers according to the coil design discussed above. The DRV2605 haptic driver is setup to perform haptic feedback when and I2C command is received. The device is also setup for the specific LRA that is attached to the board and runs a calibration check each initialization. The TMAG5273 is setup so that the X and Y components of the magnetic field are used for rotational calculations. This device can also be configured to send interrupts under specific conditions, but that is not used in this design. Additionally, each mode in this design uses the angle from the TMAG5273 to determine which LED to turn on for the dial position. Since this is acting like a 12-position selector, hysteresis is added to the dial angle output. This prevents cases where the angle can be right on the line between two LED outputs causing the two LEDs to flicker back and forth. This has the same impact as included a physical keep out method for the position between each of the 12 LEDs.

GUID-20220302-SS0I-HFST-QD9H-R6RWJSR95GDP-low.svgFigure 3-2 Operational Modes Flowchart

During normal operation, this reference design has three different operational modes that change the functions of the inductive touch buttons.