3 ms·
> Who needs timer ICs when you have a busywait while loop checking the high res timer... A lot of people are concerned about power usage these days, particular
by bb88 5y ago
> Who needs timer ICs when you have a busywait while loop checking the high res timer...
A lot of people are concerned about power usage these days, particularly if these things are running off a solar cell.
And these days, most embedded controllers include some kind of timer anyway. Micropython has a timer interface that interrupts into a python subroutine. I use this for application level routines interfacing with a hardware watchdog.
- jbluepolarbear 5y agoWhy couldn’t you do the same thing with C#? Being worried about power is fine and all, but I’d rather build the application and then analyze the actual performance and power draw to determine the appropriate solution for power efficiency. I’m sure there’s some WFI (wait for interrupt) available that could be used to solve this.
- bb88 5y agoThere's nothing wrong with C# -- as long as the tooling supports the processor you're targeting and the interrupt/sleep states of the micro. If you're running off a battery say, then it's better to build your software from the start to optimize for the various sleep modes. https://lastminuteengineers.com/esp32-sleep-modes-power-consumption/ https://lastminuteengineers.com/esp32-sleep-modes-power-cons...