创客百科

姿势共享,有节操无门槛参与的创客百科,创客动力之源 \ (^_^) /

用户工具

站点工具


arduino:avrgcc:sreg

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.

#define SREG _SFR_IO8(0x3F)

0x3F is an I/O address of SREG. They call _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
Meanings 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
本页面的其他翻译:
arduino/avrgcc/sreg.txt · 最后更改: 2016/12/25 22:15 (外部编辑)