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.

port P0_2 interrupt in cc2541

Hello!!

I am working with the sensor tag and I would like to make a routine that continuously storages and processes accelerometer data. I also want to send some data periodically to my smartphone. The accelerometer generates an interrupt in P0.2 port every time you have data ready for reading, how can I do it? It’s very important no accelerometer data is lost.
I have seen how the use of the buttons is handled but I’m not sure how to adapt it to my case. Could anyone help me?