| Electronic Components Datasheet Search |
|
AN2038 Datasheet(PDF) 12 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN2038 Datasheet(HTML) 12 Page - STMicroelectronics |
|
12 / 23 page ![]() Command frames AN2038 12/23 5 Command frames The commands are sent from the master to the slave and are organized as shown in Figure 9. After the Start condition, the first byte addresses the slave and forces a w to send the command to the slave. STX is a byte that indicates a Start of Transmission and is coded in Table 4. Then is dispatched a byte with the length (n) of the sequence of bytes that will be sent. D1 is the "Command" byte see Table 4. D2 - Dn is an optional sequence of bytes; this is a additional parameter sent together with the command. The next two bytes CRC1 and CRC2 is the checksum calculated with the following rule: CRC calculation CRC value is a 16-bit value that contains the sum of D1, D2, … , Dn. CRC1 is the MSB of CRC value. CRC2 is the LSB of CRC value. The last byte is ETX that indicates the End of Transmission. Figure 9. Communication frame (Command from Master) As command the master can ask a request from the slave. The next frame is organized as show in Figure 10. After the ask command of the previous frame the master start a new communication and in the first byte after the Start Condition it address the slave from which it wait the answer and force a r. The slave sent the following byte: STX is a byte that indicates a Start of Transmission and is coded in the Table 4. After that it is transmitted a byte with the length (n) of the sequence of bytes that will be sent. D1 - Dn is the answer from the slave. The next two byte CRC1 and CRC2 is the checksum calculated with the above described rule. The last byte is ETX that indicate the End of Transmission. STX Length = n D1 D2 Dn … CRC1 CRC2 ETX COMMAND PARAMETERS From Master |
|
|
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 |