完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
嗨,有没有办法做以下。我有一个电路使用PIC16F18325。PIC处于休眠模式,并被开关中断。电路的其余部分由PIC上的I/O引脚供电。在PIC从休眠模式唤醒后,I/O引脚会持续高电平。事情正如预期的那样,在电路中有一个加速度计(MPU6050)。而不是用开关唤醒PIC,当加速度计移动时,我想唤醒它。加速度计有一个IRQ引脚,可用于此。但目前加速度计从PIC接收其供电电压。所以它总是被关闭直到PIC被唤醒。有没有办法让所有东西都睡觉,然后当加速度计被移动时,PIC醒来?谢谢
以上来自于百度翻译 以下为原文 Hi, is there a way to do the following. I have a circuit using a PIC16F18325. The PIC is in sleep mode and is woken with an interrupt from a switch. The remainder of the circuit is powered by an I/O pin on the PIC. That I/O pin goes permanently high after the PIC is woken from sleep mode. Things work as expected. There is an accelerometer (MPU6050) in the circuit. Rather than waking the PIC with a switch, I would like to wake it when the accelerometer is moved. The accelerometer has an IRQ pin that can be used for that. But currently the accelerometer receives its supply voltage from the PIC. And so it is always powered down until the PIC is woken. Is there a way to have everything sleeping, and then have the PIC wake up when the accelerometer is moved? thanks |
|
相关推荐
5个回答
|
|
显然,为了加速工作,加速计需要保持开机状态。所以,要么你需要把PIC管脚保持在高睡眠状态下,否则会使其他东西变电,或者你需要改变线路,这样PIN就不能控制加速计的功率。
以上来自于百度翻译 以下为原文 Well plainly for this to work, the accelerometer needs to stay powered up. So, either you need to keep that PIC pin high in sleep, which will keep other things powered up, or you need to change your wiring so that pin doesn't control power to the accelerometer. |
|
|
|
嗯,这样可以安排I/O引脚在睡眠期间保持高电平吗?虽然加速度计将绘制几个MILAMAMPS,但我想这将失败于在睡眠模式下开始PIC的目的。
以上来自于百度翻译 以下为原文 hmmm, so it can be arranged for the I/O pin to stay high during sleep? Though being that the accelerometer will be drawing several miiliamps, i guess that would defeat the purpose of having the PIC in sleep mode to begin with. |
|
|
|
对。睡眠停止时钟。它不会使输出引脚浮动或降低。
以上来自于百度翻译 以下为原文 Yes. Sleep stops the clocks. It does not make output pins float or go low. Indeed. |
|
|
|
您好,请仔细阅读数据表第9.3部分:只有在没有连接到I/O端口的外围设备的情况下,才保持执行它们的状态(高、低、高阻抗)。事业单位
以上来自于百度翻译 以下为原文 Hi, Read carefully section 9.3 of the datasheet : ================================================================ I/O ports maintain the status they had before Sleep was executed (driving high, low, or high-impedance) only if no peripheral connected to the I/O port is active. ================================================================ Regards |
|
|
|
一些加速计应该有一个掉电模式,伴随着一个移动(或阈值)的中断唤醒设备——反过来可能是MCU。我现在正在看BMA150。
以上来自于百度翻译 以下为原文 Some accelerometers should have a power-down mode, along with an interrupt-on-movement (or threshold) that wakes up the device - and in turn possibly the MCU. I am currently taking a look at BMA150. |
|
|
|
只有小组成员才能发言,加入小组>>
5189 浏览 9 评论
2009 浏览 8 评论
1933 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3181 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2232 浏览 5 评论
743浏览 1评论
629浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
512浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
642浏览 0评论
538浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-30 01:08 , Processed in 1.357158 second(s), Total 88, Slave 69 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号