| 전자부품 데이터시트 검색엔진 |
|
MCP960X 데이터시트(PDF) 22 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP960X 데이터시트(HTML) 22 Page - Microchip Technology |
|
22 / 57 page ![]() 2015-2021 Microchip Technology Inc. DS20005426G-page 22 MCP960X/L0X/RL0X FIGURE 4-3: Timing Diagram to Set a Register Pointer and Read a Two-Byte Data. SDA A C K 11 0 0 A 00 0 0 A C K S 2 A 1 A 0 1 2 3 4 5 678 1 2 3 456 7 8 SCL 0 Address Byte Device* W 00 0 P A C K 11 00 A MSB Data A C K N A K S P 2 A 1 A 0 1 2 3 4 5 678 1 2 3 456 7 8 1 2 345 6 7 8 Address Byte LSB Data R Host SDA SCL 00 0 0 00 01 1 0 01 0 1 0 0 TABLE 4-2: POINTERS Read-Only Registers Pointer TH 0000 0000 TΔ 0000 0001 TC 0000 0010 Note: this is an example pseudo routine: i2c_start(); // send START command i2c_write(b’1100 0000’); // WRITE Command // also, make sure bit 0 is cleared ‘0’ i2c_write(b’0000 00XX’); // Write TH, TΔ, or TC registers i2c_stop(); // send STOP command i2c_start(); // send START command i2c_write(b’1100 0001’); // READ Command // also, make sure bit 0 is set ‘1’ UpperByte = i2c_read(ACK); // READ 8 bits (with t STRETCH delay) // and Send ACK bit LowerByte = i2c_read(NAK); // READ 8 bits (with t STRETCH delay) // and Send NAK bit i2c_stop(); // send STOP command //Convert the temperature data if ((UpperByte & 0x80) == 0x80){ //Temperature 0°C Temperature = (UpperByte x 16 + LowerByte / 16) - 4096; }else //Temperature 0°C Temperature = (UpperByte x 16 + LowerByte / 16); //TH, TD, or TC Temperature (°C) depending on the register pointer value shown in Table 4-2. MCP960X/L0X/RL0X Clock Stretching, tSTRETCH Device* Host Pointer (Table 4-2) Device* *MCP960X/L0X/RL0X |
|
링크 URL |
| 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 |