Timeline for How do I redefine the overlfow of compare interrupts in Arduino programming?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Sep 5, 2019 at 20:01 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
May 8, 2019 at 20:01 | history | bumped | Community Bot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 8, 2019 at 19:43 | answer | added | Roberto Lo Giacco | timeline score: 1 | |
Apr 8, 2019 at 0:46 | comment | added | jsotola |
call attachInterrupt at various points in my code ..... you could set a global variable at various points in your code ...... the ISR would execute a function dependent on value of the global variable
|
|
Apr 8, 2019 at 0:34 | comment | added | Jot | For a arduino uno with a microcontroller of the avr family? They have the vector table in code (in flash), you can not change that runtime. You could make each vector of the vector table point to ram which you could change runtime, but that would be the same as having a ISR that invokes a function pointer. That is not a bad idea, as long as it is clear and well defined, it is a normal way to change the function of an interrupt. For the pin-change-interrupt I suggest the EnableInterrupt: github.com/GreyGnome/EnableInterrupt | |
Apr 8, 2019 at 0:01 | history | asked | Llaves | CC BY-SA 4.0 |