Electronic Components Datasheet Search
  British  ▼
ALLDATASHEET.CO.UK

X  

ST20-C1 Datasheet(PDF) 73 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) 73 Page - STMicroelectronics

Back Button ST20-C1 Datasheet HTML 69Page - STMicroelectronics ST20-C1 Datasheet HTML 70Page - STMicroelectronics ST20-C1 Datasheet HTML 71Page - STMicroelectronics ST20-C1 Datasheet HTML 72Page - STMicroelectronics ST20-C1 Datasheet HTML 73Page - STMicroelectronics ST20-C1 Datasheet HTML 74Page - STMicroelectronics ST20-C1 Datasheet HTML 75Page - STMicroelectronics ST20-C1 Datasheet HTML 76Page - STMicroelectronics ST20-C1 Datasheet HTML 77Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 73 / 205 page
background image
73/205
6 Exceptions
®
bit 0 of the descriptor, and so can be either
ExceptionProcessType (which has the
value 1) or
UserProcessType (which has the value 0). The type allows each exception
level to be assigned to one of the following:
• an exception handler. The entry for an exception handler is the address of the
exception control block (as described in section 6.3) bitwise ORed with
ExceptionProcessType to indicate an exception.
• a user process waiting for a peripheral (as described in section 4.11).The entry
for a user process is the task descriptor (i.e. the address of the process control
block) bitwise ORed with
UserProcessType to indicate a user process.
• the null entry NotProcess. The CPU treats null entries as disabled exceptions.
When the exception is triggered, the CPU looks in the table entry for the requested
exception level. If the value in the table is
NotProcess then no exception or trap is
taken and the CPU continues with the default behavior. Otherwise, if bit 0 is
UserProcessType then the address part of the value is assumed to be a valid task
descriptor of a process. If bit 0 is
ExceptionProcessType, then the address part is
assumed to be a pointer to a valid exception control block.
Using user processes as exceptions to handle peripherals is described in section
4.11. The rest of this chapter refers only to exceptions.
Typically a separate descriptor is used for each interrupt level and system call, so that
this scheme provides a system of vectored interrupts and system calls. The exception
handler is then executed, and can itself be interrupted or trapped.
6.3
Exception control block and the saved state
When an exception is taken, the state is saved in the exception control block. The
evaluation stack, status register, Iptr, Wptr and Tdesc are automatically saved on
taking the exception and restored on returning. This is done to enable any exception
handler to have direct access to the state of the underlying process and is required for
some software scheduler implementations.
The constants in Table 6.3 define the locations in the control block.
Word offset
Name
Purpose
7
ex.HandlerIptr
Exception handler instruction pointer.
6
ex.InterptdStatus
Interrupted or trapped process status register.
5
ex.InterptdTdesc
Interrupted or trapped process task descriptor.
4
ex.InterptdIptr
Interrupted or trapped process instruction pointer.
3
ex.InterptdWptr
Interrupted or trapped process workspace pointer.
2
ex.InterptdCreg
Interrupted or trapped process Creg.
1
ex.InterptdBreg
Interrupted or trapped process Breg.
0
ex.InterptdAreg
Interrupted or trapped process Areg.
Table 6.3 Exception control block



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