欢迎来到天天文库
浏览记录
ID:41153042
大小:538.29 KB
页数:23页
时间:2019-08-17
《RDA5820系列编程指南》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、RDA5820系列2011.7.23RDA5820系列编程指南V3.0TheinformationcontainedhereinistheexclusivepropertyofRDAandshallnotbedistributed,reproduced,ordisclosedinwholeorinpartwithoutpriorwrittenpermissionofRDA.1RDA5820一、说明RDA5820系列包括RDA5820、RDA5820NS,下文简称为RDA5820。Theinformationcontainedhereinisthe
2、exclusivepropertyofRDAandshallnotbedistributed,reproduced,ordisclosedinwholeorinpartwithoutpriorwrittenpermissionofRDA.2RDA5820二控制接口RDA5820提供两种控制接口,I2C和SPI3线,控制接口的选择通过PIN7:MODE上设置高低电平来选择。MODE:0I2C;MODE:1SPI。两种接口的控制模式如下描述:(一)、I2C控制接口:I2C接口与I2C-BusSpecification2.1兼容,包含2个信号:SC
3、LK和SDIO。I2C接口是由START,命令字节,数据字节,及每个字节后的ACK或NACK比特,和STOP组成,命令字节包括一个7比特的chip地址(0010001b)和一个读写r/w命令比特。ACK(或NACK)由接收器发出。读写方式和器件地址详细描述如下:1、RDA5820的读写方式标准I2C读写方式一致,即带寄存器地址的方式,I2C器件地址为0010001B,加上读写标志位,即为0x22(写操作)和0x23(读操作),读写方式的格式如下:I2CCHIPREGISTERREGISTERREGISTERA/STARTWAAASTOPADDRE
4、SSADDRESSBIT<15:8>BIT<7:0>NA图1RDA5820I2C写格式I2CCHIPREGISTERA/I2CCHIPREGISTERREGISTERSTARTWASTARTRAANASTOPADDRESSADDRESSNAADDRESSBIT<15:8>BIT<7:0>图2RDA5820I2C读格式FrommastertoslaveA=acknowledge(SDALOW)S=STARTconditionFromslavetomasterNA=notacknowledge(SDAHIGH)P=STOPconditionThein
5、formationcontainedhereinistheexclusivepropertyofRDAandshallnotbedistributed,reproduced,ordisclosedinwholeorinpartwithoutpriorwrittenpermissionofRDA.3RDA5820tsu:stathd:sta0010001tsu:datthd:dattsptsu:stotbufSDIOSCLK1-7891-781-781-78999CHIPREGISTERSTARTaddressWACKADDRESSACKDATAh
6、ighbyteACKDATAlowbyteACKSTOPSTART图3I2C接口写数据时序tsu:stathd:sta0010001tsu:datthd:dattsptsptsu:stotbufSDIOSCLK1-7891-781-781-781-78999CHIPREGISTERRESTARCHIPSTARTaddresWACKADDRESSACKTaddresRACKDatahighbyteACKDatalowbyteNACKSTOPSTARTss图4I2C接口读数据时序I2CTimingCharacteristicsParameterSym
7、bolTestMinTypMaxUnitConditionSCLKFrequencyfscl0-400KHzSCLKHighTimethigh0.6--usSCLKLowTimetlow1.3--usSetupTimeforSTARTtsu:sta0.6--usConditionHoldTimeforSTARTConditionthd:sta0.6--usSetupTimeforSTOPconditiontsu:sto0.6--usSDIOInputtoSCLK↑Setuptsu:dat100--nsSDIOInputtoSCLK↓Holdthd
8、:dat0-900nsSTOPtoSTARTTimetbuf1.3--usSDIOOutputFallTimetf:out20+0.1C
此文档下载收益归作者所有