參數(shù)資料
型號: ST7FLU05MAE
廠商: STMICROELECTRONICS
元件分類: 微控制器/微處理器
英文描述: 8-BIT, FLASH, 8 MHz, MICROCONTROLLER, PDSO8
封裝: 0.150 INCH, LEAD FREE, PLASTIC, SOP-8
文件頁數(shù): 44/124頁
文件大?。?/td> 2186K
代理商: ST7FLU05MAE
Obsolete
Product(s)
- Obsolete
Product(s)
Central processing unit
ST7LUS5, ST7LU05, ST7LU09
26/124
5.3.5
Stack pointer (SP)
The stack pointer is a 16-bit register which is always pointing to the next free location in the
stack. It is then decremented after data has been pushed onto the stack and incremented
before data is popped from the stack (see Figure 11).
Since the stack is 64 bytes deep, the 10 most significant bits are forced by hardware.
Following an MCU reset, or after a reset stack pointer (RSP) instruction, the stack pointer
contains its reset value (the SP5 to SP0 bits are set) which is the stack higher address.
The stack pointer least significant byte, called “S”, can be directly accessed by a load (LD)
instruction.
Note:
When the lower limit is exceeded, the stack pointer wraps around to the stack upper limit,
without indicating the stack overflow. The previously stored information is then overwritten
and therefore lost. The stack also wraps in case of an underflow.
The stack is used to save the return address during a subroutine call and the CPU context
during an interrupt. The user may also directly manipulate the stack by means of the PUSH
and POP instructions. In the case of an interrupt, the PCL is stored at the first location
pointed to by the SP. Then the other registers are stored in the next locations as shown in
Figure 11.
When an interrupt is received, the SP is decremented and the context is pushed on the
stack.
On return from interrupt, the SP is incremented and the context is popped from the
stack.
A subroutine call occupies two locations and an interrupt five locations in the stack area.
Figure 8.
Stack manipulation example
SP
Reset value: 00 FFh
15
14
13
12
11
10
9876
543210
0000000011
SP[5:0]
R/WR/W R/WR/W R/WR/W R/WR/W R/W R/W
R/W
PCH
PCL
SP
PCH
PCL
SP
PCL
PCH
X
A
CC
PCH
PCL
SP
PCL
PCH
X
A
CC
PCH
PCL
SP
PCL
PCH
X
A
CC
PCH
PCL
SP
Y
CALL
Subroutine
Interrupt
event
PUSH Y
POP Y
IRET
RET
or RSP
@ 00FFh
@ 00C0h
Stack higher address = 00FFh
Stack lower address = 00C0h
相關PDF資料
PDF描述
ST7LNB0V2Y0M6 8-BIT, 8 MHz, MICROCONTROLLER, PDSO16
ST7LNB1Y0M6 8-BIT, EEPROM, 8 MHz, MICROCONTROLLER, PDSO16
ST7PL05Y0MB/XXXTRE 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO16
ST7PL05Y0MB 8-BIT, MROM, 8 MHz, MICROCONTROLLER, PDSO16
ST7PLITE05F0U6TR 8-BIT, MROM, 16 MHz, MICROCONTROLLER, QCC20
相關代理商/技術參數(shù)
參數(shù)描述
ST7FLU09MCE 制造商:STMicroelectronics 功能描述:
ST7FMC1K2B3 制造商:STMICROELECTRONICS 制造商全稱:STMicroelectronics 功能描述:8-bit MCU with nested interrupts, Flash, 10-bit ADC, brushless motor control, five timers, SPI, LINSCI?
ST7FMC1K2B6 功能描述:8位微控制器 -MCU 8 BITS MICROCONTR RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
ST7FMC1K2T3 功能描述:8位微控制器 -MCU ST7MC1/ST7MC2 8B MCU RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT
ST7FMC1K2T6 功能描述:8位微控制器 -MCU 8K Flash 384 RAM RoHS:否 制造商:Silicon Labs 核心:8051 處理器系列:C8051F39x 數(shù)據(jù)總線寬度:8 bit 最大時鐘頻率:50 MHz 程序存儲器大小:16 KB 數(shù)據(jù) RAM 大小:1 KB 片上 ADC:Yes 工作電源電壓:1.8 V to 3.6 V 工作溫度范圍:- 40 C to + 105 C 封裝 / 箱體:QFN-20 安裝風格:SMD/SMT