SREG
Abstract
The SREG is a status register of ATmega328P.
Source Code
The SREG is defined in hardware/tools/avr/avr/include/avr/common.h as below.
|
|
0x3F is an I/O address of SREG. It calls _SFR_IO8().
The status register is a 8bit register. The meanings of each bit are shown below.
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
I | T | H | S | V | N | Z | C | |
I: Global Interrupt Enable
T: Bit Copy Storage
H: Half Carry Flag
S: Sign Bit
V: Two’s Complement Overflow Flag
N: Negative Flag
Z: Zero Flag
C: Carry Flag
Version
7.3.0-atmel3.6.1-arduino7
Last Update
May 15, 2021