-
What happens, when an interrupt is called?
Does the while-loop stop and the active core runs the interrupt (edge1 or edge4) or does the second core the job with the interrupt? What happens, when egde1 is running and edge4 is called? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Micropython only uses core 1 on the ESP32 family of processors. Core 2 is reserved for the operating system and the underlying runtime, but that is transparent. Micropython will complete the current instruction in the while loop, call edge1 or edge4, and then return to the next instruction. Interrupts are only served between instructions, so you need not worry about half-completed instructions.
Edge1 will complete, then edge4 is called, and then control will return to the next instruction in the while loop. |
Beta Was this translation helpful? Give feedback.
Micropython only uses core 1 on the ESP32 family of processors. Core 2 is reserved for the operating system and the underlying runtime, but that is transparent.
Micropython will complete the current instruction in the while loop, call edge1 or edge4, and then return to the next instruction. Interrupts are only served between instructions, so you need not worry about half-completed instructions.
Edge1 will complete, then edge4 is called, and then control will return to the next instruction in the wh…