| 数据搜索系统,热门电子元器件搜索 |
|
SN260 数据表(PDF) 27 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
SN260 数据表(HTML) 27 Page - STMicroelectronics |
|
27 / 88 page ![]() SN260 SPI protocol 27/88 The Length Byte is only included if there is information in the EZSP Frame (EmberZNet Serial Protocol Frame) and the Length Byte defines the length of just the EZSP Frame. Therefore, if a command includes an EZSP Frame, the Length Byte can have a value from 2 through 125 and the overall command size will be 5 through 128 bytes. The SPI Byte can be a specific value indicating if there is an EZSP Frame or not, and if there is an EZSP Frame, then the Length Byte can be expected. The Error Byte is used by the error responses to provide additional information about the error and appears in place of the length byte. This additional information is described in the following sections. The EZSP Frame contains the data needed for operating EmberZNet. The EZSP Frame and its format are explained in Section 7: EmberZNet serial protocol on page 34. The Frame Terminator is a special control byte used to mark the end of a command. The Frame Terminator byte is defined as 0xA7 and is appended to all Commands and Responses immediately after the final data byte. The purpose of the Frame Terminator is to provide a known byte the SPI Protocol can use to detect a corrupt command. For example, if the SN260 resets during the Response Section, the Host will still clock out the correct number of bytes. But when the host attempts to verify the value 0xA7 at the end of the Response, it will see either the value 0x00 or 0xFF and know that the SN260 just reset and the corrupt Response should be discarded. Note: The Length Byte only specifies the length of the EZSP Frame. It does not include the Frame Terminator. 6.5 SPI byte Table 15 lists the possible commands and their responses in the SPI Byte. Table 15. SPI commands & responses Command value Command Response value Response Any Any 0x00 SN260 reset occurred—This is never used in another response; it always indicates an SN260 Reset. Any Any 0x01 Oversized EZSP Frame received—This is never used in another response; it always indicates an overflow occurred. Any Any 0x02 Aborted Transaction occurred—This is never used in another response; it always indicates an aborted transaction occurred. Any Any 0x03 Missing Frame Terminator—This is never used in another response; it always indicates a missing frame terminator in the command. Any Any 0x04 Reserved 0x00 – 0x0F Reserved [none] [none] 0x0A SPI Protocol Version 0x81 – 0xBF bit[7] is always set. bit[6] is always cleared. bit[5:0] is a number from 1–63. 0x0B SPI Status 0xC0 – 0xC1 bit[7] is always set. bit[6] is always set. bit[0]—Set if Alive. 0xF0 – 0xFD Reserved [none] [none] 0xFE EZSP Frame 0xFE EZSP frame 0xFF Invalid 0xFF Invalid |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 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 |