Moteur de recherche de fiches techniques de composants électroniques
  French  ▼
ALLDATASHEET.FR

X  

STM8S Fiches technique(PDF) 32 Page - STMicroelectronics

No de pièce STM8S
Description  STM8S Series and STM8AF Series 8-bit microcontrollers
PDF  467 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricant  STMICROELECTRONICS [STMicroelectronics]
Site Internet  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

STM8S Fiches technique(HTML) 32 Page - STMicroelectronics

Back Button STM8S Datasheet HTML 28Page - STMicroelectronics STM8S Datasheet HTML 29Page - STMicroelectronics STM8S Datasheet HTML 30Page - STMicroelectronics STM8S Datasheet HTML 31Page - STMicroelectronics STM8S Datasheet HTML 32Page - STMicroelectronics STM8S Datasheet HTML 33Page - STMicroelectronics STM8S Datasheet HTML 34Page - STMicroelectronics STM8S Datasheet HTML 35Page - STMicroelectronics STM8S Datasheet HTML 36Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 32 / 467 page
background image
Memory and register map
RM0016
32/467
DocID14587 Rev 14
Customized stack model
STM8S and STM8AF stack pointer handling allows a customized stack model to be
implemented. This permits a flexible stack size without restrictions due to the stack roll-over
limit. Implementing the customized stack also benefits portability of the software on products
with different memory configurations. Figure 5 shows the customized stack model.
Figure 5. Customized stack model
1. The stack roll-over limit is not implemented on all devices.
2. The guard cells are RAM locations that have to be continuously polled by the application program to detect
whether a stack overflow has taken place.
In this stack model, the initial stack pointer must be placed beyond the stack roll-over limit.
Consequently, the growing stack never reaches the stack roll-over limit. It is clear that in this
implementation the stack size is not limited by the roll-over mechanism. Nevertheless, the
user has to define the stack position and stack size in the link file, and he has to ensure that
the stack pointer does not exceed the defined stack area (stack overflow or under-run).
The RAM locations above and below the customized stack can be regularly used as RAM to
store variables or other information.
Guard cells can be implemented at the lower end of the stack to detect if the stack pointer
exceeds the defined limit. These cells are standard RAM locations, initialized with fixed
values that the stack overwrites if an overflow occurs. The user software can regularly poll
these cells, detect the overflow condition, and put the application in a fail safe state.
During the software validation phase hardware breakpoints can be set at both limits of the
stack to validate that neither a stack overflow nor an under-run happens.
ai15056v2
Customized stack model
End address
Stack roll-over limit (1)
Stack pointer initialization value
Start address
RAM
Optional guard cells (2)
Flexible stack size



Html Pages

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  ...More


Fiches technique Télécharger

Go To PDF Page


Lien URL



ALLDATASHEET vous a-t-il été utile ?  [ DONATE ] 

À propos de Alldatasheet   |   Publicité   |   Contactez-nous   |   Politique de confidentialité   |   Lien vers la fiche technique    |   Echange de liens   |   Fabricants
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com