This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Tlv320AIc23B 配置问题

Other Parts Discussed in Thread: TLV320AIC23B

1 Tlv320AIc23B  配置时,采用十六进制,可以采用十进制吗?

2初始化完成后,还可以单独修改某一项配置吗?还是要全部更新?

void ancRenewINCodecRegs(uint16 left_dB,uint16 right_dB)//using to update Input dB
{
ancSetCodecReg(0x1E00); //Codec reset
ancDelayLoop(5); //delay for stability
ancSetCodecReg(left_dB); //LLine,
ancSetCodecReg(512+right_dB); //RLine,
ancSetCodecReg(0x0812); //No sidetone, No BYP, line, mic mute
ancSetCodecReg(0x0A02); //Digital Audio
ancSetCodecReg(0x0E53);// Master, DSP mode,16bits
ancSetCodecReg(0x10D9); //MnClk/2,16kSPS,USB(12MHz)
ancSetCodecReg(0x1200); //Digital IF inactived
ancSetCodecReg(0x0C00); //Power control:All on
ancDelayLoop(5); //delay for stability
}

谢谢!

  • 1. 可以,比如:ancSetCodecReg(7680); //Codec reset(0x1E00 Hex=7680 Dec),这个跟AIC23B没有关系,跟你的MCU的软件驱动及编译器相关。使用十六进制比十进制要直观。

    2. 可以。

  • 谢谢您,现在有个问题,就是Codec的输入可以调节大小,但codec的输出存在问题,不知道是哪出问题了。

    void ancRenewOUTCodecRegs(uint16 left_dB,uint16 right_dB)//using to update Output dB
    {
    ancSetCodecReg(0x1E00); //Codec reset
    ancDelayLoop(5); //delay for stability
    ancSetCodecReg(1024+left_dB); //LLine,
    ancSetCodecReg(1536+right_dB); //RLine,
    ancSetCodecReg(0x0812); //No sidetone, No BYP, line, mic mute
    ancSetCodecReg(0x0A02); //Digital Audio
    ancSetCodecReg(0x0E53);// Master, DSP mode,16bits
    ancSetCodecReg(0x10D9); //MnClk/2,16kSPS,USB(12MHz)
    ancSetCodecReg(0x1200); //Digital IF inactived
    ancSetCodecReg(0x0C00); //Power control:All on
    ancDelayLoop(5); //delay for stability
    }

x 出现错误。请重试或与管理员联系。