• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

Detach Interruptrequest on RP2 with MicroPython

Q&A Forum › Category: Raspberry Pi › Detach Interruptrequest on RP2 with MicroPython
0 Vote Up Vote Down
Rudolf Seidel asked 7 months ago

Raspberry Pico, RP2, MicroPython
Occasionally an IR receiver sends a sequence of low/high signals to a pin. The start of the episode is a change from high to low and is to be determined by an interrupt request. Interrupt handler routine starts to record and analyze the subsequent changes.
But because each subsequent signal change from high to low restarts the interrupt request, the handler routine can never be executed.
How can the interrupt request be interrupted for the duration of the evaluation?
 

Question Tags: RP2040 Detach Interrupt
3 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

Hi.
I’m sorry, but I’m not exactly sure that I understood what you want to do…
You want to avoid retriggering the interrupt when processing the signal?
You can disable the interrupt temporarily and then re-enable again.
See the response by stanely on this discussion: https://forum.micropython.org/viewtopic.php?t=7900
 
I hope this helps.
Regards,
Sara
 

0 Vote Up Vote Down
Rudolf Seidel answered 7 months ago

Very good, you got it right and formulated it more aptly. Thank you for pointing out other forum posts.

0 Vote Up Vote Down
Sara Santos Staff answered 7 months ago

I’ll mark this issue as resolved. If you need further help, you just need to open a new question in our forum.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.