st7pmc2s6 STMicroelectronics, st7pmc2s6 Datasheet - Page 41

no-image

st7pmc2s6

Manufacturer Part Number
st7pmc2s6
Description
8-bit Mcu For Automotive With Nested Interrupts, Flash, 10-bit Adc, Brushless Motor Control, 5 Timers, Spi, Linsci?
Manufacturer
STMicroelectronics
Datasheet
ST7MC1K2-Auto, ST7MC1K6-Auto, ST7MC2S4-Auto, ST7MC2S6-Auto
pointed to by the SP. Then the other registers are stored in the next locations as shown in
Figure
A subroutine call occupies two locations and an interrupt five locations in the stack area.
Figure 8.
@ 01FFh
@ 0100h
Stack higher address = 01FFh
Stack lower address = 0100h
SP
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.
8.
subroutine
PCH
Call
PCL
Stack manipulation example
SP
Interrupt
event
PCH
PCH
PCL
PCL
CC
A
X
SP
Push Y
PCH
PCH
PCL
PCL
CC
Y
A
X
SP
Pop Y
PCH
PCH
PCL
PCL
CC
A
X
SP
Central processing unit
IRET
PCH
PCL
SP
or RSP
RET
41/371

Related parts for st7pmc2s6