Hi, i am trying to set up interrupt on INT2 on C5509A using DSP BIOS. is there a simple example anyone can share?
i have read all docs like DSP BIOS API, etc and have tried out their syntax but no luck..
regards
Tanman
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Are you setting it up through the GUI (*.tcf file) or through run-time APIs? The easiest way is to do it through the GUI. Here are a few tips:
Brad
Hello
we have implemented steps 1-4. However, in our code, we do not leave the main, hence there is no return used. is it mandatory to leave the mains function for the interrupt to affect?
we have not used any task scheduler,, is that alright?
regards
Tanman
Tanman,
To use DSP BIOS, you need to leave main() because that is how the Scheduler is started which manages the activities in your program. Some details on starting up DSP/BIOS is contained in the DSP/BIOS User Guide which is available here: http://www-s.ti.com/sc/techlit/spru423. Look in section 2.7.
The complete DSP/BIOS documentation list (including C55xx Tutorial) is available here: http://software-dl.ti.com/dsps/dsps_registered_sw/sdo_sb/targetcontent/bios/bios_5_30/sabios-g11/docs/index_bios_manuals.html.
Regards.
I tried leaving main. i called a separate function after mains. but when i am single stepping, it doesnt execute that function and enters the DSP idle loop. and i still do not see the intr2 getting set.
i even tried running the code in simulation mode where i manually set the IFR0 flag bits but the intr2 didnt register a count in the simulator analysis.
is there like a simple code just to toggle intr2 with or without dsp bios?
reg
Tanman,
I need to check a couple of things with you.
What version of CCS, DSP/BIOS and Compiler are you using?
When you say you are leaving main you call another function, what does that mean? What BIOS needs to run is for the main() function to complete execution completely. Are you doing that? It's not clear.
You ask at the end for example code to toggle intr2 (mean int2?). Do you realize that int2 is an interrupt input to the DSP? Meaning that an external device toggles the pin to request interrupt servicing. Are we talking about the same thing?
There are DSP/BIOS examples delivered with Code Composer Studio. In CCS3.1 they are under CCS install folder \examples. For CCS3.3 they are under the DSP/BIOS installation folder \packages\ti\bios\examples.
Regards.
Hello
we are using CCS 3.3, DSP Bios 5.31.02. i am aware that Intr2 is an interrupt input.. we have applied an external signal of 1khz of 500usec pulse width as an input to Intr2.
as per Brads mail, we have completed all 5 steps , including returning from main. we are even clearing INTM bit, while we are in main.
For the purpose of debugging the issue, temporarily comment out the line of code where you enable the interrupt in the IER. See if the corresponding bit gets set in the IFR indicating that the external event has been latched. If not, you have some other configuration issue.