[quote:f5f95849f6="AdrianJ"]That cannot happen unless you explicitly re-enable interrupts within your interrupt code, which is not done here.[/quote:f5f95849f6]
Adrian, you can trust me, that I do not mistakenly assume nested interrupts :D
However, what I've mistakenly assumed was, that said code does some accounting of overflows, in this case the later executed overflow int would have destroyed the count result. But the shown code only limits the range to one counter width, which awards this code with the trophy to be one of the most inefficient implementations of ICP-code, I've seen since long time. The advantages of the ICP-unit got completely lost. What's done there, can be done the same way with every external interrupt.
↧