Audio Project Amplifier Speaker Loudspeaker Kit
diyAudio.com diyAudio Forums Archive > Top > Source > Digital
 
AD1851 16bit Audio - Click HERE for Original Thread
slywolf
Hi,i cant send correct codes to ad1851 ,,are there any working example codes ?.My codes is below

serial (unsigned int output_data)

{

unsigned char index;

LE=1;

for( index = 0; index < 16 ; index++ ) // Send 16 bits to
{



if(output_data & 0x8000)
DATA=1;
else
DATA=0;

output_data <<= 1;



CLK=0;
CLK=1;
CLK=0;
}

LE=0;

}

Page generated in 0.051503896713257 seconds with 16 queries,
spending 0.02652144 doing MySQL queries and 0.02498245 doing PHP things.

Powered by: Search Engine Indexer and vBulletin
Copyright ©1999-2008 diyAudio.com