Quantcast
Channel: MCS Electronics Forum
Viewing all articles
Browse latest Browse all 20688

BASCOM-AVR : data loss using inkey #2 with software UART : REPLY

$
0
0
[quote:b105e06bba="six1"]because of this was a very special case... i only used INT to get first char of stream and ended reading by timeout.[/quote:b105e06bba] Whatever you say ;-) [quote:b105e06bba]the master plan wasn't to read byte by byte with int![/quote:b105e06bba] Doesn't make a difference. [quote:b105e06bba]in fact i don't wanted to disturbed by any other int :lol: that's it oder wie die bayern sagen: host me :lol:[/quote:b105e06bba] You do that biz long enough to know, that in AVRs interrupts are globally disabled, as long an interrupt service routine is executed. Iinterrupts are reenabled then, after return from an ISR, or if you explicitly enable them yourself in an ISR, called nested interrupts. But you don't do this nesting thing. Therefore your ISR simply can't disturbed by another interrupt, and that is the reason disabling and reenabling this external interrupt, like you do it, is completely senseless. So, yes, I think I got you, but I'm not sure, whether you got me.

Viewing all articles
Browse latest Browse all 20688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>