《ADS1114原理简要应用笔记.docx》由会员分享,可在线阅读,更多相关《ADS1114原理简要应用笔记.docx(4页珍藏版)》请在第壹文秘上搜索。
1、写配置寄存器:第字节:0x90I2C低8位地址读写位第二字节:0x01第三字节:0x84第四字节:0x83指向寄存器地址写高位寄存器写低位寄存器写指向寄存器第一字节:0x90I2C低8为地址读写位第二字节:OXOO指向转换寄存器读转换寄存器第一字节:0x91I2C高8位地址读写位第二字节:AD高位寄存器应答第三字节:AD低位寄存器应答输入阻抗:表2.DifferentialInputImpedanceFS(V)DIFFERENTIALINPUTIMPEDANCE6.14422M4.09615M2.048V4.9M1.024V2.4M0.512V710k0256V71Ok输入范围表3.PGAGa
2、inFull-ScaleRangePGASETTINGFS(V)2/36.144V14.09622.048V41.024V80.512V160.256V数据范围:表4.InputSignalversusIdealOutputCodeINPUTSIGNAL.Vh(AINp-AINn)IDEALOUTPUTCODEfs(215-1y2157FFFh+FS2150001h00-FS21FFFFh-FS8000hpood5o07FFF 0x7FFEOO1 Ox OxFFFF08001080-FSFS o TInput Voltage (AINp - AINJ 215-1-FS2,52,-FS2,5AD
3、芯片地址:表5.ADDRPinConnectionandCorrespondingSlaveAddressADDRPINSLAVEADDRESSGround1001000VDD1001001SDA1001010SCL1001011指向寄存器的指向地址:表6.RegisterAddressBIT1BITOREGISTER00Conversionregister01Configregister10Lo-threshregister11HMhreshregister00转换寄存器Ol配置寄存器IO低位寄存器Il高位寄存器配置寄存器:表9.ConfigRegister(ReadZWrite)BIT15
4、141312111098NAMEOSMUX2MU1MUXOPGA2PGA1PGAOMODEBIT76543210NAMEDR2DR1DROCoMP_MODECOMP_POLCOMP-LATCOMP_QUE1COMP_QUEOOS:状态位读状态0无效果1在掉电状态下开始一个转换读状态O设备正在执行一个转换1未执行转换000:AINp=AIN1和AINn=AIN1(默认)100:001:AINp=AIN1和AINn=AIN3101:010:AINp=AIN1和AINn=AIN3110:011:AINP=AlN2和AINn=AIN3111:MUX:多路复用器:输入多路复用器(adslll5)这些位配
5、置的输入多路复用器。=AIN1和AINn二接地=AINl和AlNn=接地二AlN2和AlNn二接地二AIN3和AlNn二接地PGA增益放大器,也就是输入范围000:FS=6.144V(I)100:FS=0.512V001:FS=4.096V(l)101:FS=0.256V010:FS=2.048V(默认)110:FS=0.256VOil:FS=+1.024V111:FS=0.256VMODE模式选择DR转换频率000: 8SPS001 :16SPS010: 32SPSOil :64SPS0:连续模式1:省电单发模式(默认)100:128SPS(默认)101:250SPSU0:475SPS111:860SPSCOMP,MODE比较器模式0:传统的滞回比较器(默认)1:Window比较器COMP_POL比较器灵活度选择0:低(默认)1:高COMP_LAT比较器的锁存功能选择0:无锁存(默认)1:有锁存COMP_QUE:ALERT/RDY发送状态00:一次转换01:两次转换10:四次转换11:禁用比较器(默认)