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.

RTOS/CC1310: Blocking interrupt for 50ms after occurrence

Part Number: CC1310

Tool/software: TI-RTOS

Hey guys,

I have two pins set as HwI to detect movements with a PIR sensor and two comparators. Therefor I use the PIN.h driver. It could be, that the interrupt is triggered not only once but a few times when the impulse hits the pin. And this causes small current peaks with a 3ms duration I want to avoid.

I want to enable the interrupt after the 50ms. I think using a timer for the 50ms is the best way and in the timers callback function I would enable the HwI again. And in the HwI Callback function I would disable the Hwi. However, going through the driver reference, I do not see an elegant way to proceed.

How can I disable/enable the interrupt using the PIN driver for 50ms after each occurrence?

Any thoughts on that?

kind regards

Slev1n

  • First, how in this related to e2e.ti.com/.../763645 ? I would have assumed that you either wanted to use a pin used the CM3 domain or in the sensor controller?

    I think you are on the correct track. You can change the pin setup with the pin driver. Meaning that when you get the first interrupt you set the pin not to give interrupt and then in the callback from the timer do a new pin setup where you set interrupt again.
  • Regarding your question if it is related with my old thread. I'd like to understand both, Sensor Contoller Studio and using standard TI-RTOS driver functions. However, since with the TIDA 00489 hardware layout the SCS cannot access the necessary I/Os I have to use TI-RTOS cmds to set/unset HWI.

    I will try accomplishing the task using the PIN driver.