Search found 7 matches
- Sun Jul 25, 2021 6:48 am
- Forum: Development of MicroPython
- Topic: Minor potential inconsistency in the documentation
- Replies: 3
- Views: 2741
Minor potential inconsistency in the documentation
This refers to the following section: https://docs.micropython.org/en/latest/esp8266/tutorial/pins.html#external-interrupts The section stars with All pins except number 16 can be configured to trigger a hard interrupt if their input changes. You can set code (a callback function) to be executed on ...
- Sun Jul 25, 2021 6:23 am
- Forum: Raspberry Pi microcontroller boards
- Topic: Trivial code sometimes takes 5ms and interrupts are missed
- Replies: 11
- Views: 5587
Re: Trivial code sometimes takes 5ms and interrupts are missed
Thanks.
But am not convinced. But I will take this to the development forum, since it is about a change to micropython documentation and not a question about a raspberry pi-specific question.
But am not convinced. But I will take this to the development forum, since it is about a change to micropython documentation and not a question about a raspberry pi-specific question.
- Sat Jul 24, 2021 8:03 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Trivial code sometimes takes 5ms and interrupts are missed
- Replies: 11
- Views: 5587
Re: Trivial code sometimes takes 5ms and interrupts are missed
Looking back at the docs, I see a potential reason for the fact that I missed this: https://docs.micropython.org/en/latest/esp8266/tutorial/pins.html#external-interrupts "All pins except number 16 can be configured to trigger a hard interrupt if their input changes. You can set code (a callback func...
- Sat Jul 24, 2021 5:13 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Trivial code sometimes takes 5ms and interrupts are missed
- Replies: 11
- Views: 5587
Re: Trivial code sometimes takes 5ms and interrupts are missed
Thanks for a clear answer!
- Sat Jul 24, 2021 5:05 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Trivial code sometimes takes 5ms and interrupts are missed
- Replies: 11
- Views: 5587
Re: Trivial code sometimes takes 5ms and interrupts are missed
Interesting choice not to set the "hard" as the default on a low-level system such as this. I am not convinced that this was the right choice.
Either way, this seems to be a solution, so I will try it and hope for the best.
Either way, this seems to be a solution, so I will try it and hope for the best.
- Sun Jul 18, 2021 8:27 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Trivial code sometimes takes 5ms and interrupts are missed
- Replies: 11
- Views: 5587
Re: Trivial code sometimes takes 5ms and interrupts are missed
Hi So the delay in the loop isn't the big problem (All algorithms I intend to use can be written to compensate for that). But the issue is that interrupt handling seems to be unrelible when these delays happen. So my question to those with kore experience than me is: Does the garbage collector halt ...
- Sat Jul 17, 2021 7:47 pm
- Forum: Raspberry Pi microcontroller boards
- Topic: Trivial code sometimes takes 5ms and interrupts are missed
- Replies: 11
- Views: 5587
Trivial code sometimes takes 5ms and interrupts are missed
Hi So I was a huge fan of the Pico price-point and the fact that it seemed possible to program a microcontroller with Python. But I ave found a blocker for me to use the Pico with Python in my project. The issue is that the main loop in my sample program below sometimes takes up to 5ms to run. And m...