| 数据搜索系统,热门电子元器件搜索 |
|
ZUSBOPTSC01ZAC 数据表(PDF) 191 Page - Zilog, Inc. |
|
|
|||||||||||||||||||||||||||||
ZUSBOPTSC01ZAC 数据表(HTML) 191 Page - Zilog, Inc. |
|
191 / 402 page ![]() PS024604-1005 P R E L I M I N A R Y Start and Stop Conditions Z8FMC16100 Series Flash MCU Product Specification 169 Start and Stop Conditions The master generates the START and STOP conditions to start or end a transaction. To start a transaction, the I2C controller generates a START condition by pulling the SDA sig- nal Low while SCL is High. To complete a transaction, the I2C controller generates a STOP condition by creating a Low-to-High transition of the SDA signal while the SCL signal is High. These START and STOP events occur when the START and STOP bits in the I2C Control Register are written by software to begin or end a transaction. Any byte transfer currently under way, including the Acknowledge phase, finishes before the START or STOP condition occurs. Software Control of I2C Transactions The I2C controller is configured via the I2C Control and I2C Mode registers. The MODE[1:0] field of the I2C Mode Register allows the configuration of the I2C controller for MASTER/SLAVE or SLAVE ONLY mode, and configures the slave for 7- or 10-bit addressing recognition. MASTER/SLAVE mode can be used for: • MASTER ONLY operation in a single master/one or more slave I2C system • MASTER/SLAVE in a multimaster/multislave I2C system • SLAVE ONLY operation in an I2C system In SLAVE ONLY mode, the START bit of the I2C Control Register is ignored (software cannot initiate a master transaction by accident), and operation to SLAVE ONLY mode is restricted, thereby preventing accidental operation in MASTER mode. The software can control I2C transactions by enabling the I2C controller interrupt in the interrupt controller or by polling the I2C Status Register. To use interrupts, the I2C interrupt must be enabled in the interrupt controller and followed by executing an EI instruction. The TXI bit in the I2C Control Register must be set to enable transmit interrupts. An I2C interrupt service routine then checks the I2C Status Register to determine the cause of the interrupt. To control transactions by polling, the TDRE, RDRF, SAM, ARBLST, SPRS, and NCKI inter- rupt bits in the I2C Status Register should be polled. The TDRE bit asserts regardless of the state of the TXI bit. Master Transactions The following sections describe master Read and Write transactions to both 7- and 10-bit slaves. |
|
链接网址 |
| 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 |