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.

Generate an interrupt when pressing a button

Other Parts Discussed in Thread: TMS320C5515

I would like to know if there is a way to generate an interrupt on ezDSP5535 when pressing one of the buttons SW1/2.

It looks like SAR can generate an interrupt everytime there is an ADC conversion ready, but this is not what I want, I just want the interrupt to be generated when one of the buttons is pressed.

There is a PENIRQ interrupt, but in the PEN function all the GPAIN[0:3] are used and in the ezDSP5535 the buttons are only connected to GPAIN1.

Is PENIRQ something that can be configured using CSL library? Where SAR CSL functions are documented? I can't find the SAR block in theCSL API Reference Guide.

Thanks,

  • I am also interested in this question. I am using the TMS320C5515 eZdsp though. I tried the polling method (reading periodically the status of the buttons), but the routine that gets the status from the buttons is too slow, so I'm losing samples periodically. As I am new to dsp developing I took the "switch" test as an example to develop my code.

    I would like to know if there is a way to read the status of the buttons by interruption, and only trigger the code when a button has been pressed, so the samples are only lost in that case.

    Thank you very much