Electronic Components Datasheet Search
  English  ▼

X  

UM0434 Datasheet(PDF) 320 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) 320 Page - STMicroelectronics

Back Button UM0434 Datasheet HTML 316Page - STMicroelectronics UM0434 Datasheet HTML 317Page - STMicroelectronics UM0434 Datasheet HTML 318Page - STMicroelectronics UM0434 Datasheet HTML 319Page - STMicroelectronics UM0434 Datasheet HTML 320Page - STMicroelectronics UM0434 Datasheet HTML 321Page - STMicroelectronics UM0434 Datasheet HTML 322Page - STMicroelectronics UM0434 Datasheet HTML 323Page - STMicroelectronics UM0434 Datasheet HTML 324Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 320 / 390 page
background image
UM0434
Debug support
321/391
Control state register (CTL)
The control state register (CTL), shown in
Table 207, stores the value of certain internal
CPU state variables before debug mode is entered. This register is affected by the
operations performed during the debug session and should normally be restored by the
external command controller when returning to normal mode. In addition to saved internal
state variables, two of the bits are used by emulation firmware to control the debug process.
In certain circumstances, emulation firmware must modify the content of this register as well
as the PC and IR values in the CPUSCR before exiting debug mode. These cases are
described more specifically in the text after the table.
Table 207.
Control state register (CTL)
0
15
Field
Internal state bits
16
19
20
21
22
23
24
25
26
27
28
29
30
31
Field PCOFSTPCINV FFRA
IRSTAT
0
IRSTAT
1
IRSTAT
2
IRSTAT
3
IRSTAT
4
IRSTAT
5
IRSTAT
6
IRSTAT
7
IRSTAT
8
IRSTAT
9
Table 208.
CTL field definitions
Bits
Name
Description
0–15
Internal
state bits
Internal state bits.These control bits represent the internal processor state and should be
restored to their original value after a debug session is completed, that is, when a OnCE
command is issued with the GO and EX bits set and not ignored. When performing instruction
execution during a debug session (see
Chapter 11.2.1: Software debug facilities on page 296”),
these bits should be cleared.
16–19 PCOFST
PC offset field. Indicates whether the value in the PC portion of the CPUSCR must be adjusted
before exiting debug mode. Due to the pipelined nature of the CPU, the PC value must be
backed up by emulation software in certain circumstances. The PCOFST field specifies the
value to be subtracted from the original value of the PC. This adjusted PC value should be
restored into the PC portion of the CPUSCR just before exiting debug mode with a Go+Exit. In
the event the PCOFST is non-zero, the IR should be loaded with a nop instruction instead of the
original IR value; otherwise, the original value of IR should be restored (but see PCINV which
overrides this field).
0000 No correction required
0001 Subtract 0x04 from PC.
0010 Subtract 0x08 from PC.
0011 Subtract 0x0C from PC.
0100 Subtract 0x10 from PC.
0101 Subtract 0x14 from PC.
All other encodings are reserved.
20
PCINV
PC and IR invalid status bit. This status bit indicates that the values in the IR and PC portions of
the CPUSCR are invalid. Exiting debug mode with the saved values in the PC and IR will have
unpredictable results. Debug firmware should initialize the PC and IR values in the CPUSCR
with desired values before exiting debug mode if this bit was set when debug mode was initially
entered.
0 No error condition exists.
1 Error condition exists. PC and IR are corrupted.



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