| поискавой системы для электроныых деталей |
|
BMP388 датащи(PDF) 42 Page - Bosch Sensortec GmbH |
|
|
|||||||||||||||||||||||||||||
BMP388 датащи(HTML) 42 Page - Bosch Sensortec GmbH |
|
42 / 59 page ![]() Bosch Sensortec | BMP388 Datasheet 42 | 59 Modifications reserved |Data subject to change without notice | Printed in Germany Document number: BST-BMP388-DS001-07 Revision_1.7_112020 5.3. SPI interface The SPI interface is compatible with SPI mode ‘00’ (CPOL = CPHA = ‘0’) and mode ‘11’ (CPOL = CPHA = ‘1’). The automatic selection between mode ‘00’ and ‘11’ is determined by the value of SCK after the CSB falling edge. The SPI interface has two modes: 4-wire and 3-wire. The protocol is the same for both. The 3-wire mode is selected by setting spi3=‘1’ in register “IF_CONF[0]” (see 4.3.13). The pad SDI is used as a data input/output pad in 3-wire mode. The SPI interface uses the following pins: • CSB: chip select, active low • SCK: serial clock • SDI: serial data input; data input/output in 3-wire mode • SDO: serial data output; hi-Z in 3-wire mode Refer to chapter 6 for connection instructions. CSB is active low and has an integrated pull-up resistor. Data on SDI is latched by the device at SCK rising edge and SDO is changed at SCK falling edge. Communication starts when CSB goes to low and stops when CSB goes to high; during these transitions on CSB, SCK must be stable. The SPI protocol is shown in Figure 17. CSB SCK SDI RW AD6 AD5 AD4 AD3 AD2 AD1 AD0 DI5 DI4 DI3 DI2 DI1 DI0 DI7 DI6 SDO DO5 DO4 DO3 DO2 DO1 DO0 DO7 DO6 tri-state Figure 17: SPI protocol (shown for mode ‘11’ in 4-wire configuration) In SPI mode, only 7 bits of the register addresses are used; the MSB of register address is not used and replaced by a read/write bit (RW = ‘0’ for write and RW = ‘1’ for read). Example: address 0xF7 is accessed by using SPI register address 0x77. For write access, the byte 0x77 is transferred, for read access, the byte 0xF7 is transferred. 5.3.1. SPI write Writing is done by lowering CSB and sending pairs control bytes and register data. The control bytes consist of the SPI register address (= full register address without bit 7) and the write command (bit7 = RW = ‘0’). Several pairs can be written without raising CSB. The transaction is ended by a raising CSB. The SPI write protocol is depicted in Figure 18. Figure 18: 4 wire SPI sequence Figure 19: SPI multiple write |
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |