AVR Instruction Set Nomenclature: Status Register (SREG ...
AVR Instruction Set Nomenclature: Status Register (SREG ...
AVR Instruction Set Nomenclature: Status Register (SREG ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
CLI - Clear Global Interrupt Flag<br />
Description:<br />
Clears the Global Interrupt flag (I) in <strong>SREG</strong> (status register).<br />
Operation:<br />
(i) I ← 0<br />
Syntax: Operands: Program Counter:<br />
(i) CLI None PC ← PC + 1<br />
44<br />
16-bit Opcode:<br />
<strong>Status</strong> <strong>Register</strong> (<strong>SREG</strong>) and Boolean Formula:<br />
I: 0<br />
Global Interrupt flag cleared<br />
Example:<br />
1001 0100 1111 1000<br />
I T H S V N Z C<br />
0 - - - - - - -<br />
Words: 1 (2 bytes)<br />
Cycles: 1<br />
cli ; Disable interrupts<br />
in r11,$16 ; Read port B<br />
sei ; Enable interrupts<br />
<strong>Instruction</strong> <strong>Set</strong>