SLAS666B January 2010 – October 2018 TLV320DAC3101
PRODUCTION DATA.
The device includes capability to monitor a headphone jack to determine if a plug has been inserted into the jack. The device also includes the capability to detect a button press, even, for example, when starting calls on mobile phones with headsets.Figure 6-17 shows the circuit configuration to enable this feature.
Headphone Detection is enabled by programming page 0 / register 67, bit D1. In order to avoid false detections because of mechanical vibrations in headset jacks or microphone buttons, a debounce function is provided for glitch rejection. For the case of headset insertion, a debounce function with a range of 32 ms to 512 ms is provided. This can be programmed through page 0 / register 67, bits D4–D2. For improved button-press detection, the debounce function has a range of 8 ms to 32 ms by programming page 0 / register 67, bits D1–D0.
The device also provides feedback to the user through register-readable flags as well as an interrupt on the I/O pins when a button press or a headset insertion or removal event is detected. The value in page 0 / register 46, bits D5–D4 provides the instantaneous state of button press and headset insertion. Page 0 / register 44, bit D5 is a sticky (latched) flag that is set when the button-press event is detected. Page 0 / register 44, bit D4 is a sticky flag which is set when the headset insertion or removal event is detected. These sticky flags are set by the event occurrence, and are reset only when read. This requires polling page 0 / register 44. To avoid polling and the associated overhead, the device also provides an interrupt feature, whereby events can trigger the INT1, the INT2, or both interrupts. These interrupt events can be routed to one of the digital output pins. See Section 6.3.10.6 for details.
The device not only detects a headset insertion event, but also is able to distinguish between the different headsets inserted, such as stereo headphones or cellular headphones. After the headset-detection event, the user can read page 0 / register 67, bits D6–D5 to determine the type of headset inserted.
REGISTER | DESCRIPTION |
---|---|
Page 0 / register 67, bit D1 | Headset-detection enable/disable |
Page 0 / register 67, bits D4–D2 | Debounce programmability for headset detection |
Page 0 / register 67, bits D1–D0 | Debounce programmability for button press |
Page 0 / register 44, bit D5 | Sticky flag for button-press event |
Page 0 / register 44, bit D4 | Sticky flag for headset-insertion or -removal event |
Page 0 / register 46, bit D5 | Status flag for button-press event |
Page 0 / register 46, bit D4 | Status flag for headset insertion and removal |
Page 0 / register 67, bits D6–D5 | Flags for type of headset detected |
The headset detection block requires AVDD to be powered. The headset detection feature in the device is achieved with very low power overhead, requiring less than 20 μA of additional current from the AVDD supply.