Post Go back to editing

ADV7513 with I2S audio problem

Thread Summary

The user encountered an issue with no audio output on a Terasic Cyclone V GX Starter Kit with an ADV7513, despite video working fine at 640x480 @ 60 Hz. The problem was resolved by fixing a write error in the audio source, not related to the ADV7513 or I2S controller configuration. The user confirmed a clean 400 Hz square wave output after the fix.
AI Generated Content

Hi,

I have a test board (Terasic Cyclone V GX Starter Kit) with an ADV7513 onboard. I added wires needed to access the Audio-Pins (SCLK, MCLK, I2S0-3). I configured the ADV7513 and added a small audio generator for a 400Hz Square,

but i can't hear anything. Video is working fine with 640x480 @ 25 MHz. I'm relatively sure that my I2S master is spec conform.

My I2S-Signal:

MCLK = 12.288 MHz

SCLK = 3.072 MHz

Fs = 48 kHz

16 bit per Channel

2 Channels

Here is the configuration script i use. It is based on

-  ##Scripts 6 HDMI PCM Audio## :6-4a - 1920 x 1080p60, YPrPb 444 in, YPrPb 444 out, 32kHz 8ch, VIC 16:

- Linux ADV7511 driver

92[7:0] => 0x00 Deactivate Interrupts

94[7:0] => 0x00 Deactivate Interrupts

95[7:0] => 0x00 Deactivate Interrupts

93[7:0] => 0xFF Clear Interrupts

96[7:0] => 0xFF Clear Interrupts

97[7:0] => 0xFF Clear Interrupts

41[6] => 0b0 Power Up

98[7:0] => 0x03 Fixed

99[7:0] => 0x02 Fixed

9A[7:1] => 0b1110000 Fixed

9C[7:0] => 0x30 Fixed

9D[1:0] => 0b01 Fixed

A2[7:0] => 0xA4 Fixed

A3[7:0] => 0xA4 Fixed

A5[7:0] => 0x44 Fixed

AB[7:0] => 0x40 Fixed

E0[7:0] => 0xD0 Fixed

D1[7:0] => 0xFF Fixed

DE[7:0] => 0x9C Fixed

15[7:0] => 0b00100000 I2S Sampling Freq = 48 kHz, Input ID = RGB 4:4:4

16[7] => 0b0 Output Format = 4:4:4

16[5:2] => 0b1100 ColorDepth = 8 bit, Input Pin Assignment = Not Valid

16[0] => 0b0 Output Color Space = RGB

17[1] => 0b0 Aspect Ratio 4:3

18[7] => 0b0 CSC Disabled

AF[7] => 0b0 HDCP Disabled

AF[1] => 0b1 HDMI Mode

40[7] => 0b1 GC Packet Enabled

4C[3:0] => 0b0100 ??? Unknown ??? From Terasic HDMI Demo Source code

01[7:0] => 0x00 N

02[7:0] => 0x18 N

03[7:0] => 0x00 N

0A[7:0] => 0x00 CTS Automatic, I2S, 256xfs

0B[7:0] => 0x0E SCLK risign edge, MCLK internal generated

0C[7:0] => 0x04 Samling Freq from I2S, I2S0 Enabled, Standard I2S mode

0D[7:0] => 0x10 I2S Bit Width = 16 bit

12[7:0] => 0x00 Not Copy protected

14[7:0] => 0x02 Audio Word Length = 24 bits

73[7:0] => 0x01 2 Channels

76[7:0] => 0x00 Stereo Speaker mapping

94[7:0] => 0x80 Enable HPD interrupt

Does anyone have an idea what i'm doing wrong?

Thanks

Chris

attachments.zip
on Apr 15, 2016 2:13 PM
0

Try 1080p60 format.  You maybe running out of audio bandwidth available at 480p

  • Hi

    I tested it with 720p and 1080p but still no sound out of my TV :-/

    Best Regards,

    Chris

  • Hi,

    What is your input Source and how you are sending PCM Audio? As per the script reference, this would be PCM 2 channel with 48K sampling frequency Right?

    Did you check whether the audio info frame is coming correct by connecting analyzer in TX?

    Please use one of our evaluation board and cross check whether you could see the audio fine for the same script.

    Best Regards,

    Jeyasudha.M

  • Hi guys

    Sorry wasting your time. I found the bug. The ADV7513 was good, my I2S Controller was good, the audio source had a simple write error. I now get a clean 400 Hz Square.

    > I tested your considerations with the bandwidth. I changed video resolution back to 640x480 without having any problem.

    Best Regards

    Chris

  • Hi,

    Good to know that you could resolve the problem. We will be glad if you can close this thread

    Best Regards,

    Jeyasudha.M