Electronic Components Datasheet Search
  English  ▼

X  

UM0470 Datasheet(PDF) 12 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) 12 Page - STMicroelectronics

Back Button UM0470 Datasheet HTML 8Page - STMicroelectronics UM0470 Datasheet HTML 9Page - STMicroelectronics UM0470 Datasheet HTML 10Page - STMicroelectronics UM0470 Datasheet HTML 11Page - STMicroelectronics UM0470 Datasheet HTML 12Page - STMicroelectronics UM0470 Datasheet HTML 13Page - STMicroelectronics UM0470 Datasheet HTML 14Page - STMicroelectronics UM0470 Datasheet HTML 15Page - STMicroelectronics UM0470 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 37 page
background image
Single wire interface module (SWIM)
UM0470
12/37
Parameters:
N
The 8 bits are the number of bytes to write (from 1 to 255)
@E/H/L:
This is the 24-bit address to be accessed.
D[...]:
These are the data bytes to write in the memory space
If a byte D [i] has not been written when the following byte D [i+1] arrives, D [i+1] will be
followed by a NACK. In this case the Host must send D [i+1] again until it is acknowledged.
For the last byte, if it is not yet written when a new command occurs, the new command will
receive a NACK and will not be taken into account.
If SWIM_DM bit is cleared, WOTF can only be done on SWIM internal registers.
3.6
SWIM communication reset
In case of a problem during communication, the host can reset the communication and the
on-going command by sending 128 x HSI clock periods low on the SWIM pin. If the SWIM
logic detects that the SWIM pin is low for more than 64 x HSI clock periods, it will reset the
communication state machine and will switch the SWIM to low-speed mode
(SWIM_CSR.HS <- 0). This is to allow for variation in the frequency of the internal RC
oscillator.
In response to this communication reset, SWIM will send the synchronization frame which is
128x HSI oscillator periods low on DBG pin.
3.7
CPU register access
The CPU registers are mapped in the STM8 memory, and they can be read or written
directly using the ROTF and WOTF SWIM commands. Write operations to the CPU
registers are committed only when the CPU is stalled.
To flush the instruction decode phase, you must set the FLUSH bit in the DM control/status
register 2 (DM_CSR2) after writing a new value in the Program Counter (PCE, PCH, PCL).
Table 2.
CPU register memory mapping in STM8
CPU register
Memory location
A7F00h
PCE
7F01h
PCH
7F02h
PCL
7F03h
XH
7F04h
XL
7F05h
YH
7F06h
YL
7F07h
SPH
7F08h
SPL
7F09h
CC
7F0Ah



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