| 전자부품 데이터시트 검색엔진 |
|
STM8S 데이터시트(PDF) 301 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
STM8S 데이터시트(HTML) 301 Page - STMicroelectronics |
|
301 / 467 page ![]() DocID14587 Rev 14 301/467 RM0016 Inter-integrated circuit (I2C) interface 319 EV9: ADD10= 1, cleared by reading SR1 register followed by writing DR register. 2. EV5, EV6 and EV9 events stretch SCL low until the end of the corresponding software sequence. 3. EV6_3 software sequence must be completed before the ACK pulse of the current byte transfer. 21.4.3 Error conditions The following are the error conditions which may cause communication to fail. Bus error (BERR) This error occurs when the I2C interface detects an external stop or a start condition during an address or data transfer. In this case: • The BERR bit is set and an interrupt is generated if the ITERREN bit is set • In the case of the slave: data are discarded and the lines are released by hardware: – In the case of a misplaced start, the slave considers it is a restart and waits for an address or a stop condition. – In the case of a misplaced stop, the slave reacts in the same way as for a stop condition and the lines are released by hardware. • In the case of the master: the lines are not released and there is no effect in the state of the current transmission: software can decide if it wants to abort the current transmission or not. Acknowledge failure (AF) This error occurs when the interface detects a non-acknowledge bit. In this case, • The AF bit is set and an interrupt is generated if the ITERREN bit is set • A transmitter which receives a NACK must reset the communication: – If slave: Lines are released by hardware – If master: A stop condition or repeated start must be generated by software Arbitration lost (ARLO) This error occurs when the I2C interface detects an arbitration lost condition. In this case, • The ARLO bit is set by hardware (and an interrupt is generated if the ITERREN bit is set). • The I2C interface goes automatically back to slave mode (the MSL bit is cleared) • When the I²C loses the arbitration, it is not able to acknowledge its slave address in the same transfer, but it can acknowledge it after a repeated start from the master. • Lines are released by hardware |
|
링크 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 |