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

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

$
0
0
Michael, [quote:ca3f84a0b6="six1"]with pointer to array pos, it might be easy.[/quote:ca3f84a0b6] just checked your code a bit closer, tell me: why do you disable/enable external interrupts within the ISR ? The code runs in the same interrupt routine you explicitly disable, and as long this ISR isn't left, all interrupts including externals interrupts, are disabled anyway. Only clearing the pending external interrupt flag makes sense. [quote:ca3f84a0b6]also use pushall, popall![/quote:ca3f84a0b6] Why ? Simlpy don't use Nosave in the first case.

Viewing all articles
Browse latest Browse all 20577

Trending Articles



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