SLASFC6 August 2024 TAS2120
ADVANCE INFORMATION
The device provides a flexible Audio Serial Interface (ASI) port. The port can be configured to support a variety of formats including stereo I2S, Left Justified, and TDM. Mono audio playback is available via the SDIN pin. The SDOUT pin is used to transmit sample streams including PVDD voltage, VBAT voltage, die temperature, status and audio for echo reference.
The TDM serial audio port supports up to 16 32-bit time slots at 44.1/48 kHz, 8 32-bit time slots at a 88.2/96 kHz sample rate and 4 32-bit time slots at a 176.4/192 kHz sample rate. The device supports 2 time slots at 32 bits in width and 4 or 8 time slots at 16, 24 or 32 bits in width. The device automatically detects the number of time slots and this does not need to be programmed. PCM data sampling rate and SBCLK to FSYNC ratio detected on the TDM bus is reported back on the read-only register bits FS_RATE_DETECTED[2:0] and FS_RATIO_DETECTED[3:0] respectively.
FS_RATE_DETECTED[2:0] (Read Only) |
Setting |
---|---|
000 | Reserved |
001 | 14.7 kHz / 16 kHz |
010 | 22.05 kHz / 24 kHz |
011 | 29.4 kHz / 32 kHz |
100 (default) |
44.1 kHz / 48 kHz |
101 | 88.2 kHz / 96 kHz |
110 | 176.4 kHz / 192 kHz |
111 | Error condition |
The RX_SLEN[1:0] register bits set the length of the RX time slot to 16, 24 or 32 (default) bits. The length of the audio sample word within the time slot is configured by the RX_WLEN[1:0] register bits. The RX port will left justify the audio sample within the time slot by default, but this can be changed to right justification via the RX_JUSTIFY register bit. The device supports mono and stereo down mix playback ([L+R]/2). By default the device will playback mono from the time slot equal to the I2C base address offset (set by the AD1 and AD2 pins) for playback. The RX_SCFG[1:0] register bits can be used to override the playback source to the left time slot, right time slot or stereo down mix set by the RX_SLOT_R[3:0] and RX_SLOT_L[3:0] register bits.
If time slot selection places reception either partially or fully beyond the frame boundary, the receiver returns a null sample equivalent to a digitally muted sample.
The TDM port can transmit a number of sample streams on the SDOUT pin including interrupts and status, PVDD voltage, VBAT voltage and die temperature.
Either the rising or falling edge of SBCLK can be used to transmit data on the SDOUT pin. This can be configured by setting the TX_EDGE register bit. The TX_OFFSET[2:0] register bits define the number SBCLK cycles between the start of a frame and the beginning of time slot 0. This is programmed to 0 for Left Justified format and 1 for I2S format. The TDM TX can either transmit logic 0 or Hi-Z depending on the setting of the TX_FILL register bit. An optional bus keeper can weakly hold the state of SDOUT pin when all devices are driving Hi-Z. Since only one bus keeper is required on SDOUT, this feature can be disabled via the TX_KEEPEN register bit. The bus keeper can be configured to hold the bus for only 1 LSB or Always (permanent) using TX_KEEPLN register bit. Additionally, the keeper LSB can be driven for a full cycle or half of cycle using TX_KEEPCY register bit.
The device also support monitoring and TDM transmit of PVDD and VBAT input voltages. For PVDD slot, enable and length settings PVDD_SLOT[5:0], PVDD_TX and PVDD_SLEN register bits can be use. Similarly for VBAT slot, enable and length settings VBAT_SLOT[5:0], VBAT_TX and VBAT_SLEN register bits can be used. Die temperature can also be transmitted from the device in same manner. Enable and slot settings for Die temperature are done using TEMP_TX and TEMP_SLOT [5:0] register bits.
Information about status of slots can be found in STATUS_SLOT[5:0] register bits. STATUS_TX register bit set high enables the status transmit. Status slot length is always 8bits and Table 6-45 summarizes the status bit information that is transmitted when status transmit is enabled. If time slot selections place transmission beyond the frame boundary, the transmitter will truncate transmission at the frame boundary.
Status Slot bit location | Status signal |
---|---|
Bit 0 | PVDD UVLO status bit |
Bit 1 | Over current protection status bit |
Bit 2 | Over temperature protection status bit |
Bit 3 | Brown out protection active status bit |
Bit 4 | Limiter active status bit |
Bit 5 | Noise gate mode status bit |
Bit 6 | Y-bridge status bit. 1 = PVDD switching, 0 = VDD switching |
Bit 7 | Device Active status bit |