Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
21584 Discussions

piano in nios II using interrupts

Altera_Forum
Honored Contributor II
1,221 Views

My scenario is that i have the notes stored on memory. I want to use the audio codec to play the notes i have saved in memory.  

 

I would like to do this using nios ii assembly language. 

 

for example if i have on memory the notes e, f, g, a, b. then i would want the audio codec to play these notes back after it has been initialized in memory. I don't know how to send these notes to the interrupt handler in nios ii. Moreover these notes can change in length.. for example i might want to play an e for 4 beats rather than 1 beat. (i might set one beat to be half a second)... but these details aren't important. I was just confused in how to send this to the interrupt handler and if someone can help with this it would be greatly appreciated.
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
488 Views

hmmm... I am sorry , If i really know to i will help u. but I am kind stuck in audio codec either..huhuhu.. btw, try to look at this link. 

http://dientuvn.com/dff/2010/07/using-audio-core-on-de2-board/#comment-73 

I hope it can help u . =) good luck
0 Kudos
Reply