| Motore di ricerca datesheet componenti elettronici |
|
INA239 Scheda tecnica(PDF) 18 Page - Texas Instruments |
|
|
|
|||||||||||||||||||||||||||||
INA239 Scheda tecnica(HTML) 18 Page - Texas Instruments |
|
18 / 44 page ![]() default power-up register values are shown in the reset column for each register description. Links to the register descriptions are shown in Section 7.6. 7.5 Programming 7.5.1 Serial Interface The primary communication between the INA239 and the external MCU is through the SPI bus, which provides full-duplex communications in a main-secondary configuration. The external MCU is always the primary or main SPI device, sending command requests on the MOSI pin, and receiving device responses on the MISO pin. The INA239 is always an SPI secondary device, receiving command requests and sending responses (status, measured values) to the external MCU over the MISO pin. • SPI is a 4-pin interface with pins as: – CS - SPI Chip Select (input) – SCLK - SPI Clock (input) – MOSI - SPI Secondary In / Main Out data (input) – MISO - SPI Secondary Out / Main In data (tri-state output) • The SPI frame size is variable in length depending on the INA239 register accessed through the SPI interface as following: – Main to Secondary (MOSI): 6 bits for register Address; 1 bit low; 1 R/W bit (read / not write); variable length of low bits depending on the INA239 register length. – Secondary to Main (MISO): 8 bits low; variable length of bits depending on the INA239 register length. • SPI bit-speed up to 10 Mbit/s • Both Main commands and INA239 data are shifted MSB first, LSB last • The data on the MOSI line is sampled on the falling edge of SCLK • The data on the MISO line is shifted out on the rising edge of SCLK The SPI communication starts with the CS falling edge, and ends with CS rising edge. The CS high level keeps secondary SPI interface in an idle state, and MISO output is tri-stated. Since the MISO output is push-pull it is ideal to have the INA239 supply at the same voltage as the primary device I/O supply. If different supply voltages are used, level translation is recommended. 7.5.1.1 SPI Frame SPI communication to the INA239 device is performed through register address access. Communication to every register starts with a 6-bit register address followed by a "0" and a R/W bit. Setting the R/W bit to "1" indicates that the current SPI frame will read from a device register while setting the R/W bit to "0" indicates the current SPI frame will write data to a device register. MISO CS MOSI ADDR 5 ADDR 4 ADDR 3 ADDR 2 ADDR 1 ADDR 0 DATA MSB DATA DATA DATA DATA DATA DATA DATA LSB R . . . . . . . . . . 16 ± 24 bits SCLK Figure 7-7. SPI Read Frame INA239 SLYS027 – JANUARY 2021 www.ti.com 18 Submit Document Feedback Copyright © 2021 Texas Instruments Incorporated Product Folder Links: INA239 |
|
Link URL |
| Lei ha avuto il aiuto da alldatasheet? [ DONATE ] |
Di alldatasheet | Richest di pubblicita | contatti | Privacy Policy | Collegamento alla scheda tecnica | scambio Link | Ricerca produttore 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 |