My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
pic16 's have one level of interrupt , therefore an interrupt can never be interrupted
disabling the timer1 interrupt inside an interrupt is a pointless exercises that accomplishes exactly nothing
except to waste machine cycles
disabling the timer1 interrupt does not in any way shape or form stop the timer from running.
the only way to stop the timer is to either turn it off or stop its clock signal.
Warning I'm not a teacher
No, but any interrupt triggered while an ISR is running will be handled once the ISR finishes.
(p.129 16F18877)
So you can have multiple Timers running at the same time (including USART interrupts and others).Note
1: Individual interrupt flag bits are set, regardless of the state of any other enable bits.
2: All interrupts will be ignored while the GIE bit is cleared. Any interrupt occurring while the GIE bit is clear will be serviced when the GIE bit is set again.
No...?
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
of course you can, as many enabled as you see fitSo you can have multiple Timers running at the same time (including USART interrupts and others).
but one and only one can be serviced at a time, and it cannot be interrupted. first come first served.
additional interrupts are serviced sequentially, one and only one at a time in the order the interrupt handler runs them.
hence keep isr's short
Warning I'm not a teacher
Bookmarks