- Sat Nov 18, 2023 3:32 pm
#65832
I'm trying desperately to figure out why each injection and ignition channel needs a separate timer-counter-compare... but it may be due to the more advanced capabilities (and higher clock speeds) of newer microprocessors compared to the Mega2560.
I am not an experienced enough with embedded firmware to know for sure, but interrupts on the SAMD51 (and probably the PIO functions on the RP2040) can be triggered from multiple different counts off the same timer. As the timer can be working at very high frequency/speed, I'm fairly sure any one timer could cope with all the interrupts on one cylinder, for instance. On a Dropbear, the timers don't need to associated with an IO pin either... as they drive the 33810 via SPI.
What am I missing?
Mark.
I am not an experienced enough with embedded firmware to know for sure, but interrupts on the SAMD51 (and probably the PIO functions on the RP2040) can be triggered from multiple different counts off the same timer. As the timer can be working at very high frequency/speed, I'm fairly sure any one timer could cope with all the interrupts on one cylinder, for instance. On a Dropbear, the timers don't need to associated with an IO pin either... as they drive the 33810 via SPI.
What am I missing?
Mark.