DSPRelated.com
Forums

HWI made by Oscilloscope

Started by Guillem Hernandez Sola November 8, 2006
I'm trying to do this example, using HWI, and input

//Loop_intr.c Loop program using interrupt. Output = delayed input
#include "dsk6713_aic23.h" //codec-DSK support file
Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate
Uint32 output_data;
Uint32 input_data;
#define IDLE asm(" idle")

interrupt void c_int11() //interrupt service routine
{
output_sample(output_data); //output data
input_data = input_sample(); //input data
return;
}
void main()
{
comm_intr(); //init DSK, codec, McBSP
while(1) //infinite loop
{
IDLE;
output_data = input_data;
}
}

And I also use c6713dskinit.c (from R.Chassaing), Vector_int.asm (from
R.Chassaing).
My problem is that I load this application and it seems to run, but i reload
and it doesn't work.
I don't know if my interrupt is well done, or i've to change my interrupt
number.
Regards,
--
~# Guillem Hernandez Sola
~# http://www.hernandezsola.com
~$ Nerd && Geek && (...)
~$ http://distorsio.upc.es && http://ieee.upc.es && http://revistes.upc.es
~# Where Pop8 >> 0x0A
@(-_-)@ (I'm Leia Organa)