Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++

Own data to audio

Altera_Forum
Honored Contributor II
952 Views

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:
0 Kudos
0 Replies
Reply