參數(shù)資料
型號: S3P7559-AT
元件分類: 微控制器/微處理器
英文描述: 4-BIT, OTPROM, 6 MHz, MICROCONTROLLER, PDIP64
封裝: 0.750 INCH, SDIP-64
文件頁數(shù): 116/197頁
文件大小: 1181K
代理商: S3P7559-AT
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁當前第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁
S3C7559/P7559
ADDRESS SPACES
2-13
STACK OPERATIONS
STACK POINTER (SP)
The stack pointer (SP) is an 8-bit register that stores the address used to access the stack, an area of data
memory set aside for temporary storage of stack addresses. The SP can be read or written by 8-bit control
instructions. When addressing the SP, bit 0 must always remain cleared to logic zero.
F80H
SP3
SP2
SP1
"0"
F81H
SP7
SP6
SP5
SP4
There are two basic stack operations: writing to the top of the stack (push), and reading from the top of the stack
(pop). A push decrements the SP and a pop increments it so that the SP always points to the top address of the
last data to be written to the stack.
The program counter contents and program status word are stored in the stack area prior to the execution of a
CALL or a PUSH instruction, or during interrupt service routines. Stack operation is a LIFO (Last In-First Out)
type. The stack area is located in general-purpose data memory bank 0.
During an interrupt or a subroutine, the PC value and the PSW are saved to the stack area. When the routine has
completed, the stack pointer is referenced to restore the PC and PSW, and the next instruction is executed.
The SP can address stack registers in bank 0 (addresses 000H-0FFH) regardless of the current value of the en-
able memory bank (EMB) flag and the select memory bank (SMB) flag. Although general-purpose register areas
can be used for stack operations, be careful to avoid data loss due to simultaneous use of the same register(s).
Since the reset value of the stack pointer is not defined in firmware, we recommend that you initialize the stack
pointer by program code to location 00H. This sets the first register of the stack area to 0FFH.
NOTE
A subroutine call occupies six nibbles in the stack; an interrupt requires six. When subroutine nesting or
interrupt routines are used continuously, the stack area should be set in accordance with the maximum
number of subroutine levels. To do this, estimate the number of nibbles that will be used for the
subroutines or interrupts and set the stack area correspondingly.
+
+ PROGRAMMING TIP — Initializing the Stack Pointer
To initialize the stack pointer (SP):
1. When EMB = "1":
SMB
15
; Select memory bank 15
LD
EA,#00H
; Bit 0 of accumulator A is always cleared to "0"
LD
SP,EA
; Stack area initial address (0FFH)
← (SP) – 1
2. When EMB = "0":
LD
EA,#00H
LD
SP,EA
; Memory addressing area (00H–7FH, F80H–FFFH)
相關PDF資料
PDF描述
S3C8235XX-ET 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP64
S3C8248XX-QW 8-BIT, MROM, 10 MHz, MICROCONTROLLER, PQFP80
S3P8249-QW 8-BIT, OTPROM, 10 MHz, MICROCONTROLLER, PQFP80
S3C8285XXX-QW 8-BIT, MROM, 11.1 MHz, MICROCONTROLLER, PQFP80
S3C8444XX-TW 8-BIT, MROM, 18 MHz, MICROCONTROLLER, PQFP80
相關代理商/技術參數(shù)
參數(shù)描述
S3P7559XZZ-AT99 制造商:Samsung Semiconductor 功能描述:
S3P7565 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:single-chip CMOS microcontroller
S3P7574 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:Product Overview Address Spaces Addressing Modes Memory Map SAM47 Instruction Set
S3P7588X 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:4-BIT RISC MICROPROCESSOR
S3P8075 制造商:SAMSUNG 制造商全稱:Samsung semiconductor 功能描述:SAM87 family of 8-bit single-chip CMOS microcontrollers, 272-byte general purpose register area, 16-Kbyte internal program memory