Why i can't enable and disable interrupts of my AVR for several times?

1 answer

Answer

1074581

2026-05-07 02:35

+ Follow

It's impossible :o) You can disable and enable any interrupt source by setting or clearing corresponding bit in proper control register. Show me your code - we will see what can be done wrong.

Asar

fotousa@interia.pl

You can set bit I on SREG by 1 to enable global interrupt or by 0 to disable it.

in C Programming you can write

#asm ("sei") //to enable global interupt

#asm ("cli") //to disable global interupt

M. Wicaksono A.

ReportLike(0ShareFavorite

Copyright © 2026 eLLeNow.com All Rights Reserved.