| Electronic Components Datasheet Search |
|
UM0470 Datasheet(PDF) 11 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
UM0470 Datasheet(HTML) 11 Page - STMicroelectronics |
|
11 / 37 page ![]() UM0470 Single wire interface module (SWIM) 11/37 3.5 SWIM commands The Host can send a command when the line is idle or after each data byte from device. After sending the command, the host releases the line. When the SWIM is ready to answer to the command, it initiates the transfer. If a new command from the host occurs while a command is pending in SWIM, the pending command is cancelled and the new command is decoded, except in case of WOTF. Three commands are available. They are listed in Table 1. 3.5.1 SRST: system reset Format: 1 command from Host to Target Parameters: None. SRST command generates a system reset only if SWIM_CSR/SWIM_DM bit is set. 3.5.2 ROTF: read on the fly Format: 1 command followed by the number of bytes to be read followed by the address on three bytes. Parameters: N The 8 bits are the number of bytes to read (from 1 to 255) @E/H/L: This is the 24-bit address to be accessed. D[...]: These are the data bytes read from the memory space If the host sends a NACK to a data byte, the device will send the same byte again. If SWIM_DM bit is cleared, ROTF can only be done on SWIM internal registers. 3.5.3 WOTF: write on the fly 1 command followed by the number of bytes to be written followed by the address on three bytes. Table 1. SWIM command summary Command Binary Code SRST 000 ROTF 001 WOTF 010 Reserved for future use 011 1xx SRST ROTF N @E @H @L D[@] D[@+N] WOTF N @E @H @L D[@] D[@+N] |
|
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 |