| Electronic Components Datasheet Search |
|
UM0470 Datasheet(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0470 Datasheet(HTML) 12 Page - STMicroelectronics |
|
12 / 37 page ![]() 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 |
|
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 |
| 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 |