| 数据搜索系统,热门电子元器件搜索 |
|
MCP9808 数据表(PDF) 21 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP9808 数据表(HTML) 21 Page - Microchip Technology |
|
21 / 52 page ![]() © 2011 Microchip Technology Inc. DS25095A-page 21 MCP9808 FIGURE 5-3: Timing Diagram for Reading from the Configuration Register (see Section 4.0 “Serial Communication”). SDA A C K 00 1 1 A Configuration Pointer 00 0 0 A C K S 2 A 1 A 0 1 2 3 4 567 8 1 2 345 6 7 8 SCL 0 Address Byte A C K 0 011 A MSB Data A C K N A K S P 2 A 1 A 0 123 45 6 7 8 1 2 345 6 7 8 12 3 4 567 8 Address Byte LSB Data R MCP9808 MCP9808 MCP9808 Master Master W SDA SCL 00 1 00 00 0 00 0 0 0 0 0 1 00 0 Reading the CONFIG Register: Note: It is not necessary to select the Register Pointer if it was set from the previous read/write. Note: This is an example routine (see Appendix A: “Source Code”). i2c_start(); // send START command i2c_write(AddressByte & 0xFE); //WRITE Command (see Section 4.1.4 “Address Byte”) //also, make sure bit 0 is cleared ‘0’ i2c_write(0x01); // Write CONFIG Register i2c_start(); // send Repeat START command i2c_write(AddressByte | 0x01); //READ Command //also, make sure bit 0 is set ‘1’ UpperByte = i2c_read(ACK); // READ 8 bits //and Send ACK bit LowerByte = i2c_read(NAK); // READ 8 bits //and Send NAK bit i2c_stop(); // send STOP command |
|
链接网址 |
| 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 |