Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Own data to audio

Help me please, I want to send my own data to audio, I'm working with this code without results, ....

# include "sdram_to_audio.h"# define sram_base 0x01080000# define timer_base 0x01100000# define leds_base 0x1100060

int count=0;

volatile int * audio_ptr = (int *) 0x01100050; // audio port

long audiobuf[128];

int data[2]={9991000,987672000};

int main()

{

while (1) {

*(audio_ptr + 2) = data[count];

*(audio_ptr + 3) = data[count];

count=count+1;

if (count>=1)count=0;

}

}

I test Audio core with other code samples (mic to spk) and it works fine.

What can I do to send my own data to spk ???

:confused:
No RepliesBe the first to reply