How can I write/read to/from Audio codec registers?
I want to disable effects, what I should do?
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.
How can I write/read to/from Audio codec registers?
I want to disable effects, what I should do?
How can I write/read to/from Audio codec registers?
First please download a datasheet for TLV320AIC3106 and have a look on simplified block diagram (page 3) and then typical circuit configuration (page 18).
http://www.ti.com/lit/ds/slas509e/slas509e.pdf
For write/read to registers use I2C interface (SCL, SDA) and connect it with some processor. Have a look on connection TLV320AIC3106 and TMS320C6748 on lcdk in schematics from attached link. (page 7 and 10)
http://processors.wiki.ti.com/images/6/69/OMAP-L138_C6748_LC_Dev_Kit_Ver_A5_.zip
You send via I2C command words, that enables you to write and read to registers.
to read: send the register address
to write: send the register address+ data
Please download the starterware from an attached link
http://software-dl.ti.com/dsps/dsps_public_sw/c6000/starterware/01_20_04_01/index_FDS.html
and go to: C6748_StarterWare_1_20_04_01/examples/lcdkC6748/mcasp
there are the drivers for AIC and in codecif.c you can find the read/write to register routine for AIC using I2C.
I want to disable effects, what I should do?
You schould write 0 to bits D3 and D1 of Audio Codec Digital Filter Control Register, which is 12th register on page 0.
You can do it so:
unsigned char reg_data;
reg_data=CodecRegRead(SOC_I2C_0_REGS,12);
reg_data&=0xF5;
CodecRegWrite(SOC_I2C_0_REGS,12,reg_data);
It should helps you in your work.
Best regards
Petr Duga