Cypress技术论坛
直播中

王玮

7年用户 274经验值
私信 关注
[问答]

Capsense作为电源按钮可行吗?

使用CAPSENSE按钮作为电源按钮是可行的吗?
我正在设计一个PSoC应用程序,它将花费它的大部分
在睡眠模式的时间,但会突然醒来的一个按钮。
显然,CapSense不工作在睡眠模式,但它是可能的
唤醒,说,每100ms,测试按钮?如果“on”按钮
检测到一个手指,然后设备将进入完全清醒,和
保持清醒。
雨果

以上来自于百度翻译


     以下为原文
   Is it feasable to use a capsense button as a power on button?
     
    I'm designing a PSoC application which would spend most of its
    time in sleep mode, but would be woken from sleep by a button.
     
    Obviously the capsense doesn't work in sleep mode, but is it possible to
    wake it up, say, every 100ms and test the buttons? If the 'on' button
    detects a finger, then the device would come into full wakefulness, and
    stay awake.
     
    Hugo

回帖(1)

郭雨桐

2019-4-16 17:04:49
是的,你可以使用一个CasSun按钮作为电源按钮。你要遵循的方法也是正确的方法之一。一般来说,当谈到低功耗应用时,重要的是电流,而不仅仅是睡眠电流。在你的应用程序中,你每100m出一次睡眠,一旦扫描了CasSouter按钮,然后再回去睡觉,这将是完美的。但是,你需要记住的是,当OCME睡眠时,不要立即将所有外围设备带到激活状态,然后测量平均电流。我相信当你使用睡眠API(CypSLIM)时,IMO被放在12兆赫。这是你的代码在睡眠结束后立即执行的时钟速度。这个时钟越慢,设备就可以在同一组时钟中保持活动模式。所以我想告诉你的是,这是速度和电流之间的权衡。尝试调整激活模式时间,并保持数字外设活跃到最低限度。

以上来自于百度翻译


     以下为原文
   Yes you could use a Capsense button as the power button. The methodology you are tring to follow is also one of the right methods to do it. Generally, when you talk about a low power application, it is the average current that matters and not just the sleep current. In you application, you come out of sleep every 100ms once scan the Capsense button and go back to sleep, this would perfectly. But, what you need to keep in mind is, when you ocme out of sleep, do not bring out all the peripherals to active state immediately and then measure the average current. I believe when you use the Sleep API(CyPmsleep), IMO is put to 12 MHz. This is the clock speed at which your code will be execited immediately after coming out of sleep. The slower is this clock longer is the device is going to stay in active mode for the same set of clock. So what I am trying to tell you is, it is a tradeoff between, speed and current. Try to adjust the active mode time and lkeep the number peripherals active to minimum.
举报

更多回帖

发帖
×
20
完善资料,
赚取积分