now i have a strange isssue, when codec is the master, my i2s data is delayed 50ns compare with the falling edge of bclk.
when play 192khz file, the i2s data is seted at the rising edge of bclk, so this is error, it should be seted at falling edge of bclk.
now when the sample frequency is great than 17600, it can't be play well, so any one has some advise:
1. why there is a 50ns delay ?
2. how to fix it ?
many thanks
hu yongfa
following is my app infomation:
1. the app is based on app_usb_aud_skc_su1, the firmware version is 6.15.2.
2. #define CODEC_MASTER 1
3. my simple change in audioports.xc
Code: Select all
...
configure_clock_src(clk_audio_bclk, p_bclk);
configure_out_port_no_ready(p_i2s_dac[i], clk_audio_bclk, 0);
configure_in_port_no_ready(p_lrclk, clk_audio_bclk);
start_clock(clk_audio_bclk);
while(1)
p_i2s_dac[0] <: 0x55555555;// i2s data
...
