Electronic Components Datasheet Search
  English  ▼

X  

AT91 Datasheet(PDF) 60 Page - ATMEL Corporation

Part # AT91
Description  ARM® Thumb® Microcontrollers
PDF  153 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  ATMEL [ATMEL Corporation]
Direct Link  http://www.atmel.com
Logo ATMEL - ATMEL Corporation

AT91 Datasheet(HTML) 60 Page - ATMEL Corporation

Back Button AT91 Datasheet HTML 56Page - ATMEL Corporation AT91 Datasheet HTML 57Page - ATMEL Corporation AT91 Datasheet HTML 58Page - ATMEL Corporation AT91 Datasheet HTML 59Page - ATMEL Corporation AT91 Datasheet HTML 60Page - ATMEL Corporation AT91 Datasheet HTML 61Page - ATMEL Corporation AT91 Datasheet HTML 62Page - ATMEL Corporation AT91 Datasheet HTML 63Page - ATMEL Corporation AT91 Datasheet HTML 64Page - ATMEL Corporation Next Button
Zoom Inzoom in Zoom Outzoom out
 60 / 153 page
background image
60
AT91X40 Series
1354D–ATARM–08/02
Protect Mode
The Protect Mode permits reading of the Interrupt Vector Register without performing
the associated automatic operations. This is necessary when working with a debug
system.
When a Debug Monitor or an ICE reads the AIC User Interface, the IVR could be read.
This would have the following consequences in Normal Mode.
•
If an enabled interrupt with a higher priority than the current one is pending, it would
be stacked
•
If there is no enabled pending interrupt, the spurious vector would be returned.
In either case, an End of Interrupt command would be necessary to acknowledge and to
restore the context of the AIC. This operation is generally not performed by the debug
system. Hence the debug system would become strongly intrusive, and could cause the
application to enter an undesired state.
This is avoided by using Protect Mode.
The Protect Mode is enabled by setting the AIC bit in the SF Protect Mode Register (see
“SF: Special Function Registers” on page 94).
When Protect Mode is enabled, the AIC performs interrupt stacking only when a write
access is performed on the AIC_IVR. Therefore, the Interrupt Service Routines must
write (arbitrary data) to the AIC_IVR just after reading it.
The new context of the AIC, including the value of the Interrupt Status Register
(AIC_ISR), is updated with the current interrupt only when IVR is written.
An AIC_IVR read on its own (e.g. by a debugger), modifies neither the AIC context nor
the AIC_ISR.
Extra AIC_IVR reads performed in between the read and the write can cause unpredict-
able results. Therefore, it is strongly recommended not to set a breakpoint between
these two actions, nor to stop the software.
The debug system must not write to the AIC_IVR as this would cause undesirable
effects.
The following table shows the main steps of an interrupt and the order in which they are
performed according to the mode:
Notes:
1. NIRQ de-assertion and automatic interrupt clearing if the source is programmed as
level sensitive.
2. Software that has been written and debugged using Protect Mode will run correctly in
Normal Mode without modification. However, in Normal Mode the AIC_IVR write has
no effect and can be removed to optimize the code.
Action
Normal Mode
Protect Mode
Calculate active interrupt (higher than current or spurious)
Read AIC_IVR
Read AIC_IVR
Determine and return the vector of the active interrupt
Read AIC_IVR
Read AIC_IVR
Memorize interrupt
Read AIC_IVR
Read AIC_IVR
Push on internal stack the current priority level
Read AIC_IVR
Write AIC_IVR
Acknowledge the interrupt (1)
Read AIC_IVR
Write AIC_IVR
No effect(2)
Write AIC_IVR
–



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