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.

How can I pass data to interrupt handlers for Stellaris Launchpad?

Hello Everyone,

I want to create a small new protocol in order to communicate with other non TI MCU's (though I rather used TIMCUs, but don' have any around so...) so had a look on the timers example found under /StellarisWare/boards/timer 

I understood the fact that interrupt handlers are in a way independent code snippets that are processed when an interrupt occurs. The thing is that I would like to send some data from inside main() or an other function to such handler functions.

Thank you in advance for your time and examples.

Costin

  • Hi,

    Well, let's say the things are a little bit opposite to your point of view: you must think to peripherals as hardware add-on to a cpu, in order to signal hardware events to be taken int consideration by the cpu. This is done with interrupts. From interrupts you can read global data or call any global function - but the reverse - i.e sending data from main to interrupts can be done by triggering an interrupt - not so easy (although can be done) in the presence of real events. 

    I recommend you to look at this site - there are very good examples there - in fact it would be better to run/understand everything which can be downloaded from this site (if you can afford it, buy the manual).

    Petrei.

    PS: are you the same on stelarisiti?