Electronic Components Datasheet Search
  English  ▼

X  

AN2038 Datasheet(PDF) 12 Page - STMicroelectronics

Part # AN2038
Description  I2C emulation with ST7MC in slave mode
PDF  23 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN2038 Datasheet(HTML) 12 Page - STMicroelectronics

Back Button AN2038 Datasheet HTML 8Page - STMicroelectronics AN2038 Datasheet HTML 9Page - STMicroelectronics AN2038 Datasheet HTML 10Page - STMicroelectronics AN2038 Datasheet HTML 11Page - STMicroelectronics AN2038 Datasheet HTML 12Page - STMicroelectronics AN2038 Datasheet HTML 13Page - STMicroelectronics AN2038 Datasheet HTML 14Page - STMicroelectronics AN2038 Datasheet HTML 15Page - STMicroelectronics AN2038 Datasheet HTML 16Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 12 / 23 page
background image
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



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


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