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.

AIC23输出数据的含义



AIC23的配置如下:

/*数字音频接口格式设置
AIC23为主模式,数据为DSP模式,数据长度16位*/
Uint16 digital_audio_inteface_format[2]={0x0e,0x53};
/*AIC23的波特率设置,采样率为44.1K*/
Uint16 sample_rate_control[2] = {0x10,0x20};
/*AIC23寄存器复位*/
Uint16 reset[2] ={0x1e,0x00};
/*AIC23节电方式设置,所有部分均所与工作状态*/
Uint16 power_down_control[2] ={0x0c,0x01};
/*AIC23模拟音频的控制
DAC使能,ADC输入选择为MIC*/
Uint16 analog_aduio_path_control[2] ={0x08,0x15};
/*AIC23数字音频通路的控制*/
Uint16 digital_audio_path_control[2] ={0x0a,0x05};
/*AIC23数字接口的激活*/
Uint16 digital_interface_activation[2] ={0x12,0x01};
/*AIC23左通路音频调节*/
Uint16 left_line_input_volume_control[2] ={0x00,0x00};
/*AIC23右通路音频调节*/
Uint16 right_line_input_volume_control[2] ={0x02,0x00};
/*AIC23耳机左通路音频调节*/
Uint16 left_headphone_volume_control[2] ={0x05,0x79};
/*AIC23耳机右通路音频调节*/
Uint16 right_headphone_volume_control[2] = {0x07,0x79};

AIC23接收数据:

int data;
while(!MCBSP_rrdy(hMcbsp)){};
data = MCBSP_read16(hMcbsp);
MCBSP_write16(hMcbsp,data);

那么问题是:

1、AIC23设置的是数据长度16位,data设置为int是多少位?能将左右声道全部接受么?

2、一般用什么数据类型来接受AIC23的数据呢?(数据长度为16位时)接收到的数据是左声道还是右声道?怎么判断?

3、AIC23得到的16位的数据时有符号位的么?它表示什么物理意义呢?