| 数据搜索系统,热门电子元器件搜索 |
|
L9679P 数据表(PDF) 52 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
L9679P 数据表(HTML) 52 Page - STMicroelectronics |
|
52 / 272 page ![]() SPI interfaces L9679P 52/272 DocID029275 Rev 1 7 SPI interfaces The L9679P system solution device has many user selectable features controlled through serial communications by the integrated microcontroller. The device features two SPI interfaces: one global SPI and one Remote Sensor SPI. The global SPI interface provides general configuration, control and status functions for the device, while the Remote Sensor SPI provides dedicated access to Remote Sensor Data and Status Registers. 7.1 SPI protocol Each SPI interface (Global and Remote Sensor) use their own dedicated set of 4 I/O pins: CS_G, SCLK_G, MOSI_G and MISO_G for Global SPI; CS_RS, SCLK_RS, MOSI_RS and MISO_RS for Remote Sensor SPI. Both the SPI interfaces use the same protocol described here below (the suffix ‘_X’ used in the SPI pin names below is intended to stand for either ‘_G’ or ‘_RS’ depending on the particular SPI interface considered) The IC SPI interface is composed by an input shift register, an output shift register and four control signals. MOSI_X is the data input to the input shift register. MISO_X is the data output from the output shift register. SCLK_X is the clock input used to shift data into the input shift register or out from the output one while CS_X is the active low chip select input. All SPI communications are executed in exact 32 bit increments. The general format of the 32 bit transmission for the SPI interface is shown in Table 5. Data sent to the IC (i.e. MOSI_X) consists of a target read register ID (RID), a target write register ID (WID), write data parity (WPAR) and 16 bits of data (WRITE). WRITE data is the data to be written to the target write register indicated by WID. Data returned from the IC (i.e. MISO_X) consists of a global status word (GSW), read data parity (RPAR) and 20 bits of data (READ). READ data will be the contents of the target read register as indicated by the RID bits. The parity bits WPAR and RPAR cover all the 32 bits of the MOSI and MISO frames, respectively. Odd parity type is used. The communications is controlled through CS_X, enabling and disabling communication. When CS_X is at logic high, all SPI communication I/O is tri-stated and no data is accepted. When CS_X is low, data is latched on the rising edge of SCLK_X and data is shifted on the falling edge. The MOSI_X pin receives serial data from the master with MSB first. Likewise for MISO_X, data is read MSB first, LSB last. The L9679P contains a data validation method through the SCLK_X input to keep transmissions with not exactly 32 bits from being written to the device. The SCLK_X input counts the number of received clocks and should the clock counter exceed or count fewer Table 5. SPI MOSI and MISO frames layout SPI register R/W 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 SPI_MOSI GID RID[6:0] WID[6:0] WPAR SPI_MISO GSW[10:0] RPAR READ[19:16] 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 SPI_MOSI WRITE[15:0] SPI_MISO READ[15:0] |
|
链接网址 |
| 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 |