| Datenblatt-Suchmaschine für elektronische Bauteile |
|
ST7285C Datenblatt(PDF) 59 Page - STMicroelectronics |
|
|
|||||||||||||||||||||||||||||
ST7285C Datenblatt(HTML) 59 Page - STMicroelectronics |
|
59 / 117 page ![]() 59/117 ST7285C I 2C BUS INTERFACE (Cont’d) CONTROL REGISTER (CR) Address: 0028h — Read / Write Reset Value: 00h b7-6 = reserved. b5: PE Peripheral Enable 1 : Master/Slave capability. 0 : Peripheral disabled ( all outputs are released). When this bit is reset, all the bits of the control reg- ister and the status register except the Stop bit are reset. PE selects the alternate function on the corre- sponding I/O. This bit is set by software and it is cleared by soft- ware or by a reset. b4: ENGC Enable General call When this bit is set, the peripheral acknowledges the general call address. Engc bit is set or cleared by software. It is cleared when the peripheral is disabled (PE=0) or by reset. b3: START Generation of a Start condition When the Start bit is set in Slave mode, the inter- face generates a Start condition as soon as the bus is free. In Master mode, it generates a repeat- ed Start condition. Then an interrupt is generated if ITE is set. This bit is set by software and is cleared by soft- ware, when the peripheral is disabled (PE=0) or by reset. It is automatically cleared after the start con- dition is sent. b2: ACK Acknowledge level When this bit is set, an acknowledge is returned after an address byte is received or after a data byte is received. When it is cleared, no acknowledge is returned. It is set by software and it is cleared by software, when the peripheral is disabled (PE=0) or by reset. b1: STOP Generation of a Stop condition If the Stop bit is set in Master mode then a stop condition is generated after the transfer of the cur- rent byte or after that the current Start condition is sent. If it is set in Slave mode then both SCL and SDA lines are released in order to recover from an error condition and the peripheral waits for a detection of a Start or a Stop condition. Then the interface waits for a Stop or a Start condition on the lines. This bit can be cleared by software. It is automati- cally cleared after the stop condition is sent on the SCL line in Master mode or by reset. b0: ITE Interrupt Enable When the Interrupt Enable bit is set, the I 2C inter- face interrupt is generated after anyone of these following conditions – A Start condition is generated in Master mode. – The address is matched in Slave mode while the ACK flag is at a logic high. – A data byte has been received or is to be trans- mitted. – A loss of arbitration of the bus to another Master in Master mode. – A misplaced Start or Stop condition is detected – There is no acknowledge. – A Stop condition has been detected in Slave mode. While the ITE flag is set, an interrupt is generated, SCL is hold low and the transfer is suspended except when a loss of arbitration or a detection of a Stop condition have been detect- ed. ITE is reset by software, when the peripheral is disabled (PE=0) or by reset. 70 - - PE ENGC START ACK STOP ITE PE = 0 PE = 1 PA6 = normal I/O PA6 = I2C DATA PA4 = normal I/O PA4 = I2C CLOCK |
|
Link URL |
| War ALLDATASHEET hilfreich? [ DONATE ] |
Über Alldatasheet | Werbung | Kontakt | Privatsphäre und Datenschutz | Link zum Datenblatt | Linktausch | Hersteller 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 |