SN8P1700
8-bit micro-controller build-in 12-bit ADC
STACK OPERATIONS
OVERVIEW
The stack buffer of SN8P1700 has 8-level high area and each level is 12-bits length. This buffer is designed to save
and restore program counter’s (PC) data when interrupt service is executed. The STKP register is a pointer designed
to point active level in order to save or restore data from stack buffer for kernel circuit. The STKnH and STKnL are the
12-bit stack buffers to store program counter (PC) data.
STACK BUFFER
PCL
PCH
CALL /
RET /
RETI
interrupt
STKP = 7
STKP = 6
STKP = 5
STKP = 4
STKP = 3
STKP = 2
STKP = 1
STKP = 0
STK0L
STK1L
STK2L
STK3L
STK4L
STK5L
STK6L
STK7L
STK0H
STK1H
STK2H
STK3H
STK4H
STK5H
STK6H
STK7H
STKP
STKP
STKP + 1 STKP - 1
Figure 3-7 Stack-Save and Stack-Restore Operation
SONiX TECHNOLOGY CO., LTD
Page 41
Revision 1.94