| 전자부품 데이터시트 검색엔진 |
|
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 |
| 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 |