Help to Connect AD1851

Status
Not open for further replies.
Hi guys!
I 'm trying to connect AD1851 to a UC.( ATmega 128)
The I2S system is OK (I have see on scope that the Clock,Latch,Data signals are timing like figure 6 pag 7) but on PIN9 (VOUT) of AD1851 there is always +5v signal so I have thinked that there is a wrong thing in the scheme.

The Uc send to AD1851 a 800hz sine signal.
If I short Pin10(Rf) with Pin11(Sj) the +5V signal become a "strange" (-5v+5v) signal (like a sine but with noise).

I'm comfused 😕 or i'm a donkey :clown:

This is my scheme (Like fig3 pag 6 datasheet "POWER SUPPLIES AND DECOUPLNG")

Pin 1 -5V
Pin 2 0v (-5v+5v)
Pin3 +5V
Pin4 nc
Pin5 CLk to Uc (i2s)
Pin6 LE to Uc (i2s)
pin7 Data to Uc (i2s)
Pin 8 nc
Pin 9 to Input LW-BF Amp.
Pin 10 nc
Pin 11 nc
Pin12 0v (-5v+5v)
Pin13 nc
Pin14 msb adj ( like pag.6 fig 4 Datasheet)
Pin15 trim (like pag 6 fig 4 Datasheet)
Pin16 +5v

Where I am mistaking?

Tnx
McuLuca 😕
 
McuLuca,
You accidentally hit the report button instead of the 'Post reply'.

Here is what you meant to post:
Hi,
I think that the data format is correct ( i2s format )
This is the data streaming .
C = clock D= Data
Ldw= Latch Down
Lup= Latch Up
- C -- C -- C -- C -- C -- C -- C -- C -- C -- C -
Lup D15-D14-D13-D12-D11-D10-D9-D8-D7-D6-
- C -- C -- C -- C -- C
D5-D4-D3-D2-D1-D0


ops..sorry ...error sending the post.
I send the data in i2s format
This is the data format.
C =clock
D=data
LUp=Latch Up
LDw=Latch Dw

I try describe you the format data:

Latch go up ,
Send Data(bit 5 to bit0) and Clock (16bit)
Latch go dw.

I try with a SPI system but there is pause of data and clock beetween 8data bit and 8 data bit(Spi register is 8 bit)
_C__C_C.....C_ Pause _C_C_C_C..._C
D15-14-13...D8 - Pause -D7-6-5-4......D0
LUP______________________________LDW

I try a whitout SPI whit my module
_C__C_C.....C_ C_C_C_C..._C
D15-14-13...D8 D7-6-5-4......D0
LUP_________________________LDW

I have a bmp of scope timing data,clock latch and vout ..but I'cant upload on forum because i'm under "post to a moderator :-( "

Tnx
McuLuca

/Hugo
 
rfbrw said:
Is the data in the correct format ?
about my data format .

I send a wav file of 800hz for 1ms (I loop it so i have a continuos sound ) generate from a Software for Generate Tone I have cut the fist 44byte (according the wav format Header,time long etc etc ) so i send only the data byte.
This are the bytes of "data wav file"
char Str1[]={
0x00,0x00,0xC9,0x06,0x44,0x0D,0x23,0x13,0x24,0x18,0x0C,0x1C,0xAD,0x1E,0xE9,0x1F,0xB1,0x1F,0x08,0x1E,0x01,0x1B,0xC0,0x16,0x76,0x11,0x60,0x0B,0xC6,0x04,0xF4,0xFD,0x3B,0xF7,0xE6,0xF0,0x42,0xEB,0x90,0xE6,0x06,0xE3,0xCE,0xE0,0x01,0xE0,0xA8,0xE0,0xBD,0xE2,0x26,0xE6,0xBD,0xEA,0x4C,0xF0,0x91,0xF6,0x44,0xFD,0x16,0x04,0xBA,0x0A,0xE0,0x10,0x43,0x16,0xA1,0x1A,0xC9,0x1D,0x97,0x1F,0xF4,0x1F,0xDD,0x1E,0x60,0x1C,0x96,0x18,0xB0,0x13,0xE3,0x0D,0x76,0x07,0xB0,0x00};

In Scope2 the Pin11 is connect to Pin10 of AD1851 (Vout is -5v+5V)
In Scope1 the Pin11 and Pin 10 of Ad1851 are nc (Vout is +5V)

Yellow is the Clock (n°1)
Blue is the Data (n°2)
Red is the Latch (n°3)
Green is the Vout (n°4)
 

Attachments

  • scopesignal.jpg
    scopesignal.jpg
    64 KB · Views: 362
mcuLuca said:

about my data format .

I send a wav file of 800hz for 1ms (I loop it so i have a continuos sound ) generate from a Software for Generate Tone I have cut the fist 44byte (according the wav format Header,time long etc etc ) so i send only the data byte.
This are the bytes of "data wav file"
char Str1[]={
0x00,0x00,0xC9,0x06,0x44,0x0D,0x23,0x13,0x24,0x18,0x0C,0x1C,0xAD,0x1E,0xE9,0x1F,0xB1,0x1F,0x08,0x1E,0x01,0x1B,0xC0,0x16,0x76,0x11,0x60,0x0B,0xC6,0x04,0xF4,0xFD,0x3B,0xF7,0xE6,0xF0,0x42,0xEB,0x90,0xE6,0x06,0xE3,0xCE,0xE0,0x01,0xE0,0xA8,0xE0,0xBD,0xE2,0x26,0xE6,0xBD,0xEA,0x4C,0xF0,0x91,0xF6,0x44,0xFD,0x16,0x04,0xBA,0x0A,0xE0,0x10,0x43,0x16,0xA1,0x1A,0xC9,0x1D,0x97,0x1F,0xF4,0x1F,0xDD,0x1E,0x60,0x1C,0x96,0x18,0xB0,0x13,0xE3,0x0D,0x76,0x07,0xB0,0x00};

In Scope2 the Pin11 is connect to Pin10 of AD1851 (Vout is -5v+5V)
In Scope1 the Pin11 and Pin 10 of Ad1851 are nc (Vout is +5V)

Yellow is the Clock (n°1)
Blue is the Data (n°2)
Red is the Latch (n°3)
Green is the Vout (n°4)


asl please.
Connect the IV the proper way
 
Hi Guy

I want to ask you some question.
1. I only use Atm16,AD1851,Amp to design circuit. do I have to add more component. Is that enough.
2. When I give the sound to Speaker. It is the distortion not a speak. How can I correct it.It means that : I want to ask about the pulse of clock and latch. How about the width of pulse you use
 
Status
Not open for further replies.