完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
如何用SmartSense Capsense Usermodules实现传感器的联动?
让我们考虑,我们需要捆绑3个传感器,并扫描它,我们需要扫描他们作为单独的传感器。这个想法是有一个第四虚拟传感器,在扫描/校准第四传感器,而不是连接AMUX总线到第四传感器,连接三个传感器,你想成群。这是通过使用自定义用户定义的函数而不是StaseSeNeSnEnabaseSor、StaseSeNexDeababSelor和StaseSeNeSyCurraseAPI API来实现的。 我在Smartsense安装了传感器组。GPIOS P2〔1〕、P2〔3〕和P3〔3〕用于单个传感器。对于上述3个传感器的联动扫描,我在P1(7)中使用了CSD向导中的虚拟传感器。基本概念再次在下面演示。 1)在传感器的校准过程中,调用SCAN传感器,它单独地进行AMUX连接。 2)用“CurryLALWALL”函数替换SMTARSENSESE-CaseCaseAPI,其中所有传感器连接到AMUX在传感器校准开始之前被破坏。 3)现在的想法是不要使用SmithSeNeSeNababSersor。用一个自定义函数“CelpTyStor”来评论它,并在其扫描之前对各个传感器进行AMUX连接。 3)类似地替换MARTSENSESEDISABLSENSOR与“断开连接传感器”,其中对各个传感器进行AMUX断开,在其扫描之后进行。 因此,单个传感器的校准(P2〔1〕、P2〔3〕和P3〔3〕)类似于现有的用户模块实现。另一方面,在校准时扫描传感器,而不是将AMUX连接到P1〔7〕,将所有GPIOS P2〔1〕、P2〔3〕和P3〔3〕连接到AMUX总线,并校准IDAC并设定其它参数。同样的想法也适用于扫描。 注意:您可以在Stas懂义向导中添加尽可能多的传感器,并构建项目。然后通过与附件文件(MyFixEdStruSt.txt)进行比较,在SimultSeSE.ASM文件中进行所需的更改。在Meal.C中添加连接器TyStor、DeXeltTySpor和CurryAudio用户定义函数的更改。 最好的问候, 阿南达加涅什 以上来自于百度翻译 以下为原文 How to implement ganging of Sensors with SmartSense Capsense Usermodules ? Let us consider we need to gang 3 sensors and scan it as well we need to scan them as individual sensors. The idea is to have a fourth dummy sensor and during scanning/calibration of the fourth sensor, instead of connecting the AMUX bus to the fourth sensor, connect the three sensors which you would wish to gang. This is achieved by the use of Custom Userdefined functions instead of SmartSense_EnableSensor , SmartSense_DisableSensor and SmartSense_ClearSensors APIs. I am attaching the project with sensor ganging in Smartsense. The GPIOs P2[1], P2[3] and P3[3] are used for individual sensors. For the ganged scanning of the above 3 sensors, I have used a dummy sensor in the CSD wizard at P1[7]. The basic idea is again demonstrated below. 1) During calibration of the sensor, the scan_sensor is called which does the AMUX connections individually. 2) Replace the SmartSense_ClearSensors API with "Clear_All" function where all the sensor connections to the AMUX are broken before start of calibration of sensors. 3) Now the idea is that do not use the Smartsense_EnableSensor available. Comment it and replace with a custom function "Connect_Sensor" where the AMUX connections for the respective sensors are made before its scanning. 3) Similarly replace SmartSense_DisableSensor with "DisConnect_Sensor" where the AMUX disconnections are done for the respective sensors are made after its scanning. Thus the calibration of individual sensor(P2[1], P2[3] and P3[3]) is similar to the existing UserModule Implementation. On the other hand, when scanning the sensor during calibration, instead of connecting the AMUX to P1[7], connect all the GPIOs P2[1], P2[3] and P3[3] to the AMUX bus and calibrate the IDAC and set other parameters. The same idea applies for scanning also. NOTE: You can add as many sensors in SmartSense wizard and build the project. Then make the required changes in the SmartSense.asm file by comparing with the attached file (Modified_SmartSense.txt). Add the changes in Connect_Sensor, DisConnect_Sensor and Clear_All user defined functions in main.c accordingly. Best Regards, AnandaGanesh |
|
相关推荐
2个回答
|
|
这个项目是在较早的互动中进行的。查找附件“MuffiDeStruSt.txt”文件。
修改了 7.9 K 以上来自于百度翻译 以下为原文 The project attached in the earlier interaction. Find attached the "Modified_SmartSense.txt" file. |
|
|
|
最后附上项目的ZIP文件!
感测器 482 K 以上来自于百度翻译 以下为原文 Zip file of Project attached finally !
|
|
|
|
只有小组成员才能发言,加入小组>>
754个成员聚集在这个小组
加入小组2110 浏览 1 评论
1858 浏览 1 评论
3673 浏览 1 评论
请问可以直接使用来自FX2LP固件的端点向主机FIFO写入数据吗?
1791 浏览 6 评论
1540 浏览 1 评论
CY8C4025LQI在程序中调用函数,通过示波器观察SCL引脚波形,无法将pin0.4(SCL)下拉是什么原因导致?
576浏览 2评论
CYUSB3065焊接到USB3.0 TYPE-B口的焊接触点就无法使用是什么原因导致的?
430浏览 2评论
CX3连接Camera修改分辨率之后,播放器无法播出camera的画面怎么解决?
440浏览 2评论
390浏览 2评论
使用stm32+cyw43438 wifi驱动whd,WHD驱动固件加载失败的原因?
934浏览 2评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-27 17:20 , Processed in 0.890825 second(s), Total 47, Slave 41 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号