Electronic Components Datasheet Search
  English  ▼

X  

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

Back Button ST20-C1 Datasheet HTML 67Page - STMicroelectronics ST20-C1 Datasheet HTML 68Page - STMicroelectronics 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 Next Button
Zoom Inzoom in Zoom Outzoom out
 71 / 205 page
background image
71/205
6 Exceptions
®
Exception handler code is completed by executing the
eret instruction, which restores
the state of the interrupted or trapped process. When an interrupt handler executes
eret, it also signals to the interrupt controller that the interrupt has completed. This
allows the interrupt handler to start a lower priority waiting interrupt if required.
The exception instructions are listed in Table 6.1.
6.1
Exception levels
All exception handlers are identified by an integer called the
exception level. Exception
levels 0 to
HighestException (255) are available for user-defined exceptions, while
system exceptions have negative levels, as defined in Table 6.2.
Any exception may be triggered from software with the
ecall instruction. User-defined
exceptions can be interrupt handlers, user processes waiting for DMA peripherals or
trap handlers used as system calls by executing
ecall.
System exceptions are traps which may be triggered automatically when the CPU is in
certain states. They are intended mainly for operating system kernels to trap sched-
uling events and for debuggers to trap breakpoints. The circumstances in which each
system trap is taken are as follows:
• el_breakpoint_trap
This trap is taken when either a
breakpoint instruction is executed or a diag-
nostic controller (DCU) signals to the CPU requesting a breakpoint. If the trap
is null then the process continues. This trap is used by debuggers.
Mnemonic
Name
ecall
exception call
eret
exception return
breakpoint
breakpoint
Table 6.1 Exception instructions
Exception level
Name
Circumstances when taken if not null
0 - 255
-
Interrupt, system call, DMA user process.
-1
el_breakpoint_trap
breakpoint instruction executed or DCU break-
point request.
-2
el_illegal_instr_trap
Illegal op-code encountered.
-3
el_idle_trap
CPU becomes idle.
-4
el_schedule_exception_trap
Schedule a user process as an exception.
-5
el_run_trap
Execute a
run instruction.
-6
el_stop_trap
Execute a
stop instruction.
-7
el_timeslice_trap
Take a timeslice.
Table 6.2 Exception levels



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