Microchip
直播中

王玉洁

8年用户 204经验值
私信 关注
[问答]

16F1827早上打开它在第一次阅读后挂起,其他时候不会

我使用一个16F1827在一个简单的温度显示项目使用机载ADC与LM35。它每秒钟读一次,然后显示出来。除了每天早上我打开它后,它在第一次阅读后就挂起了。这种情况在任何时候都不会发生,只是有一段时间没有发生。有什么原因吗?我可能做错什么了吗?谢谢您。

以上来自于百度翻译


      以下为原文

    I'm using a 16F1827 in a simple temperature display project using the onboard ADC with an LM35. It takes a reading every second and displays it.

It works largely ok except that every morning when I turn it on it hangs after first reading. This never occurs at any other time only when it's been off for a while.

Is there any reason? Anything I might be doing wrong?

Thank you.

回帖(9)

李涛

2018-9-18 15:14:35
也许是一顶帽子。在0V和VCC之间的电源电压。比如说100UF。

以上来自于百度翻译


      以下为原文

    Maybe a cap. between 0v and vcc on the supply voltage.  Say 100uf.
举报

张娜

2018-9-18 15:22:40
同意。此外,也许激活棕色输出和电源定时器

以上来自于百度翻译


      以下为原文

    agreed. also, maybe activate brown-out and power-on timer
举报

胡小娟

2018-9-18 15:29:15
谢谢你们,我有帽子,但是只有100NF,我要试一千倍大的!顺便说一下,因为它是由电池供电的,这有什么用?我有定时器启动的电源,但我从来没有担心过棕色,所以我会阅读它。

以上来自于百度翻译


      以下为原文

    Thank you both.
 
I have cap but it is only 100nF, I'll try a thousand times larger one! Incidentally, as it's powered by battery, what does this do?
 
I have the power-on timer activated but I've never bothered with the brown-out so I'll read-up on it.
举报

陈晨

2018-9-18 15:42:27
它是挂起,因为你的软件是在一个while循环,而不是超时,并再次尝试?

以上来自于百度翻译


      以下为原文

    Does it hang because your software is in a while loop rather than timing out and trying again?
举报

更多回帖

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