| Electronic Components Datasheet Search |
|
SAFC161PI Datasheet(PDF) 357 Page - Infineon Technologies AG |
|
|
|||||||||||||||||||||||||||||
SAFC161PI Datasheet(HTML) 357 Page - Infineon Technologies AG |
|
357 / 400 page ![]() &3, 6\VWHP 3URJUDPPLQJ User’s Manual 20-5 1999-08 It is also possible to use the stack underflow and stack overflow traps to cache portions of a larger external stack. Only the portion of the system stack currently being used is placed into the internal memory, thus allowing a greater portion of the internal RAM to be used for program, data or register banking. This approach assumes no error but requires a set of control routines (see below). Circular (virtual) Stack This basic technique allows pushing until the overflow boundary of the internal stack is reached. At this point a portion of the stacked data must be saved into external memory to create space for further stack pushes. This is called “stack flushing”. When executing a number of return or pop instructions, the upper boundary (since the stack empties upward to higher memory locations) is reached. The entries that have been previously saved in external memory must now be restored. This is called “stack filling”. Because procedure call instructions do not continue to nest infinitely and call and return instructions alternate, flushing and filling normally occurs very infrequently. If this is not true for a given program environment, this technique should not be used because of the overhead of flushing and filling. The basic mechanism is the transformation of the addresses of a virtual stack area, controlled via registers SP, STKOV and STKUN, to a defined physical stack area within the internal RAM via hardware. This virtual stack area covers all possible locations that SP can point to, i.e. 00’F000 H through 00’FFFEH. STKOV and STKUN accept the same 4 KByte address range. The size of the physical stack area within the internal RAM that effectively is used for standard stack operations is defined via bitfield STKSZ in register SYSCON (see below). Table 20-2 Circular Stack Address Transformation STKSZ Stack Size (Words) Internal RAM Addresses (Words) of Physical Stack Significant Bits of Stack Ptr. SP 0 0 0 B 256 00’FBFE H...00’FA00H (Default after Reset) SP.8...SP.0 0 0 1 B 128 00’FBFE H...00’FB00H SP.7...SP.0 0 1 0 B 64 00’FBFE H...00’FB80H SP.6...SP.0 0 1 1 B 32 00’FBFE H...00’FBC0H SP.5...SP.0 1 0 0 B 512 00’FBFE H...00’F800H (not for 1KByte IRAM) SP.9...SP.0 1 0 1 B --- Reserved. Do not use this combination. --- 1 1 0 B --- Reserved. Do not use this combination. --- 1 1 1 B 1024 00’FDFE H...00’FX00H (Note: No circular stack) 00’FX00 H represents the lower IRAM limit, i.e. 1KB: 00’FA00 H, 2 KB: 00’F600H, 3KB: 00’F200 H SP.11...SP.0 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| 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 |