Other Parts Discussed in Thread:MSP430FR2633
如图所示:使用msp430fr2633,获取感应电极的原始容值数据时,在没有使用低功耗,出现获取数据有时正常,有时缓慢。出现缓慢是什么原因造成的?
Susan Yang:
图片显示失败,请您以附件形式上传一下图片,谢谢
,
user6341679:
打印时间与数据如下:
[10:37:51.596]收←◆0,0,0,0[10:37:51.864]收←◆0,0,0,0
[10:37:52.133]收←◆0,0,0,0
[10:37:52.401]收←◆0,0,0,0
[10:37:52.648]收←◆0,0,0,0
[10:37:52.905]收←◆0,0,0,0
[10:37:53.173]收←◆0,0,0,0
[10:37:53.442]收←◆0,0,0,0
[10:37:53.712]收←◆0,0,0,0
[10:37:53.979]收←◆0,0,0,0
[10:37:54.254]收←◆0,0,0,0
[10:37:54.524]收←◆0,0,0,0
2,1,2,5
2,1,3,10
8,5,11,14
8,7,14,17
9,8,16,22[10:37:55.064]收←◆9,8,16,22
[10:37:55.333]收←◆9,8,16,22
[10:37:55.605]收←◆9,8,16,22
[10:37:56.134]收←◆7,7,14,17
[10:37:56.411]收←◆6,6,12,12
[10:37:56.675]收←◆0,2,5,7
[10:37:56.944]收←◆0,1,1,5
[10:37:57.217]收←◆0,0,0,0
9,7,9,6[10:37:57.758]收←◆9,7,9,6
[10:37:58.026]收←◆9,7,9,6
[10:37:58.295]收←◆9,7,9,6
[10:37:58.562]收←◆9,7,9,6
[10:37:58.816]收←◆9,7,9,6
[10:37:59.089]收←◆9,7,9,6
[10:37:59.360]收←◆9,7,9,6
4,1,4,14
7,4,7,18[10:38:00.026]收←◆7,4,7,18
[10:38:00.293]收←◆7,4,7,18
[10:38:00.553]收←◆7,4,7,18
[10:38:00.824]收←◆7,4,7,18
[10:38:01.093]收←◆7,4,7,18
[10:38:01.351]收←◆7,4,7,18
[10:38:01.621]收←◆2,2,3,4
[10:38:01.892]收←◆0,0,0,0
[10:38:02.162]收←◆0,0,0,0
[10:38:02.689]收←◆0,0,0,0
[10:38:02.955]收←◆0,0,0,0
[10:38:03.225]收←◆0,0,0,0
[10:38:03.455]收←◆0,0,0,0
[10:38:03.709]收←◆0,0,0,0
[10:38:03.978]收←◆0,0,0,0
[10:38:04.253]收←◆0,0,0,0
[10:38:04.813]收←◆0,0,0,0
[10:38:05.304]收←◆0,0,0,0
[10:38:05.577]收←◆0,0,0,0
6,5,9,13
16,13,24,19[10:38:06.114]收←◆16,13,24,19
22,15,30,27
23,16,34,38[10:38:06.665]收←◆23,16,34,38
[10:38:06.936]收←◆23,16,34,38
[10:38:07.206]收←◆23,16,34,38
[10:38:07.477]收←◆16,10,24,25
[10:38:08.019]收←◆7,2,9,18
[10:38:08.273]收←◆7,2,9,18
[10:38:08.546]收←◆1,0,3,11
[10:38:08.814]收←◆0,0,0,0
[10:38:09.078]收←◆0,0,0,0
[10:38:09.266]收←◆0,0,0,0
[10:38:09.613]收←◆0,0,0,0
[10:38:09.945]收←◆0,0,0,0
[10:38:10.175]收←◆0,0,0,0
[10:38:10.384]收←◆0,0,0,0
[10:38:10.570]收←◆0,0,0,0
[10:38:10.726]收←◆0,0,0,0
[10:38:10.902]收←◆0,0,0,0
[10:38:11.111]收←◆0,0,0,0
[10:38:11.300]收←◆0,0,0,0
[10:38:11.562]收←◆0,0,0,0
[10:38:11.759]收←◆0,0,0,0
[10:38:12.077]收←◆0,0,0,0
[10:38:12.290]收←◆0,0,0,0
[10:38:12.529]收←◆0,0,0,0
[10:38:12.809]收←◆0,0,0,0
[10:38:13.077]收←◆0,0,0,0
4,3,3,6
8,5,7,17
9,7,10,21
12,10,15,30
17,14,23,43[10:38:13.632]收←◆17,14,23,43
17,14,23,44
26,17,30,71
29,16,34,82
29,14,33,110
33,13,34,143
36,10,32,171
40,8,30,204
49,9,36,244
54,10,38,298
52,8,35,322
52,6,32,346
57,7,34,361
59,7,34,346
55,8,31,344
52,7,29,344
48,6,26,344
50,6,28,332
52,7,29,318
50,7,27,318[10:38:14.242]收←◆40,6,22,266
[10:38:14.507]收←◆34,5,18,244
[10:38:14.775]收←◆31,3,18,209
,
user6341679:
图片与上传的数据大致一样
,
Susan Yang:
请问您是自己设计的硬件以及软件?是否有烧写TI例程试一下?是否有连接 CapTIvateDesignCenter看一下是否是感应不灵敏造成的?
,
user6341679:
自己的软硬件,屏蔽了低功耗的功能。应该是感应的问题,需要调试什么参数能正产呢?
,
Johnson He:
您好,
您所说的反应迟钝问题,指的是灵敏度降低是吗?
还是指打印的速度慢?
灵敏度是可以在程序中修改参数调整的,您这个前面有导体的情况,会导致灵敏度下降。谢谢
Best Regards
Johnson
,
user6341679:
我实在回调函数中打印的数据,打印数据的快慢反映出来的是我获取数据的快慢。获取数据慢时说明原因呢?
,
Johnson He:
有可能的原因时 您设置的扫描周期太短,不足以CapTIvate内核去扫描和计算所有的sensor。
其次 您是否使用的printf函数? 还是直接操作的寄存器? printf函数会占用较大的资源,不建议使用。谢谢
Best Regards
Johnson