參數(shù)資料
型號(hào): MPG5374X
元件分類(lèi): LED
英文描述: T-1 3/4 SINGLE COLOR LED, GREEN, 5 mm
封裝: ROHS COMPLIANT PACKAGE-2
文件頁(yè)數(shù): 2/32頁(yè)
文件大小: 413K
代理商: MPG5374X
10
XMEGA C3 [DATASHEET]
8361D–AVR–07/2013
During interrupts and subroutine calls, the return address PC is stored on the stack. The stack is allocated in the general
data SRAM, and consequently the stack size is only limited by the total SRAM size and the usage of the SRAM. After
reset, the stack pointer (SP) points to the highest address in the internal SRAM. The SP is read/write accessible in the
I/O memory space, enabling easy implementation of multiple stacks or stack areas. The data SRAM can easily be
accessed through the five different addressing modes supported in the AVR CPU.
6.6
Status Register
The status register (SREG) contains information about the result of the most recently executed arithmetic or logic
instruction. This information can be used for altering program flow in order to perform conditional operations. Note that
the status register is updated after all ALU operations, as specified in the instruction set reference. This will in many
cases remove the need for using the dedicated compare instructions, resulting in faster and more compact code.
The status register is not automatically stored when entering an interrupt routine nor restored when returning from an
interrupt. This must be handled by software.
The status register is accessible in the I/O memory space.
6.7
Stack and Stack Pointer
The stack is used for storing return addresses after interrupts and subroutine calls. It can also be used for storing
temporary data. The stack pointer (SP) register always points to the top of the stack. It is implemented as two 8-bit
registers that are accessible in the I/O memory space. Data are pushed and popped from the stack using the PUSH and
POP instructions. The stack grows from a higher memory location to a lower memory location. This implies that pushing
data onto the stack decreases the SP, and popping data off the stack increases the SP. The SP is automatically loaded
after reset, and the initial value is the highest address of the internal SRAM. If the SP is changed, it must be set to point
above address 0x2000, and it must be defined before any subroutine calls are executed or before interrupts are enabled.
During interrupts or subroutine calls, the return address is automatically pushed on the stack. The return address can be
two or three bytes, depending on program memory size of the device. For devices with 128KB or less of program
memory, the return address is two bytes, and hence the stack pointer is decremented/incremented by two. For devices
with more than 128KB of program memory, the return address is three bytes, and hence the SP is
decremented/incremented by three. The return address is popped off the stack when returning from interrupts using the
RETI instruction, and from subroutine calls using the RET instruction.
The SP is decremented by one when data are pushed on the stack with the PUSH instruction, and incremented by one
when data is popped off the stack using the POP instruction.
To prevent corruption when updating the stack pointer from software, a write to SPL will automatically disable interrupts
for up to four instructions or until the next I/O memory write.
After reset the stack pointer is initialized to the highest address of the SRAM. See Figure 7-2 on page 14.
6.8
Register File
The register file consists of 32 x 8-bit general purpose working registers with single clock cycle access time. The register
file supports the following input/output schemes:
One 8-bit output operand and one 8-bit result input
Two 8-bit output operands and one 8-bit result input
Two 8-bit output operands and one 16-bit result input
One 16-bit output operand and one 16-bit result input
Six of the 32 registers can be used as three 16-bit address register pointers for data space addressing, enabling efficient
address calculations. One of these address pointers can also be used as an address pointer for lookup tables in flash
program memory.
相關(guān)PDF資料
PDF描述
MPI002/TERM/RD PUSHBUTTON SWITCH, SPST, MOMENTARY-TACTILE, 0.05A, 24VDC, PANEL MOUNT
MPN-7430 300 V, SILICON, PIN DIODE
MPR3372X T-1 SINGLE COLOR LED, RED, 3 mm
MPS101A SLIDE SWITCH, SP3T, LATCHED, 0.3A, 30VDC, THROUGH HOLE-RIGHT ANGLE
MPS3414 NPN SILICON TRANSISTOR
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
MPG5379K 制造商:Stanley Electric Co 功能描述:LED Uni-Color Green 560nm 2-Pin Bulk 制造商:The Stanley Works 功能描述:Green 2.5 x 5 mm 24 x 18 Min 12 mcd Typical 24 mcd Diffused Through Hole LED 制造商:STANLEY 功能描述:Green 2.5 x 5 mm 24 ? x 18 ? Min 12 mcd Typical 24 mcd Diffused Through Hole LED 制造商:Stanley Electric Co 功能描述:Green 2.5 x 5 mm 24 ? x 18 ? Min 12 mcd Typical 24 mcd Diffused Through Hole LED
MPG5763X 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Optoelectronic
MPG5764X 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Optoelectronic
MPG5773X 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Optoelectronic
MPG5774X 制造商:未知廠家 制造商全稱(chēng):未知廠家 功能描述:Optoelectronic