Hi,
On MSB bit of DOUT I see this bit toggling frequently. I get values like:
0x0023, 0x0025, 0x8020, 0x8023 and so on. 0x80xx is a large -ve value in 2's complement. And I get lot of noise.
FS D15 D14 .... D0 .................................. FS D15 D14 .... D0
Pl. advise how to remove the MSB bit toggling.
REgards,
Hari
My configuration is
/* Control 1 */
#define CTRL1_INIT (CTRL1_CX | CTRL1_DAC16)
/* Control 2 */
#define CTRL2_INIT (CTRL2_TURBO | CTRL2_HPC_I2C | CTRL2_I2C_ADR(4))
/* Control 3 */
#define CTRL3_INIT (CTRL3_PWDN_ON | CTRL3_OSR_128 | CTRL3_ASRF_1)
/* Control 5A */
#define CTRL5A_REG 5
#define CTRL5A_INIT (GAIN_11db | CTRL5A_SUBREG) // ADC Gain
/* Control 5B */
#define CTRL5B_INIT (GAIN_0db | CTRL5B_SUBREG) // DAC Gain
/* Control 5C */
#define CTRL5C_REG 5
#define CTRL5C_INIT (CTRL5C_SIDE_GAIN_MUTE | CTRL5C_IN_GAIN_6db | CTRL5C_SUBREG) // Buffer Gain
/* Control 5D */
#define CTRL5D_INIT (CTRL5D_SUBREG)
/* Control 6 */
#define CTRL6_INIT (CTRL6_PSD0_SINGLE_END | CTRL6_AINSEL_M1)
/* CODEC i2c base address */
#define CODEC_I2C_ADR 0x40
Some more information on the design:
- 8MHz is the TDM clock
- 8KHz is the Frame Sync
INP1 is input