| Electronic Components Datasheet Search |
|
SAFC161PI Datasheet(PDF) 301 Page - Infineon Technologies AG |
|
|
|||||||||||||||||||||||||||||
SAFC161PI Datasheet(HTML) 301 Page - Infineon Technologies AG |
|
301 / 400 page ![]() &3, 7KH ,& %XV 0RGXOH User’s Manual 17-7 1999-08 17.3.2 Operation in Multimaster Mode If multimaster mode is selected via bitfield MOD in register ICCON the on-chip I 2C module can operate concurrently as a bus master or as a slave. The descriptions of these modes apply accordingly. Multimaster mode implies that several masters are connected to the same bus. As more than one master may try to claim the bus at a given time an arbitration is done on the SDA line. When a master device detects a mismatch between the data bit to be sent and the actual level on the SDA (bus) line it looses the arbitration and automatically switches to slave mode (leaving the other device as the remaining master). This loss of arbitration is indicated by bit AL in register ICST which must be checked by the driver software when operating in multimaster mode. Lost arbitration is also indicated when the software tries to claim the bus (by setting bit BUM) while the I 2C module is operating in slave mode (indicated by bit BB=’1’). Bit AL must be cleared via software. 17.3.3 Operation in Slave Mode If the on-chip I 2C module shall be controlled via the I2C bus by a remote master (i.e. be a bus slave) slave mode must be selected via bitfield MOD in register ICCON. The physical channel is configured by a control word written to register ICCFG, defining the active interface pins and the used baudrate. It is recommended to have only one SDA and SCL line active at a time when operating in slave mode. The address by which the slave module can be selected is written to register ICADR. The I 2C module is selected by another master when it receives (after a start condition) either its own device address (stored in ICADR) or the general call address (00 H). In this case an interrupt is generated and bit SLA in register ICST is set indicating the valid selection. The desired transfer mode is then selected via bit TRX (TRX=’0’ for reception, TRX=’1’ for transmission). For a transmission the respective data byte is placed into the buffer ICRTB (which automatically sets bit TRX) and the acknowledge behaviour is selected via bit ACKDIS. For a reception the respective data byte is fetched from the buffer ICRTB after IRQD has been activated. In both cases the data transfer itself is enabled by clearing bit IRQP which releases the SCL line. When a stop condition is detected bit SLA is cleared. The I 2C bus configuration register ICCFG selects the bus baudrate as well as the activation of SDA and SCL lines. So an external I 2C channel can be established (baudrate and physical lines) with one single register access. |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |