版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
ZHCU033–AprilMSP4302xx5xxMSP430系列集成的单独接口并且外设在这些系列产品内进行设定。本文档对电容式触摸软件库的配置和使用进行了解释说明。 1123456简 执 配 资 API调 附录 附录 附录 Beta测 MSP430微控制器平台上快速启用几个不MSP430系列的接口以及那些系列产品内的不同外设集。软件库,如何使用外设资源,以及应用程序接口(API)函数调用。(1)应用程序来删除代码中未使用的部分。此外,由于对ISR的定义有可能与一个现有应用定义发生,低ISR功能共用,鼓励用户升级所提供的源代码来产生MSP430的大多数低功耗功能。FrequencyofFrequencyFrequencyofFrequencyofRelaxation C1<GateMSP430PinOSC(1)本文档中描述的软件库可从以下 选通周期的定时器(请见表1)。RO'nACLK(1)RO_PINOSC_TA0ACLKTimer_A0ACLK简单分频(2,4,8分频并且将n设置为1)或者输入一个ACLK周期数,或者上述两种操作。C1<C1<GateTimeforGateTimeforRC_PAIR_TA0, C1<GateTimeforGateTimefor此软件库中的fRO方法 RO如名称所示,fRO方法的用途是为了提供快速扫描速率;在灵敏度(灵敏度表示可以解决多小的电容变化)RORO方法中,敏感度是选通周期的函数-选通周期的增加会增加灵敏度。增加选通时间的影响就是减少的扫描速率:在一个单一测量期间将花费的时间。为了保持有两个文件可作为配置软件库的主要方法:structure.cstructure.h包含了所有元件和传感器(元件组)的定义。structure.hstructure.c中生成软件库的其它部分可见的定义,还使用预编译程序定义来启用函数并盖,如图4所示。element1element2element3element44寄存器、和位定义。测量参数包括针对一个给定测量工具的一个元件的阀值和最大信号响应(maxResponse)。虽然测量工具要求测试,但端口定义可通过简单电路原理图来完成(请见6节)。滑轮、和按钮。(1)。maxResponse参数的用途是为了将电容测量标准化为一个百分比,在这里阀值代表0%maxResponse100%16位整数(065535)(按钮、滑盖、或者滑轮)时,这些值被以下的值进一步限定:maxResponse-阀值<655。6节提供了建立测量阀值的细节。ChangeinNoise0Comp_A输入被直接连接至电极。基准输入在传感器部分进行了定义。ConstConststructElementelement_name=.inputBits=P2CA2,//.threshold=.maxResponse=Comp_B876543210 针对比较器V-端子的通道输入启用-- + +CBIMEN1V6Comp_B0constconststructElementelement_name=.inputBits=CBIMSEL_2,//.threshold=.maxResponse=PinOscelement0->inputPxselRegister=PxSELelement0->inputPxsel2Register=PxSEL2element0->inputBits=y7PinOscconstconststructElementright=.inputPxselRegister=(uint8_t.inputPxsel2Register=(uint8_t.inputBits=.maxResponse=.threshold=RC入成为基准来测量连接到基准输入的其它电极。图8element>referencePxdirRegister=PxDIRelement>referenceBits=yelement>inputPxdirRegister=PxDIRelement>inputPxinRegister=PxINelement>inputBits=y8RCI/O//RCP2.0input,P2.1Referenceconst//RCP2.0input,P2.1ReferenceconststructElementelement1={.inputPxinRegister=(uint8_t.inputPxoutRegister=(uint8_t.inputPxdirRegister=(uint8_t.inputBits=.referencePxoutRegister=(uint8_t.referencePxdirRegister=(uint8_t.referenceBits=.threshold=.maxResponse=//RCP2.1input,P2.0ReferenceconststructElementelement2={.inputPxinRegister=(uint8_t.inputPxoutRegister=(uint8_t.inputPxdirRegister=(uint8_t.inputBits=.referencePxoutRegister=(uint8_t.referencePxdirRegister=(uint8_t.referenceBits=.threshold=.maxResponse=points=
//IN//INstructure.h#define //INCTS_Layer.c 3baseOffsetRAM04具中,measGateSource定义了测量时钟源。在RO工具中,measGateSource表示选通定时器源。accumulationCyclesaccumulationCycles代表一个测量被重复的次数,但是在安全装置定时器被用作选通外设的情况下,accumulationCycles代表安全装置定时器控制4halDefinition带有COMPA+外设的振荡器实现。选通时间固定并且由被设定为间隔模式的WDT+外设定3.2.2.1)。选通时间(3.2.2.2)。时间(3.2.2.4)。来设定选通时间(3.2.2.2)。TA0(SMCLK)供源。电容元件按照对中定义的其它IO进行充放电(请见节3.2.3.1)。间(3.2.4.2)。由COMPB外设执行的快速扫描振荡器。选通时间为变量并随着振荡器的周期变化而变由COMPA+外设执行的快速扫描振荡器。此选通时间为变量并且随着振荡器周期的变化通时间的定时器计数的数量表示。为了改进灵敏度,TA0通常由一个高频时钟(SMCLK)供源。(1)I/OComp_ARCComp_A的非反向输入上(通过输入复用器)RC滤波器被连接至反向输入上(也通过一个输入复用器)供了两个不同的HAL定义;PAp_TA0_WDTp和PAp_TA1_WDTp。+RC图 sensor>txclkDirRegister=PxDIRsensor>txclkBits=ysensor>caoutDirRegister=PxDIRsensor>caoutBits=ysensor>refPxdirRegister=PxDIRsensor>refBits=yCA0sensor>refCactl2Bits=CA1element0>inputBits=CA1element1>inputBits= CAOUT使用用例。在这些器件中,值caoutSel2Register也必须被设定(P1SEL2或者P2SEL2)。器内将被设定/TxCLKPxSEL2TxCLK使用用例。在这些器件中,值txclkSel2Register也必须被设定(P1SEL2或者P2SEL2)。口输出地址。变量refBits定义了方向和选择寄存器内将被设定/复位的位以启用基准电路。基准输入的所有位定义的逻辑OR值(即,Px.yy值而非CAyy值)。WDTp间隔,此间隔为针对PAp_TAx_WDTp+值源 值32768819251264CA0-+-CA1-CA-CA- n- Gate(Measurement)group->measGateSource(WDTCTL:WDTSSEL)group->accumulationCyclesconstconststructSensorslider{.halDefinition .numElements=.baseOffset=.points=.sensorThreshold=//Pointerto.arrayPtr[0]=&element0,//pointtofirst.arrayPtr[1]=.arrayPtr[2]=.arrayPtr[3]=//Reference//CAOUTis//TACLKis.caoutDirRegister=(uint8_t*)&P1DIR,//.caoutSelRegister=(uint8_t*)&P1SEL,//.txclkDirRegister=(uint8_t*)&P1DIR,//.txclkSelRegister=(uint8_t*)&P1SEL,//.caoutBits=BIT7,//.txclkBits=//Referenceison.refPxoutRegister=(uint8_t.refPxdirRegister=(uint8_t.refBits= //.refCactl2Bits=P2CA4,//CACTL2->P2CA4, .capdBits= ////Timer.measGateSource=.accumulationCycles=//0->SMCLK,1->// 所不同,如图13所示,集成了基准电路和到Timer_A外设的连接。+RC图 sensor>cboutTAxDirRegister=PxDIRsensor>cboutTAxBits=yCB0element0>inputBits=CB0element1>inputBits=图 和选择寄存器内将被设定/CBOUTxTxCLK5xx系列器件上的同一个I/O。两个定时参数定义了WDTA间隔,此间隔为针对 制寄存器(WDTCTL)内的安全装置定时器时钟源选择位等效。值源 时器控制寄存器(WDTCTL)中的间隔选择位等效。值2G128M8192k512k32768819251264constconststructSensorsliderA{.halDefinition.numElements=.baseOffset=.cbpdBits=//Pointerto.arrayPtr[0]= //pointtofirst.arrayPtr[1]=.arrayPtr[2]=.arrayPtr[3]=.cboutTAxDirRegister=(uint8_t //.cboutTAxSelRegister=(uint8_t //.cboutTAxBits=BIT4,////Timer.measGateSource=.accumulationCycles=WDTA_GATE_512K5xxCBOUTTA0CBOUTTA1之间,在某些情况下,在上述两个情况下提供一个内部连接。除了HAL定义名称,对于TA0TA1的说明和参数一样。0RC振荡器的引脚振荡器(PinOsc)工具用数字I/O和一个内部变极器内的触发器输入取代了比较器0RC15RO_PinOsc公用定时参数,measGateSourceaccumulationCyclesComp_A+工具一致(3.2.2.1.2)。constconststructSensormiddle_button{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=&middle_element,//pointtofirst//Timer.measGateSource=GATE_WDT_SMCLK,//0->SMCLK,1->//.accumulationCycles= .accumulationCycles= ////.accumulationCycles= //.accumulationCycles= MSP430RO_PinOsc(1)ACLK通时间为捕捉的数量(与ACLK周期等效),而频率计数器仍然是源自振荡器的外设Timer_A0。由于捕捉中表一个单一振荡,一个软件循环对几个外部中断进行计数来创建等效选通时间。与在低功耗模式下完成测量的WDT方法不同,这个软件循环方法将会由于CPU保持在激活模式下而消耗的电AAA .constconststructSensorvolume{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=.arrayPtr[1]=//Timer.accumulationCycles=//pointtofirst//100ACLK(1)请见器件表以确定定时器捕捉输入是否支持这个到ACLK的连接RCRCSWRCSW17RC请见节增加这个测量(在时间和数量方面增加)。在参数中定义了周期数量:传感器->SWCycle n 18RCconstconststructSensorscroll{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=.arrayPtr[1]=//Timer.accumulationCycles=//pointtofirst//4charge/discharge快速振荡器(fRO)方法用于缩小RC和RO方法间的差距。fRO方法提供了RC方法的快速扫描速率以及RO方法的提升的灵敏度。相对于RO方法,现在选通时间(选通时间)为变量,根据振荡器变PAp_TAx_SW执行具有与PAp_TAx_WDTp执行一样的硬件说明(10)已经提过,ROfRO方法间的关键区别时频率计数器和选通定时器是交换的。现在选通定时器是被测量的电容的函数,而频率计数器由一个固定频率(一个系统时钟)PAp_TAx_SW执行情论应用显示在更少的时间内使用fRO方法可实现相似的灵敏度。916MHz时,fRORO(160RO周期(LPM0模式而不是激活模式下)而且删除了与软件指令有关的10x因子。PAp_TAx_SW 节) +- n-1 SWCyclesSWCycles=n*T*MCLK/10图 fRO_PINOSC_TA0_SWRO_PINOSC_TA0_WDTp执行一样的硬件说明(3.2.2.3)。如上所述,ROfRO的函数,而频率计数器由一个固定频率(一个系统时钟)fRO_PINOSC_TA0_SW执行情况下,RO方法相比,fRO方法在更短的测量或选通时间内提供了相似的灵敏度(数量发生改变)7中的理论应用显示在更少的时间内使用fRO方法可实现相似的灵敏度。1016MHz时,fROROPinOscWDT,512)(160RO周期示为'n',由系统级上的变量accumulationCycles定义:传感器->accumulationCycles。 n .PB_TAx_SW执行具有与PB_TAx_WDTA执行一样的硬件说明(3.2.2.2)。如上所述,ROfRO的函数,而频率计数器由一个固定频率(一个系统时钟)PB_TAx_SW执行情况下,理论应用显示在更少的时间内使用fRO方法可实现相似的灵敏度。1125MHz时,fROROWDT,512)(160RO周期(LPM0模式而不是激活模式下)而且删除了与软件指令有关的10x因子。PAp_TAx_SW +- SWCyclesGateTime=SWCycles=n*T*MCLK/10图 计数器,在这里频率源为一个系统时钟。由于这个执行不使用定时器来为振荡计数,所以不再需要如图22所示的物理连接。图 理论应用显示在更短的选通时间内使用fRO方法可实现相似的灵敏度。1216MHz时,fROROWDT,512)(160RO期,MCLK致比预计时间更长的选通时间。软件循环为14周期,因此,MCLK频率必须比最大振荡频率快14倍。耗(运行在LPM0模式而非激活模式下)有三个计时参数;measureGateSource,sourceScaleaccumulationCycles器由accumulationCycles定义。在达到accumulationCycles之前软件循环计算振荡器的周期,并在此常为SMCLK)和定时器分频器(通常为1分频)。.ccmtycs。在 ASWTAx振器周的计由一软件询循完成此环寻找个比器中标志表明个振已经发生。/Are/Arewheelorsliderrepresentations#defineWHEEL//Illegalsliderposition.Thisvalueis//whennotouchonthewheelorsliderisdetected.#defineILLEGAL_SLIDER_WHEEL_POSITIONstructure.c中,必须添加针对points(点)和sensorThreshold(传感器阀值)的定义。点是一个特殊情况,在这种情况下,只需比较一个端元件(主元件)和一个相邻元件。如果响应超过sensorThreshold么返回ILLEGAL_SLIDER_WHEEL_POSITION(在structure.h中定义)。期内不可用。完全不可用的资源通常为安全装置定时器外设、数字I/O、和被分配的内存资源。是,环境并不是广泛存在的,一个好的做法就是在启用中断前清除IFG标志。(1)。时间(测量时间15加灵敏度(同时保持较短的选通时间)(请见节3.2.4)。(1)Timer_A3时,在这里软件库并不使用所有三个捕捉和控制寄存器;然而,当定时器被使用时,CCIFG6481925124(1)API6个元件、3396114优化级别01840114优化级别02828120优化级别0TI_CAPT_RAWAPITOTAL_NUMBER_OF_ELEMENTSRAMstructure.hRAM_FOR_FLASHRAM空间的数量取决于每个传感器的元件最大数量,每个元件2字节。以闪存空间被占用为代价,这个RAM可从一个堆(HEAP)中态分配。为了动态分配RAM,IDE中)为2字节加上2字节。8192/SMCLKSMCLKAPITI_CAPT_RawAPITI_CAPT_CustomAPIAPITI_CAPT_Raw函数并且还包含一个基线算法。TI_CAPT_CustomAPI为应用层提供来自基线电容的已测得电容的变化幅度。如果变化的方向与所需的方向一致,变化值只提供给应用层。如果变化的方向与所需方向相反,这个信息被基线所使用,但是并不提供给应用层。提供了几个API函数调用来调整运行时间内的基线。TI_CAPT_CustomAPI之上的抽象级别,包括一个按钮、按钮组、一个滑轮、和一个滑盖的传感器表示。相关的API包括TI_CAPT_Custom函数的解释和应用。17APIAPIuint8_tTI_CAPT_Button(conststructSensorconststructElement*TI_CAPT_Buttons(conststructSensoruint16_tTI_CAPT_Slider(conststructuint16_tTI_CAPT_Wheel(conststructvoidTI_CAPT_Custom(conststructSensor*,表17.API函数 APIvoidTI_CAPT_Raw(conststructSensor*,voidTI_CAPT_Init_Baseline(conststructvoidTI_CAPT_Update_Baseline(conststructvoiduint8_tTI_CAPT_Button(Sensorelement*TI_CAPT_Buttons(Sensor输出:到一个元件或者0的指针构指针,此元件比其阀值高最大裕量(%)(在元件结构中设定),那么这个函数返回一个0或者'NullPointer'(空指针)。uint16_tTI_CAPT_Slider(Sensor输出:位于滑盖上;ILLEGAL_SLIDER_WHEEL_POSITION无触摸;0触摸的位置为传感器结constconststructSensorgroup{.numElements=.baseOffset=//Pointerto.arrayPtr[0]= //pointtofirst.arrayPtr[1]=.arrayPtr[2]=.arrayPtr[1]=.arrayPtr[2]=.points=.sensorThreshold=023
uint16_tTI_CAPT_Wheel(Sensoruint16_tuint16_tTI_CAPT_Wheel(Sensor->Points01Points0124voidTI_CAPT_Custom(Sensor*,uint16_t能,而低级别函数或者测量和基线仍由软件库管理时,这个类型的API就很实用。voidTI_CAPT_Raw(Sensor*,基线的功能,而测量仍由软件库管理时,这个类型的API就很实用。voidTI_CAPT_Init_Baseline(SensorRAMvoidTI_CAPT_Update_Baseline(Sensor*uint8_t);voidTI_CAPT_Reset_Tracking功能:复位基线,这样所需的方向为电容的增加。还复位了速率,这样基线 低设置(01)朝所需方向变化并快速设置(00)上朝所需方向相反的方向发生电容变化;也就是说, voidTI_CAPT_Update_Tracking_功能:如果输入为真(非零),那么所需的方向为电容的增加。如果输入为0x00,那么所需方向为电容的一些情况下,当一个对象出现时对一个对象的识别是有益的,然后当对象被删除后,检测所需方向的改变。voidTI_CAPT_Update_Tracking_Rate0000快00010010中快0011快快0000快0100中1000慢1100TI_CAPT_RawTI_CAPT_Custom感器内的一个或者多个元件超过阀值时,TI_CAPT_Custom要求一个阀值参数来禁用基线。请注意,使用原始函数时,电容的增加由RC和fRO方法中计数的增加表示,由RO方法中技术的减少表示。#include#include//NeedtoAllocateatleast10bytestoHEAPin//thresholdsetto'0'instructure.cunsignedintdelta_data[4];void{{ //setbreakpoint}}无无无无)为137/2和212/2。为TI_CAPT_Button和TI_CAPT_Buttons抽象定义阀值值由TI_CAPT_Custom函数完成。0请见TI_CAPT_Update_Tracking_API。#include#include//thresholdsetto'0'instructure.cunsignedintdelta_data[4];void{{no_operation();//setbreakpoint}}无0000000000无0000122无00003无000005APITI_CAPT_ButtonsAPI类似,除了阀值之外,要求maxResponse参数的定义。互的结果。请牢记,阀值和maxResponse间的关系如节3.1.1中所描述的那样。中心,在中心区域在元件和交互之间有最大的区域。图26显示了如何使用定制函数来测量一个滑盖的性能并且为阀值和maxResponse变量确定值。a0bcdedfgfhjk响应应该大于相应的最大返回值,b,e,g,或者j的10%。maxResponse++++(1)在某些几何形状中,maxResponse内的值并不是电极真正最大的返回值,但是返回值被记录在电极的中心。重要的标准是相邻的元件(对于一个滑盖或者滑轮)有相等的返回值。的那样,sensorThreshold75Validlocations InvalidLocationsthatdonotInvalidLocationsthatdonotABCD附录 元件和传感器定element0->inputPxselRegister=PxSELelement0->inputBits=y.constconststructElementelement0=.inputPxselRegister=(uint8_t.inputPxsel2Register=(uint8_t.inputBits=.maxResponse=.threshold=conststructSensorgroup{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=&element0,//pointtofirst//Timer.measGateSource= //0->SMCLK,1->.accumulationCycles= //8192SMCLKcyclesingateconstconststructElementelement0=.inputPxselRegister=(uint8_t.inputPxsel2Register=(uint8_t.inputBits=.maxResponse=.threshold=conststructSensorgroup{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=&element0,//pointtofirst//Timer.accumulationCycles= //NumberofACLKcyclesingateconstconststructElementelement0=.inputPxselRegister=(uint8_t.inputPxsel2Register=(uint8_t.inputBits=.maxResponse=.threshold=conststructSensorgroup{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=//Timer.accumulationCycles=//pointtofirst//NumberofROcyclesingatesensor->txclkDirRegister=PxDIRsensor->txclkBits=ysensor->caoutDirRegister=PxDIRsensor->caoutBits=ysensor->refPxdirRegister=PxDIRsensor->refBits=ysensor->refCactl2Bits=element0->inputBits=element1->inputBits=图 constconststructElementelement0=.inputBits=P2CA2,//.maxResponse=.threshold=conststructSensorgroup{.halDefinition .numElements=.baseOffset=//Pointerto.arrayPtr[0]=//Reference//CAOUTis//TACLKis.caoutDirRegister=(uint8_t*)&P1DIR,//.caoutSelRegister=(uint8_t*)&P1SEL,//.txclkDirRegister=(uint8_t*)&P1DIR,//.txclkSelRegister=(uint8_t*)&P1SEL,//.caoutBits=BIT7,//.txclkBits=.refPxoutRegister=(uint8_t.refPxdirRegister=(uint8_t.refBits= //.capdBits= //.refCactl2Bits= //CACTL2->P2CA4,//Timer.measGateSource= //0->SMCLK,1->.accumulationCycles= //gatetimeis512SMCLKconstconststructElementelement0=.inputBits=P2CA2,//.maxResponse=.threshold=conststructSensorgroup{.halDefinition .numElements=1,.baseOffset=//Pointerto.arrayPtr[0]=//Reference//CAOUTis//TACLKis.caoutDirRegister=(uint8_t*)&P1DIR,//.caoutSelRegister=(uint8_t*)&P1SEL,//.txclkDirRegister=(uint8_t*)&P1DIR,//.txclkSelRegister=(uint8_t*)&P1SEL,//.caoutBits=BIT7,//.txclkBits=.refPxoutRegister=(uint8_t.refPxdirRegister=(uint8_t.refBits=BIT6,//.capdBits=.capdBits=BIT1+BIT2,//.refCactl2Bits=P2CA4,//CACTL2->P2CA4,//Timer.accumulationCycles=sensor->caoutDirRegister=PxDIRsensor->caoutBits=ysensor->refPxdirRegister=PxDIRsensor->refBits=y图 constconststructElementelement0=.inputBits=P2CA2,//.maxResponse=.threshold=conststructSensorgroup{.halDefinition .numElements=.baseOffset=//Pointerto.arrayPtr[0]=//Reference//CAOUTis.caoutDirRegister=(uint8_t*)&P1DIR,//.caoutSelRegister=(uint8_t*)&P1SEL,//.caoutBits=BIT7,//.refPxoutRegister=(uint8_t.refPxdirRegister=(uint8_t.refBits= //.capdBits=BIT1+BIT2,//.refCactl2Bits=P2CA4,//CACTL2->P2CA4,//Timer.accumulationCycles=1000//numberofROcyclesingate
sensor->cboutTAxDirRegister=PxDIRsensor->cboutTAxBits=y图 constconststructElementelement0=.inputBits=CBIMSEL_2,//.maxResponse=.threshold=conststructSensorgroup{.halDefinition .numElements=.baseOffset=.cbpdBits=//Pointerto.arrayPtr[0]=&element0,//pointtofirst.cboutTAxDirRegister=(uint8_t*)&P3DIR,//.cboutTAxSelRegister=(uint8_t*)&P3SEL,//.cboutTAxBits=BIT4,////Timer.measGateSource=GATE_WDTA_SMCLK,//0->SMCLK,1->.accumulationCycles=WDTA_GATE_512KconstconststructElementelement0=.inputBits=CBIMSEL_2,//.maxResponse=.threshold=conststructSensorgroup{.halDefinition .numElements=.baseOffset=.cbpdBits=//Pointerto.arrayPtr[0]=&element0,//pointtofirst.cboutTAxDirRegister=.cboutTAxDirRegister=(uint8_t*)&P3DIR,//.cboutTAxSelRegister=(uint8_t*)&P3SEL,//.cboutTAxBits=BIT4,////Timer.accumulationCycles=1000element->referencePxDirRegister=PxDIRelement->referenceBits=yelement->inputPxDirRegister=PxDIRelement->inputPxinRegister=PxINelement->inputBits=yconstconststructElementelement0=.inputPxinRegister=(uint8_t.inputPxoutRegister=(uint8_t.inputPxdirRegister=(uint8_t.inputBits=.referencePxoutRegister=(uint8_t.referencePxdirRegister=(uint8_t.referenceBits=.threshold=.maxResponse=conststructSensorgroup{.halDefinition=.numElements=.baseOffset=//Pointerto.arrayPtr[0]=//Timer.accumulationCycles=//pointtofirst//4charge/discharge附录 个API调用无关,但是它被应用层用来确定主元件。最后的两个层是定制或者变量增量层以及原始电容uint16uint16 增量计算是当前测量和之前电容测量或者基线电容(代码环境中的t)整基线来解决此变化。变量电容函数将结果设定为0来表明与所需方向相反的电容的变化。大于阀值的值。如图34所示,按照TRADIO设置,一个零值会引起一个基线更新。 YYDelta==&&!PASTYDelta>YSeteventflagflaginStatusBasecapacitanceX(MeasuredCapacitance/Z)+Y(BaseCapacitance/Capacitancechangeisindirectionofinterestbutdoesnotexceedthreshold:UpdatebaselineperTRIDIOsettingdirectionofinterest:UpdateBaselineper 3快基值=2基值=22中基值=43x基值=43x1慢基值=6463x基值=6463x0基值=128127x(基值=128127x(3快3x43x42中基值=2基值=210的第一个元件的指针,在此排列中电容变化被记录。定制API调用用“原始”函数测量每个元件的电容。HAL(hal_definitionhal_definition64的值所用方法的计数值与电容的变化直接相关(也就是说,计数的增加意味着电容的增加),当hal_definition由一个计数增加表示。相反地,当使用RO方法时,电容的增加由一个计数减少表示。的差异。值为0的 t表示与所需方向相反(相对)的电容变化。YYhaldef>63==Yhaldef<64==Yhaldef>63==Ymeas>Ymeas<delta=base-delta=meas-haldef<64==Ydelta=3524HAL1234uint8_tuint8_tTI_CAPT_Button(SensorUpdateUpdatedeltaarray:customEventYElement*TI_CAPT_Buttons(Sensor-0'NullPointer'UpdateUpdatedeltaarray:customEventYindex=DominantElement();ReturnReturn0上的'0'值相对应,最后一个元件与用户定义的点数量相对应。针对滑盖和滑能的算法显示在图38中。TI_CAPT_Custom函数被用于测量传感器内定义的每个元件的电容的变化。这个函数还更新基线和标志状态(请见节B.1.3.1)。UpdateUpdatedeltaarray:customEventYSumResponse>position=index*(points/numElements)+SumResponseofdominantElementandneighborsindex=dominantelementfind();End:ILLEGALSLIDERWHEELYindex==index==numelements-1YSpecialCaseSpecialCaset[index-position-tpositionReturnpositionYYindex==Yindex==Sum= ts[0]+Sum=ts[numElements-2]+Sum= ts[index]+ts[index-1]+由于交互移动(滑动)'0并且传感器的阀值只是一个最后sensorThreshold定义了手指可以从端器件的中心位置偏离多远并且仍然是滑盖的一部分。只要传感器响应超过sensorThreshold,位置被计算。来表示没有检测到交互。当有一个有效交互时,函数确定了来自主器件和其最近相邻元件的响应的位置。[example:points=64,numElements=4,index=2](64/4)×2+8=40 40+40×16/100=46 t1]=460=(index(index0
YYt[numElementssensorThreshold是与主元件和其相邻元件响应的相比较的值(x-1,xx+1的和)sensorThreshold相比较。如果超过阀值,那么函数继续计算位置。YYindex==index==Yts[0]ts[1]+Sum=Sum= ts[index-1]+主元件为排列的开始和终止元件时,图44和图45显示了用来计算位置的算法。Yt[numElementspositionposition+=position>position>pointsYposition=t[numElementspositiont0100或者少于阀值,而100表示一个响应等于maxResponse。percentDelta=percentDelta=i=i<numsensorst[i]>Yt[i]>Yt[i]>t[i]=dominanement=t[i]=(100*(delta[i]–threshold))/(maxResponse–threshold)Returndominan附录 Beta测 与软件库的兼容性测试的话,表25被用作一个来帮助用户识别。例如,RO_PINOSC_TA0_WDTp测量方法用定制的和滑轮API进行了测试。这个方法也使用按钮API进试,而另外一个测量方法被用来支持滑轮API。按钮示例用于显示与不同测量方法和API调用的互操25Beta123456768798(1)额外的HAL显示HAL函数是独立的并且不会影响基线或者其它共用函数调用(2)额外的传感器显示传感器函数是独立的,并且不会损坏其它也使用基线和其它函数的传感器ZHCU033–April Beta测 TexasInstruments(TI)providestheenclosedEvaluationBoard/Kit/Module(EVM)underthefollowingTheuserassumesallresponsibilityandliabilityforproperandsafehandlingofthegoods.Further,theuserindemnifiesTIfromallclaimsarisingfromthehandlingoruseofthegoods.Shouldthisevaluationboard/kitnotmeetthespecificationsindicatedintheUser’sGuide,theboard/kitmaybereturnedwithin30daysfromthedateofdeliveryforafullrefund.THEFOREGOINGLIMITEDWARRANTYISTHEEXCLUSIVEWARRANTYMADEBYSELLERTOBUYERANDISINLIEUOFALLOTHERWARRANTIES,EXPRESSED,IMPLIED,ORSTATUTORY,INCLUDINGANYWARRANTYOFMERCHANTABILITYORFITNESSFORANYPARTICULARPURPOSE.EXCEPTTOTHEEXTENTOFTHEINDEMNITYSETFORTHABOVE,NEITHERPARTYSHALLBELIABLETOTHEOTHERFORANYINDIRECT,SPECIAL,AL,ORCONSEQUENTIALPleasereadtheUser'sGuideand,specifically,theWarningsandRestrictionsnoticeintheUser'sGuidepriortohandlingtheproduct.Thisnoticecontainsimportantsafetyinformationabouttemperaturesandvoltages.ForadditionalinformationonTI'senvironmentaland/orsafetyprograms,pleasevisit orcontactTI.NolicenseisgrantedunderanypatentrightorotherinlectualpropertyrightofTIcoveringorrelatingtoanymachine,process,orcombinationinwhichsuchTIproductsorservicesmightbeorareused.TIcurrentlydealswithavarietyofcustomersforproducts,andthereforeourarrangementwiththeuserisnotexclusive.TIassumesnoliabilityforapplicationsassistance,customerproductdesign,softwareperformance,orinfringementofpatentsorservicesdescrbedherein.AsnotedintheEVMUser’sGuideand/orEVMitself,thisEVMand/or panyinghardwaremayormaynotbesubjecttotheFederalCommunicationsCommission(FCC)andIndustryCanada(IC)rules.ForEVMsnotsubjecttotheaboverules,thisevaluationboard/kit/moduleisintendedforuseforENGINEERINGDEVELOPMENT,DEMONSTRATIONOREVALUATIONPURPOSESONLYandisnotconsideredbyTItobeafinishedendproductfitforgeneralconsumeruse.Itgenerates,uses,andcanradiateradiofrequencyenergyandhasnotbeentestedforcompliancewiththelimitsofcomputingdevicespursuanttopart15ofFCCorICES-003rules,whicharedesignedtoprovidereasonableprotectionagainstradiofrequencyinterference.Operationoftheequipmentmaycauseinterferencewithradiocommunications,inwhichcasetheuserathisownexpensewillberequiredtotakewhatevermeasuresmayberequiredtocorrectthisinterference.GeneralStatementforEVMsincludingaUserPower/FrequencyUseObligations:Thisradioisintendedfordevelopment/professionaluseonlyinlegallyallocatedfrequencyandpowerlimits.Anyuseofradiofrequenciesand/orpoweravailabilityofthisEVManditsdevelopmentapplication(s)mustcomplywithlocal erningradiospectrumallocationandpowerlimitsforthisevaluationmodule.Itistheuser’ssoleresponsibilitytoonlyoperatethisradioinlegallyacceptablefrequencyspaceandwithinlegallymandatedpowerlimitations.AnyexceptionstothisarestrictlyprohibitedandunauthorizedbyTexasInstrumentsunlessuserhasobtainedappropriateexperimental/developmentlicensesfromlocalregulatory,whichisresponsibilityofuserincludingitsacceptableauthorization.ForEVMsannotatedasFCC–FEDERALCOMMUNICATIONSCOMMISSIONPart15CompliantThisdevicecomplieswithpart15oftheFCCRules.Operationissubjecttothefollowingtwoconditions:(1)Thisdevicemaynotcauseharmfulinterference,and(2)thisdevicemustacceptanyinterferencereceived,includinginterferencethatmaycauseundesiredoperation.Changesormodificationsnotexpresslyapprovedbythepartyresponsibleforcompliancecouldvoidtheuser'sauthoritytooperatetheFCCInterferenceStatementforClassAEVMThisequipmenthasbeentestedandfoundtocomplywiththelimitsforaClassAdigitaldevice,pursuanttopart15oftheFCCRules.Theselimitsaredesignedtoprovidereasonableprotectionagainstharmfulinterferencewhentheequipmentisoperatedinacommercialenvironment.Thisequipmentgenerates,uses,andcanradiateradiofrequencyenergyand,ifnotinstalledandusedinaccordancewiththeinstructionmanual,maycauseharmfulinterferencetoradiocommunications.Operationofthisequipmentinaresidentialareaislikelytocauseharmfulinterferenceinwhichcasetheuserwillberequiredtocorrecttheinterferenceathisownexpense.FCCInterferenceStatementforClassBEVMThisequipmenthasbeentestedandfoundtocomplywiththelimitsforaClassBdigitaldevice,pursuanttopart15oftheFCCRules.Theselimitsaredesignedtoprovidereasonableprotectionagainstharmfulinterferenceinaresidentialinstallation.Thisequipmentgenerates,usesandcanradiateradiofrequencyenergyand,ifnotinstalledandusedinaccordancewiththeinstructions,maycauseharmfulinterferencetoradiocommunications.However,thereisnoguaranteethatinterferencewillnotoccurinaparticularinstallation.Ifthisequipmentdoescauseharmfulinterferencetoradioorevisionreception,whichcanbedeterminedbyturningtheequipmentoffandon,theuserisencouragedtotrytocorrecttheinterferencebyoneormoreofthefollowingmeasures:ReorientorrelocatethereceivingIncreasetheseparationbetweentheequipmentandConnecttheequipmentintoanoutletonacircuitdifferentfromthattowhichthereceiverisConsultthedealeroranexperiencedradio/TVtechnicianforForEVMsannotatedasIC–INDUSTRYCANADAThisClassAorBdigitalapparatuscomplieswithCanadianICES-Changesormodificationsnotexpresslyapprovedbythepartyresponsibleforcompliancecouldvoidtheuser’sauthoritytooperatetheConcerningEVMsincludingradioThisdevicecomplieswithIndustryCanadalicence-exemptRSSstandard(s).Operationissubjecttothefollowingtwoconditions:(1)thisdevicemaynotcauseinterference,and(2)thisdevicemustacceptanyinterference,includinginterferencethatmaycauseundesiredoperationofthedevice.ConcerningEVMsincludingdetachableUnderIndustryCanadaregulations,thisradiotransmittermayonlyoperateusinganantennaofatypeand um(orlesser)gainapprovedforthetransmitterbyIndustryCanada.Toreducepotentialradiointerferencetootherusers,theantennatypeanditsgainshouldbesochosenthattheequivalentisotropicallyradiatedpower(e.i.r.p.)isnotmorethanthatnecessaryforsuccessfulcommunication.ThisradiotransmitterhasbeenapprovedbyIndustryCanadatooperatewiththeantennatypeslistedintheuserguidewiththe permissiblegainandrequiredantennaimpedanceforeachantennatypeindicated.Antennatypesnotincludedinthislist,havingagaingreaterthantheumgainindicatedforthattype,arestrictlyprohibitedforusewiththisdevice.CetappareilnumériquedelaclasseAouBestconformeàlanormeNMB-003duLeschangementsoulesmodificationspasexpressémentapprouvésparlapartieresponsabledelaconformitéontpuviderl’autoritédel'utilisateurpouractionnerl'équipement.ConcernantlesEVMsavecappareilsLeprésentappareilestconformeauxCNRd'IndustrieCanadaapplicablesauxappareilsradioexemptsdelicence.L'exploitationestautoriséeauxdeuxconditionssuivantes:(1)l'appareilnetpasproduiredebrouillage,et(2)l'utilisateurdel'appareiltacceptertoutbrouillageradioélectriquesubi,mêmesilebrouillageestsusceptibled'encompromettrelefonctionnement.ConcernantlesEVMsavecantennesConformémentàlaréglementationd'IndustrieCanada,leprésentémetteurradiopeutfonctionneravecuneantenned'untypeetd'ungainal(ouinférieur)approuvépourl'émetteurparIndustrieCanada.Danslebutderéduirelesrisquesdebrouillageradioélectriqueàl'intentiondesautresutilisateurs,ilfautchoisirletyped'antenneetsongaindesortequelapuissanceisotroperayonnéeéquivalente(p.i.r.e.)nedépassepasl'intensiténécessaireàl'établissementd'unecommunicationsatisfaisante.LeprésentémetteurradioaétéapprouvéparIndustrieCanadapourfonctionneraveclestypesd'antenneénumérésdanslemanueld’usageetayantungainadmissblealetl'impédancerequisepourchaquetyped'antenne.Lestypesd'antennenoninclusdanscetteliste,oudontlegainestsupérieuraugainalindiqué,sontstrictementinterditspourl'exploitationdel'émetteur.【ImportantNoticeforUsersofthisProductinJapanThisdevelopmentkitisNOTcertifiedasConfirmingtoTechnicalRegulationsofRadioLawofIfyouusethisproductinJapan,youarerequiredbyRadioLawofJapantofollowtheinstructionsbelowwithrespecttothisUsethisproductinashieldedroomoranyothertestfacilityasdefinedinthenotification#173issuedbyMinistryofInternalAffairsandCommunicationsonMarch28,2006,basedonSub-section1.1ofArticle6oftheMinistry’sRuleforEnmentofRadioLawofUsethisproductonlyafteryouobtainedthelicenseofTestRadioStationasprovidedinRadioLawofJapanwithrespecttothisproduct,orUseofthisproductonlyafteryouobtainedtheTechnicalRegulationsConformityCertificationasprovidedinRadioLawofJapanwithrespecttothisproduct.Also,pleasedonottransferthisproduct,unlessyougivethesamenoticeabovetothetransferee.Pleasenotethatifyoucouldnotfollowtheinstructionsabove,youwillbesubjecttopenaltiesofRadioLawofJapan.TexasInstrumentsJapan(address)24-1,Nishi-Shinjuku6chome,Shinjuku-ku,Tokyo,EVALUATIONBOARD/KIT/MODULE(EVM)WARNINGS,RESTRICTIONSANDDIERSForFeasibilityEvaluationOnly,inLaboratory/DevelopmentEnvironments.Unlessotherwiseindicated,thisEVMisnotafinishedelectricalequipmentandnotintendedforconsumeruse.Itisintendedsolelyforuseforpreliminaryfeasibilityevaluationinlaboratory/d
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026年黑龙江省佳木斯市初三生物下册期末考试试卷及答案
- 2025福建福州宏诚工程建设监理有限公司社会公开招聘2人笔试历年参考题库附带答案详解
- 2025年全国计算机一级wps考试题及答案
- 2026秋初中湘教版数学八年级上册(新教材)教学计划含进度表
- 2025年全国计算机等级考试一级计算机基础及MSOffice应用真题与答案
- 2025年临床医师定期考核必考复习题库及答案(100题)
- 互联网医疗行业:互联网医院政策研究报告
- 阅读教学切入点设计的目的
- 语文阅读教学主问题设计
- 网约车安全生产工作总结
- 2026中国餐厨垃圾资源化处理技术比较与投资回报分析报告
- 食品生产企业飞行检查要点培训
- 2025年辽宁省沈阳市政府采购评审专家考试真题含标准答案
- 天津市政工程安全文明施工标准化指南
- 中国石化绩效考核制度
- 智联eas测评理解型题库
- 优化家庭无线网络:基于电磁波理论的跨学科项目式学习-初中物理九年级教学设计
- 周边餐厅案例分析
- 智能体介绍教学课件
- (正式版)DB44∕T 2765-2025 《红树林主要病虫害综合防控技术规程》
- 证券交易风险控制与合规管理(标准版)
评论
0/150
提交评论