| поискавой системы для электроныых деталей |
|
HT7M2136 датащи(PDF) 16 Page - Holtek Semiconductor Inc |
|
|
|||||||||||||||||||||||||||||
HT7M2136 датащи(HTML) 16 Page - Holtek Semiconductor Inc |
|
16 / 25 page ![]() Rev. 1.20 16 June 17, 2016 HT7M2126/27/36/56/76 Bit 3~0 EEADD3~EEADD0: EEPROM Address Note:0000~1111Addressesforcustomdefined. Note:Thisisanexampleroutine:(SeeAppendixB:“SourceCode”) i2c_start(); // send START command i2c_write(AddressByte & 0xFE); // WRITE Command // also, make sure bit 0 is cleared ‘0’ i2c_write(0x04); // Write EEPROM Register i2c_write(0x05); // Write data(Write mode,Write address 0x05) i2c_write(0xAA); // Write data(Write data 0xAA) i2c_stop(); // send STOP command i2c_start(); // send START command i2c_write(AddressByte & 0xFE); // WRITE Command // also, make sure bit 0 is cleared ‘0’ i2c_write(0x04); // Write EEPROM Register i2c_write(0x25); // Write data(Read mode,read address 0x05) i2c_write(0x00); // Write data(Write any data will not affect result) i2c_stop(); i2c_start(); // send START command i2c_write(AddressByte & 0xFE); // WRITE Command // also, make sure bit 0 is cleared ‘0’ i2c_write(0x04); // Write EEPROM 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 (UpperByte = 0x25) // and Send ACK bit LowerByte = i2c_read(NAK); // READ 8 bits (LowerByte = 0xAA) // and Send NAK bit 5. PIR RAW DATA • PIR A/D CONVERSION RAW DATA → ADDRESS: 05H Bit 15 14 13 12 11 10 9 8 Name — — — — PirRAW11 PirRAW10 PirRAW9 PirRAW8 R/W — — — — R R R R Bit 7 6 5 4 3 2 1 0 Name PirRAW7 PirRAW6 PirRAW5 PirRAW4 PirRAW3 PirRAW2 PirRAW1 PirRAW0 R/W R R R R R R R R Bit 15~12 Unimplemented read as 0 Bit 11~0 PirRAW11~PirRAW0: Pir Signal A/D Conversion Raw data Note:Canbeusedfordevelopedrecognitionalgorithmsorforcustomdefinerecognitionfunction. Recommended polling time is greater than 4ms. Note:Thisisanexampleroutine:(SeeAppendixB:“SourceCode”) i2c_start(); // send START command i2c_write(AddressByte & 0xFE); // WRITE Command // also, make sure bit 0 is cleared ‘0’ i2c_write(0x05); // Write PIRRAW Register i2c_start(); // send Repeat START command i2c_write(AddressByte | 0x01); // READ Command // also, make sure bit 0 is set ‘1’ |
|
|
ссылки URL |
| Вашему бизинису помогли Аллдатащит? [ DONATE ] |
Что такое Аллдатащит | реклама | контакт | Конфиденциальность | Ссылка на техническое описание | обмен ссыками | поиск по производителю 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 |