| Moteur de recherche de fiches techniques de composants électroniques |
|
MCP960X Fiches technique(PDF) 24 Page - Microchip Technology |
|
|
|||||||||||||||||||||||||||||
MCP960X Fiches technique(HTML) 24 Page - Microchip Technology |
|
24 / 57 page ![]() 2015-2021 Microchip Technology Inc. DS20005426G-page 24 MCP960X/L0X/RL0X FIGURE 4-5: Timing Diagram to Set a Register Pointer, Write Two Bytes, and Read the Data. SDA A C K 11 0 0 A Alert 1 MSB 00 0 1 A C K S 2 A 1 A 0 1 2 3 4 5 678 12 3 456 7 8 SCL 0 Address Byte W 00 0 xx xx A C K 12 3 4 5 6 7 8 x xx x xx x x A C K 1 2 34 56 7 8 xx x x P TABLE 4-4: POINTERS Alert Limit Registers Pointer Alert 1 0001 0000 Alert 2 0001 0001 Alert 3 0001 0010 Alert 4 0001 0011 Alert 1 LSB 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’0001 00XX’); // Write Alert registers i2c_write(b’XXXX XXXX’); // Write register Upper Byte i2c_write(b’XXXX XXXX’); // Write register Lower Byte 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 Alert Limit 1 (Table 4-4) Device* A C K 1100 A Alert 1 MSB A C K N A K S P 2 A 1 A 0 123 4 5 6 7 8 1 2 345 6 7 8 1 2 345 6 7 8 Address Byte Alert 1 LSB R Host SDA SCL xxx x x x x x x x x x x x x x MCP960X/L0X/RL0X Clock Stretching, tSTRETCH Device* Host *MCP960X/L0X/RL0X Device* Device* Device* |
|
Lien URL |
| ALLDATASHEET vous a-t-il été utile ? [ DONATE ] |
À propos de Alldatasheet | Publicité | Contactez-nous | Politique de confidentialité | Lien vers la fiche technique | Echange de liens | Fabricants 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 |