SNAA355 April   2021 TPL1401

 

  1.   Design Objective
  2.   Design Description
  3.   Design Notes
  4.   Design Simulations
    1.     Transient Simulation Results
  5.   Register Settings
  6.   Pseudo Code Example
  7.   Design Featured Devices
  8.   Design References

Pseudo Code Example

The following shows a pseudo code sequence to program the initial register values to the NVM of the TPL1401. The values given here are for the design choices made in the Design Notes.

Pseudo Code Example for Microphone Sensitivity Tuning Using the TPL1401

//SYNTAX: WRITE <REGISTER NAME (Hex code)>, <MSB DATA>, <LSB DATA>  
//Power-up the device, internal reference disabled
WRITE GENERAL_CONFIG(0xD1), 0x01, 0xE0 
//Write digipot code 12-bit aligned)
WRITE DPOT_POSITION(0x21), 0x08, 0x00 
//Write settings to the NVM
WRITE PROTECT(0xD3), 0x00, 0x10