Electronic Components Datasheet Search
  English  ▼

X  

UM0470 Datasheet(PDF) 20 Page - STMicroelectronics

Part # UM0470
Description  STM8 SWIM communication protocol and debug module
PDF  37 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

UM0470 Datasheet(HTML) 20 Page - STMicroelectronics

Back Button UM0470 Datasheet HTML 16Page - STMicroelectronics UM0470 Datasheet HTML 17Page - STMicroelectronics UM0470 Datasheet HTML 18Page - STMicroelectronics UM0470 Datasheet HTML 19Page - STMicroelectronics UM0470 Datasheet HTML 20Page - STMicroelectronics UM0470 Datasheet HTML 21Page - STMicroelectronics UM0470 Datasheet HTML 22Page - STMicroelectronics UM0470 Datasheet HTML 23Page - STMicroelectronics UM0470 Datasheet HTML 24Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 20 / 37 page
background image
Debug module (DM)
UM0470
20/37
To restart the program execution, the STALL bit in DM_CSR2 must be cleared using the
WOTF command of the SWIM protocol.
4.3.3
Abort
To use the Abort function, the host must write the STALL bit in the DM_CSR2 using the
SWIM WOTF command.
No interrupt is generated. The core is stalled in the current state. Using the SWIM
commands, the host can read and modify the status of the MCU. If the CPU registers must
be modified, the procedure described in Section 3.7: CPU register access has to be used.
The host can restart the program execution by resetting the STALL bit using the SWIM
commands.
4.3.4
Watchdog control
Using the WDGOFF bit in the DM control register 1 (DM_CR1) you can configure the
Window Watchdog and Independent Watchdog counters to be stopped while the CPU is
stalled by the Debug Module. This bit must be set before the watchdogs are activated. If a
watchdog is enabled by Hardware Watchdog option bit, the WDGOFF bit has no effect on it.
4.3.5
Interaction with SWIM
The SWIM sends the status bit which indicates the SWIM is active or not. When SWIM is not
active, the DM will not generate any break/stall request to the CPU.
4.4
Breakpoint decoding table
Table 4.
Decoding table for breakpoint interrupt generation
DM_CR1
BREAK CONDITIONS
DM_CSR1
BC2
BC1
BC0
BIR
BIW
BK1F BK2F BRW
0000
0
Disabled (RESET state)
0
0
x
0000
1
Data Write on @=BK1 and Data=BK2L
1
0
0
0001
0
Data Read on @=BK1 and Data=BK2L
1
0
1
0001
1
Data R/W on @=BK1 and Data=BK2L
1
0
0/1
0010
0
Instruction fetch BK1<=@<=BK2
1
0
x
0010
1
Data Write on BK1<=@<=BK2
1
0
0
0011
0
Data Read on BK1<=@<=BK2
1
0
1
0011
1
Data R/W on BK1<=@<=BK2
1
0
0/1
0100
0
Instruction fetch on @<= BK1 or BK2<=@
1
0
x
0100
1
Data Write on @<= BK1 or BK2<=@
1
0
0
0101
0
Data Read on @<= BK1 or BK2<=@
1
0
1
0101
1
Data R/W on @<= BK1 or BK2<=@
1
0
0/1
011
X
X
Disabled
0
0
x
1000
0
Instruction fetch on @=BK1 then on @=BK2
0
1
x
1000
1
Data Write on @=BK1 or @=BK2
10 or 01 or 11
0



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


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