Motor de Búsqueda de Datasheet de Componentes Electrónicos
  Spanish  ▼
ALLDATASHEET.ES

X  

ST20-GP1 Datasheet(PDF) 27 Page - STMicroelectronics

No. de pieza ST20-GP1
Descripción Electrónicos  GPS PROCESSOR
PDF  116 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Fabricante Electrónico  STMICROELECTRONICS [STMicroelectronics]
Página de inicio  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

ST20-GP1 Datasheet(HTML) 27 Page - STMicroelectronics

Back Button ST20-GP1 Datasheet HTML 23Page - STMicroelectronics ST20-GP1 Datasheet HTML 24Page - STMicroelectronics ST20-GP1 Datasheet HTML 25Page - STMicroelectronics ST20-GP1 Datasheet HTML 26Page - STMicroelectronics ST20-GP1 Datasheet HTML 27Page - STMicroelectronics ST20-GP1 Datasheet HTML 28Page - STMicroelectronics ST20-GP1 Datasheet HTML 29Page - STMicroelectronics ST20-GP1 Datasheet HTML 30Page - STMicroelectronics ST20-GP1 Datasheet HTML 31Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 27 / 116 page
background image
ST20-GP1
27/116
®
4.6.4
Trap instructions
Trap handlers and trapped processes can be set up and examined via the
ldtraph, sttraph,
ldtrapped and sttrapped instructions. Table 4.8 describes the instructions that may be used when
dealing with traps.
The first four instructions transfer data to/from the trap handler structures or trapped process
structures from/to an area in memory. In these instructions Areg contains the trap group code (see
Table 4.4) and Breg points to the 4 word area of memory used as the source or destination of the
transfer. In addition Creg contains the priority of the handler to be installed/examined in the case of
ldtraph or sttraph. ldtrapped and sttrapped apply only to the current priority.
If the
LoadTrap trap is enabled then ldtraph and ldtrapped do not perform the transfer but set the
LoadTrap trap flag. If the
StoreTrap trap is enabled then sttraph and sttrapped do not perform the
transfer but set the StoreTrap trap flag.
The trap enable masks are encoded by an array of bits (see Table 4.5) which are set to indicate
which traps are enabled. This array of bits is stored in the lower half-word of the Enables register.
There is an Enables register for each priority. Traps are enabled or disabled by loading a mask into
Areg with bits set to indicate which traps are to be affected and the priority to affect in Breg.
Executing
trapenb ORs the mask supplied in Areg with the trap enables mask in the Enables
register for the priority in Breg. Executing
trapdis negates the mask supplied in Areg and ANDs it
with the trap enables mask in the Enables register for the priority in Breg. Both instructions return
the previous value of the trap enables mask in Areg.
4.6.5
Restrictions on trap handlers
There are various restrictions that must be placed on trap handlers to ensure that they work
correctly.
1
Trap handlers must not deschedule or timeslice. Trap handlers alter the Enables masks,
therefore they must not allow other processes to execute until they have completed.
2
Trap handlers must have their Enable masks set to mask all traps in their trap group to
avoid the possibility of a trap handler trapping to itself.
3
Trap handlers must terminate via the
tret (trap return) instruction. The only exception to this
is that a scheduler kernel may use
restart to return to a previously shadowed process.
Instruction
Meaning
Use
ldtraph
load trap handler
load the trap handler from memory to the trap handler descriptor
sttraph
store trap handler
store an existing trap handler descriptor to memory
ldtrapped
load trapped
load replacement trapped process status from memory
sttrapped
store trapped
store trapped process status to memory
trapenb
trap enable
enable traps
trapdis
trap disable
disable traps
tret
trap return
used to return from a trap handler
causeerror
cause error
program can simulate the occurrence of an error
Table 4.7 Instructions which may be used when dealing with traps



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 Descarga

Go To PDF Page


Enlace URL



¿ALLDATASHEET es útil para Ud.?  [ DONATE ] 

Todo acerca de Alldatasheet   |   Publicidad   |   Contáctenos   |   Política de Privacidad   |   Enlace a la hoja de datos    |   Intercambio de Enlaces   |   Lista de Fabricantes
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