CortexM3讲义讲解.ppt

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
CortexM3讲义讲解

A General “Inter-IC Chat” 1. The MCU will issue a START condition. This acts as an Attention‘. 2. The MCU sends the ADDRESS of the device it wants to access. Having received the address, all ICs will compare it with their own address. If the address matches, however, the chip will produce a response called the ACKNOWLEDGE signal. 3. Once the MCU receives the acknowledge, it can start transmitting or receiving DATA. When all is done, the MCU will issue the STOP condition. This is a signal that the connected ICs may expect another transmission to start any moment. * We have had several states on the bus in our example: START, ADDRESS, ACKNOWLEDGE, DATA , STOP. These are all unique conditions on the bus. A Timing Diagram of a Complete Data Transfer * Bus Timing START/STOP * A START condition acts as a signal to all connected ICs that something is about to be transmitted on the bus. A STOP condition is the signal for all devices on the bus that the bus is available again. Notes: A single message can contain multiple Start conditions. The use of this so-called repeated start is common in I2C. 2. A STOP condition always denotes the END of a transmission. * Bus Timing DATA * 10.1.4 Bus Events 1. Transmitting a byte to a slave device Once the start condition has been sent, a byte can be transmitted by the MASTER to the SLAVE. This first byte after a start condition will identify the slave on the bus (address) and will select the mode of operation. One of addresses reserved for special purposes is reserved for the Extended Addressing Mode. It is allocated to a new task to switch to 10-bit addressing mode. If there are slaves on the bus that can operate in the extended 10-bit addressing mode, they will all respond to the ACK cycle issued by the master. * 2. Receiving a byte from a slave device Once the slave has been addressed and the slave has acknowledged this, a byte can be received from the slave. Prior to sending the 8 clock pulses needed to clock in a byt

文档评论(0)

1520520 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档