Electronic Components Datasheet Search
  English  ▼

X  

UM0434 Datasheet(PDF) 298 Page - STMicroelectronics

Part # UM0434
Description  The primary objective of this user?셲 manual is to describe
PDF  390 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0434 Datasheet(HTML) 298 Page - STMicroelectronics

Back Button UM0434 Datasheet HTML 294Page - STMicroelectronics UM0434 Datasheet HTML 295Page - STMicroelectronics UM0434 Datasheet HTML 296Page - STMicroelectronics UM0434 Datasheet HTML 297Page - STMicroelectronics UM0434 Datasheet HTML 298Page - STMicroelectronics UM0434 Datasheet HTML 299Page - STMicroelectronics UM0434 Datasheet HTML 300Page - STMicroelectronics UM0434 Datasheet HTML 301Page - STMicroelectronics UM0434 Datasheet HTML 302Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 298 / 390 page
background image
UM0434
Debug support
299/391
11.4
Software debug events and exceptions
Software debug events and exceptions are available if internal debug mode is enabled
(DBCR0[IDM] = 1) and not overridden by external debug mode (DBCR0[EDM] = 0). When
enabled, debug events cause debug exceptions to be recorded in the debug status register.
Specific event types are enabled by DBCR0–DBCR3. The unconditional debug event (UDE)
is an exception to this rule; it is always enabled. Once a DBSR bit other than MRR and
CNT1TRG is set, if debug interrupts are enabled by MSR[DE], a debug interrupt is
generated. The debug interrupt handler is responsible for ensuring that multiple repeated
debug interrupts do not occur by clearing the DBSR as appropriate.
Certain debug events are not allowed to occur when MSR[DE] = 0 and DBCR0[EDM] = 0.
Under these conditions, no debug exception occurs and thus no DBSR bit is set. Other
debug events may cause debug exceptions and set DBSR bits regardless of the state of
MSR[DE]. A debug interrupt is delayed until MSR[DE] is set.
When a DBSR bit is set while MSR[DE] = 0 and DBCR0[EDM] = 0, an imprecise debug
event flag (DBSR[IDE]) is also set to indicate that an exception bit in the DBSR was set
while debug interrupts were disabled. The debug interrupt handler software can use this bit
to determine whether DSRR0 holds the address associated with the instruction causing the
debug exception or the address of the instruction that enabled a delayed debug interrupt by
setting MSR[DE]. An mtmsr or mtdbcr0, which causes both MSR[DE] and DBCR0[IDM] to
be set, enabling precise debug mode, may cause an imprecise (delayed) debug exception to
be generated due to an earlier recorded event in the DBSR.
The following types of debug events are defined by Book E:
●
Instruction address compare debug events
●
Data address compare debug events
●
Trap debug events
●
Branch taken debug events
●
Instruction complete debug events
●
Interrupt taken debug events
●
Return debug events
●
Unconditional debug events
These events are described in further detail in the
EREF.
IAC2
Instruction address compare 2
313
R/W
Yes
No
IAC3
Instruction address compare 3
314
R/W
Yes
No
IAC4
Instruction address compare 4
315
R/W
Yes
No
DAC1
Data address compare 1
316
R/W
Yes
No
DAC2
Data address compare 2
317
R/W
Yes
No
1.
The DBSR can be read using mfspr rD,DBSR. It cannot be directly written to. Instead, DBSR bits
corresponding to 1 bits in GPR(rS) can be cleared using mtspr DBSR,rS.
Table 194.
Debug registers (continued)
Mnemonic
Name
SPR
number
Access
Privileged
Core
specific



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