编辑: 过于眷恋 2019-07-03

2 C的微控制器, 如图 4所示, 其中采用标准I C 和SPI连接.表 1列出了两种协议的引脚功能. 表1. SPI和I2 C通信模式下ADXL345 的引脚功能 功能 引脚编号 引脚名称 I2 C SPI

2 CS

7 (连接到V 以支持I C) 片选 DD

12 SDO/ALT ADDRESS 备选地址选择 串行数据输出 串行数据输入(4 线式 SPI)/ 串行数据输入和输出(2 线式 SPI)

13 SDA/SDI/SDIO 串行数据

14 SCL/SCLK 串行通信时钟 串行通信时钟 电路笔记 CN-0133 (Continued from first page) Circuits from the Lab are intended only for use with Analog Devices products and are the intellectual property of Analog Devices or its licensors. While you may use the Circuits from the Lab in the design of your product, no other license is granted by implication or otherwise under any patents or other intellectual property by application or use of the Circuits from the Lab . Information furnished by Analog Devices is believed to be accurate and reliable. However, Circuits from the Lab are supplied as is and without warranties of any kind, express, implied, or statutory including, but not limited to, any implied warranty of merchantability, noninfringement or fitness for a particular purpose and no responsibility is assumed by Analog Devices for their use, nor for any infringements of patents or other rights of third parties that may result from their use. Analog Devices reserves the right to change any Circuits from the Lab at any time without notice, but is under no obligation to do so. Trademarks and registered trademarks are the property of their respective owners. ?2010 Analog Devices, Inc. All ri 图4. SPI(左)和I C(右)连接图

2 进一步阅读 This circuit is used in the ADXL345 Development Board (model number EVAL-ADXL345Z-DB). For information on ADXL345 operation and register functions, please refer to the ADXL345 data sheet. For information on programming the ADuC7024, please see the ghts reserved. Trademarks and registered trademarks are the property of their respective owners. CN08654sc-0-10/09(0) w w w . a n a l o g . c o m Rev.

0 | Page

3 of

3 ADuC7024 data sheet. Sample code for the I2 C configuration shown in Figure

2 is available at http://www.analog.com/static/ imported-files/circuit_notes/CN0133_Source_Code.zip. 数据手册和评估板 ADXL345 Data Sheet ADXL345 Evaluation Tools ADuC7024 Data Sheet ADuC7024 Evaluation Tools 修订历史 10/09―Revision 0: Initial Version ........

下载(注:源文件不在本站服务器,都将跳转到源网站下载)
备用下载
发帖评论
相关话题
发布一个新话题