| поискавой системы для электроныых деталей |
|
AN4655 датащи(PDF) 17 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
AN4655 датащи(HTML) 17 Page - STMicroelectronics |
|
17 / 21 page ![]() DocID027483 Rev 1 17/21 AN4655 SW methods 20 /** * @brief I2C master read 8-bit bit-bang * @param unsigned char ack – acknowledgement control * @retval unsigned char b – data received */ unsigned char I2C_master_read (unsigned char ack) { unsigned char msk = 0x80; unsigned char b = 0; do { i2c_set_scl(); half_bit_dly(); sda_rd_control(b); i2c_clear_scl(); half_bit_dly(); } while ((msk>>=1) != 0); if(ack != 0) { i2c_clear_sda();/* ACK slot control */ } setup_dly(); i2c_set_scl(); half_bit_dly(); i2c_clear_scl(); half_bit_dly(); return (b); } /** * @brief I2C start * @param none * @retval none */ void I2C_Start_condition(void) { i2c_bus_init(); half_bit_dly(); i2c_clear_sda(); half_bit_dly(); i2c_clear_scl() |
|
|
ссылки 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 |