Hello Folks,
1. By providing proper signals( I2S,MCLK,BCLK,WCLK), Is Codec able to generate audio on Headphone(connected) with default setup?
if not, what would be the initialization sequence to achieve that?
2. It would be best if you can provide sample code for initializing the codec(AIC3110).
3. I tried to generate the beep sound but i find no response from the codec.and also i am not getting the expected clocks from the PLL.kindly suggest where could be the issue?
Register settings and input clocks are provided below
Input clocks
MCLK : 12.28Mhz(approx)
WCLK : 48Khz(approx)
SCLK : 3Mhz(approx)
Register Settings
Register |
Value |
Comment |
0x04 |
0x03 |
Codec clock takes PLL clock |
0x05 |
0x91 |
P : 1, R : 1 |
0x06 |
0x06 |
j : 6.929 |
0x07 |
0x03 |
|
0x08 |
0xA1 |
|
0x0B |
0x85 |
NDAC : 5 |
0x0C |
0x83 |
MDAC : 3 |
0x0D |
0x00 |
DOSR : 128 |
0x0E |
0x80 |
|
Clock monitoring Registers |
||
0x19 |
0x04 |
CLK Div : DAC CLK (Dac fs) |
0x1A |
0x81 |
Clk out divider : 1 |
0x33 |
0x10 |
CLk out pin : GPIO Pin |
with the above settings i monitor clocks via GPIO pin,below are the values i got but it is not as expected
CLocks |
Monitored |
Expected |
PLL Clk |
74Mhz |
84.67Mhz |
DAC Clk(Dac fs) |
14Mhz |
44.1Khz |
DAC Mod Clk |
5.1Mhz |
5.64Mhz |
Thanks,
Srijan