Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

ST20-C1 Datasheet(PDF) 23 Page - STMicroelectronics

Part # ST20-C1
Description  Instruction Set Reference Manual
PDF  205 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST20-C1 Datasheet(HTML) 23 Page - STMicroelectronics

Back Button ST20-C1 Datasheet HTML 19Page - STMicroelectronics ST20-C1 Datasheet HTML 20Page - STMicroelectronics ST20-C1 Datasheet HTML 21Page - STMicroelectronics ST20-C1 Datasheet HTML 22Page - STMicroelectronics ST20-C1 Datasheet HTML 23Page - STMicroelectronics ST20-C1 Datasheet HTML 24Page - STMicroelectronics ST20-C1 Datasheet HTML 25Page - STMicroelectronics ST20-C1 Datasheet HTML 26Page - STMicroelectronics ST20-C1 Datasheet HTML 27Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 23 / 205 page
background image
23/205
3 Architecture
®
chain. In addition, they allow for saturated arithmetic to be implemented rela-
tively easily.
A (non-sticky) carry bit is provided to allow efficient implementation of long
addition and subtraction. The carry bit is only manipulated by the
addc and
subc instructions allowing the other add instructions to be used in address for-
mation of multi-word values where carry propagation is required so that the
carry is not lost in the address formation evaluations.
• The user_mode bit indicates when the machine is handling a user process,
i.e. a process which is not an exception handler. The interrupt_mode bit indi-
cates when the machine is handling an interrupt, or a trap from an interrupt
handler and the trap_mode bit indicates when the machine is executing a trap
handler. An operating system may need to distinguish between modes to allow
it to perform scheduling activities from a trap handler. These bits are also
required to enable the
eret instruction to determine whether a signal to the
interrupt controller is required.
• The sleep bit indicates that the CPU is due to go to sleep, i.e. to turn off its
clocks and go into low power mode. This bit is set when the CPU detects there
is no user process to execute and is cleared when the CPU goes to sleep.
• The start_next_task bit when set causes the processor to attempt to run the
next process from the scheduling queue.
• The timeslice_enable bit and timeslice_count field are used for timeslicing,
as described in section 7.4.
The instructions to use the status register are described in section 4.12.
3.3.3
The work space pointer
All programs need somewhere to store local working data, e.g. local variables in the
application code. In the ST20 architecture, this local storage is termed the
work space
of the program.
The Wptr register is the local work space pointer, which holds the address of the stack
of the executing process. The stack is downward pointing, so space is allocated by
moving the Wptr to a lower address. This address is word aligned and therefore has
the two least significant bits set to z ero. When a process is descheduled, the Wptr is
stored as part of the process descriptor block, which is pointed to by Tdesc.
The Wptr is used as a base for addressing
local variables. A word offset from the
Wptr is the operand for the instructions
ldl (load local), stl (store local) and ldlp (load
local pointer).
The ST20-C1 simplifies the nor mal stack scheme by decoupling the load/store action
from the pointer update:
• Load-local and store-local instructions access values in the work space with
addresses relative to the Wptr, but do not change the value of Wptr.
• Separate instructions (ajw, gajw) are provided to update the work space



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


Datasheet Download

Go To PDF Page


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


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