| 数据搜索系统,热门电子元器件搜索 |
|
ADE7932 数据表(PDF) 94 Page - Analog Devices |
|
|
|||||||||||||||||||||||||||||
ADE7932 数据表(HTML) 94 Page - Analog Devices |
|
94 / 120 page ![]() ADE7978/ADE7933/ADE7932 Data Sheet Rev. 0 | Page 94 of 120 SPI-COMPATIBLE INTERFACE The SPI interface of the ADE7978 is always a slave in the commu- nication and consists of four pins (with dual functions): SCLK/SCL, MOSI/SDA, MISO/HSD, and SS/HSA. The functions used in the SPI-compatible interface are SCLK, MOSI, MISO, and SS. The serial clock for a data transfer is applied at the SCLK logic input. All data transfer operations are synchronized to the serial clock. The maximum serial clock frequency supported by the SPI interface is 2.5 MHz. Data shifts into the ADE7978 at the MOSI logic input on the falling edge of SCLK, and the ADE7978 samples it on the rising edge of SCLK. Data shifts out of the ADE7978 at the MISO logic output on the falling edge of SCLK and is sampled by the master device on the rising edge of SCLK. The most significant bit of the word is shifted in and out first. MISO stays in high impedance when no data is transmitted from the ADE7978. Figure 119 shows the connection between the ADE7978 SPI interface and a master device that contains an SPI interface. MOSI MISO SCLK ADE7978 MOSI MISO SCK SPI DEVICE SS SS Figure 119. Connecting the ADE7978 SPI Interface to an SPI Device The SS logic input is the chip select input. This input is used when multiple devices share the serial bus. Drive the SS input low for the entire data transfer operation. Bringing SS high during a data transfer operation aborts the transfer and places the serial bus in a high impedance state. A new transfer can be initiated by returning the SS logic input low. However, aborting a data transfer before completion leaves the accessed register in a state that cannot be guaranteed. Every time a register is written, its value should be verified by reading it back. The protocol is similar to the protocol used in the I2C interface. SPI Write Operation A write operation using the SPI interface of the ADE7978 is initiated when the master sets the SS pin low and begins sending one byte, representing the slave address of the ADE7978, on the MOSI line (see Figure 120). The master sends data on the MOSI line starting with the first high to low transition of SCLK. The SPI interface of the ADE7978 samples the data on the low to high transitions of SCLK. The most significant seven bits of the address byte can have any value, but as a good programming practice, these bits should have a value other than 0111000, which is the 7-bit address used in the I2C protocol. Bit 0 of the address byte is the read/write bit. For a write operation, Bit 0 must be cleared to 0. The master then sends the 16-bit address of the register that is to be written followed by the 32-, 16-, or 8-bit value of that register without losing an SCLK cycle. After the last bit is transmitted, the master sets the SS and SCLK lines high at the end of the SCLK cycle, and the communication ends. The data lines, MOSI and MISO, enter a high impedance state. 0 15 14 SCLK MOSI 1 0 31 30 1 0 0 00 0 0 0 0 REGISTER ADDRESS REGISTER VALUE SS Figure 120. SPI Write Operation of a 32-Bit Register |
|
链接网址 |
| 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 |