SN8P1602B
8-Bit Micro-Controller
STACK OPERATIONS
OVERVIEW
The stack buffer of SN8P1602B has 4-level. These buffers are designed to push and pop up program counter’s (PC)
data when interrupt service routine is executed. The STKP register is a pointer designed to point active level in order to
push or pop up data from stack buffer. The STKnH and STKnL are the stack buffers to store program counter (PC)
data.
PCL
PCH
CALL /
RET /
RETI
interrupt
STK3L
STK2L
STK1L
STK0L
STK3H
STK2H
STK1H
STK0H
STKP = 3
STKP = 2
STKP = 1
STKP = 0
STKP + 1
STKP - 1
STKP
STKP
SONiX TECHNOLOGY CO., LTD
Page 27
Version 1.1