| 数据搜索系统,热门电子元器件搜索 |
|
AS8515 数据表(PDF) 45 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
AS8515 数据表(HTML) 45 Page - ams AG |
|
45 / 65 page ![]() www.ams.com Revision 0.7 45 - 65 AS8515 Datasheet - 4-W i re SPI Interf ace 9.1.1 SPI Frame A frame is formed by a first byte for command and address/configuration and a following bit stream that can be formed by an integer number of bytes. Command is coded on the 1 first bit, while address is given on LSB 5 bits (see Table 48). If the command is read or write, one or more bytes follow. When the micro-controller sends more bytes (keeping CS LOW and SCLK toggling), the SPI interface increments the address of the previous data byte and writes/reads data to/from consecutive addresses. 9.1.2 Write Command For Write command C0 = 0. After the command code C0 and two reserved bits, the address of register to be written has to be provided from the MSB to the LSB. Then one or more data bytes can be transferred, always from the MSB to the LSB. For each data byte following the first one, used address is the incremented value of the previously written address. Each bit of the frame has to be driven by the SPI master on the SPI clock transfer edge and the SPI slave on the next SPI clock edge samples it. These edges are selected as per clock polarity settings. In the following figures two examples of write command (without and with address self-increment. Figure 27. Protocol for Serial Data Write with Length = 1 Table 48. Command Bits Command Bits Register Address or Transmission Configuration C0 Reserved Reserved A4 A3 A2 A1 A0 C0 Command <A4:A0> Description 0 WRITE ADDRESS Writes data byte on the given starting address 1 READ ADDRESS Reads data byte from the given starting address CS SCLK SDI SDO 0 RES1 RES0 A4 A0 A1 A2 A3 D0 D1 D2 D3 D4 D5 D7 D6 Transfer edge Sampling edge Data D7 – D0 is moved to Address A4..A0 here |
|
链接网址 |
| 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 |