| công cụ tìm kiếm bảng dữ liệu linh kiện điện tử |
|
TMP118MB bảng dữ liệu(PDF) 23 Page - Texas Instruments |
|
|
|||||||||||||||||||||||||||||
TMP118MB bảng dữ liệu(HTML) 23 Page - Texas Instruments |
|
23 / 43 page ![]() Table 7-4. Device Address Options 7-BIT I2C TARGET ADDRESS DEVICE HEX BINARY TMP118A/ TMP118MA 0x48 1001000'b TMP118B/ TMP118MB 0x49 1001001'b TMP118C/ TMP118MC 0x4A 1001010'b TMP118D/ TMP118MD 0x4B 1001011'b 7.5.1.1.3 Writing and Reading Operation 7.5.1.1.3.1 Writes To write on the I2C bus, the controller sends a START condition on the bus with the address of the target, as well as the last bit (the R/W bit) set to 0b, which signifies a write. The target acknowledges, letting the controller know the target is present on the bus and ready. After this, the controller starts sending the register pointer and register data to the target until the controller has sent all the data necessary, and the controller terminates the transmission with a STOP condition. Writes to read-only registers or register locations outside of the register map are ignored. The TMP118 still acknowledges (ACK) when writing outside of the register map. Figure 7-15 shows an example of writing 2-byte data to a single register. Controller drives SDA Target drives SDA S A6 A5 A4 A3 A2 A1 A0 0 A 0 0 0 0 P3 P2 P1 P0 A D15 D14 D13 D12 D11 D10 D9 D8 A D7 D6 D5 D4 D3 D2 D1 D0 A P START R/W ACK from Target ACK from Target ACK from Target ACK from Target STOP Target Address Register Pointer (N) Data to Register N (MSB) Data to Register N (LSB) Figure 7-15. Write to Single Register 7.5.1.1.3.2 Reads For a read operation the controller sends a START condition, followed by the target address with the R/W bit set to 0b (signifying a write). The target acknowledges the write request, and the controller then sends the register pointer in the next frame. The controller then initiates a START or RESTART followed by the target address with the R/W bit set to 1b (signifying a read). A START initiates communication with an target, while a RESTART allows the controller to access different registers on the same target without needing to send a full STOP signal first. The controller continues to send out clock pulses but releases the SDA line so that the target can transmit data. At the end of every byte of data, the controller sends an ACK to the target, letting the target know that the controller is ready for more data. Once the controller has received the number of bytes the controller is expecting, the controller sends a NACK, signaling to the target to halt communications and release the SDA line. The controller follows this up with a STOP condition. Note that: • If the controller needs to read from the same register repeatedly, the controller is not required to resend the pointer over and over again. The pointer value is stored in the device. • The default pointer value upon device POR is 0h, so the controller can immediately proceed to read the temperature result after device power-up without sending the pointer value for the Temp_Result register. • Reading from a non-indexed register location returns 0x0h. Figure 7-16 shows an example of reading a single word from a target register. www.ti.com TMP118 SNIS237A – DECEMBER 2024 – REVISED APRIL 2025 Copyright © 2025 Texas Instruments Incorporated Submit Document Feedback 23 Product Folder Links: TMP118 |
|
Link URL |
| Cho đến nay ALLDATASHEET có giúp ích cho doanh nghiệp của bạn hay không? [ DONATE ] |
Alldatasheet là | Quảng cáo | Liên lạc với chúng tôi | Chính sách bảo mật | Liên kết đến bảng dữ liệu | Trao đổi link | Tìm kiếm theo nhà sản xuất 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 |