完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
大家好,我正在学习如何编程一个PIC16F690。我已经知道了MPLAB和proteus的工作原理来模拟我想做的工作的原理和代码。但是我是一个新手,例如,当我需要在PIC中重置所有的时候,我会创建一个函数来重置我在代码上使用的每个端口和变量。但我知道功能,内部的微型,它允许我重置所有的微,不使用其他方式。我会感谢如果可能的话,分享我的方式来做到这一点。谢谢。
以上来自于百度翻译 以下为原文 Hello folks, I am studying about how programmer a pic16f690. Already I know works to mplab and proteus to simulate the schematic and code to doing the job which I want. But I am a newbie on this subject. For example, when I need reset all in the pic I create to do this a function where I reset each ports and variable which I used on my code. But I know about function, internal to the micro, which allow me reset all the micro, without use another ways. I will appreciate if it was possible share with my ways to do this. Thanks |
|
相关推荐
5个回答
|
|
正如Nikos所说的,对于所有的设置确实有“默认的权力”,但最好的做法是永远不要信任它们。此外,重新创建“权力开启”状态可能并不那么容易。
以上来自于百度翻译 以下为原文 As Nikos says. There are indeed "power-on defaults" for all settings, but it's good practice to never trust upon them. And, moreover, recreating the "power-on" state may not be that easy... |
|
|
|
我听过参数IOCA。我能用这个做我的系统的优雅重置吗?当我需要的时候?关于WDT,我该怎么做?我不知道如何使用这个功能,但我喜欢的声音!我知道WDT是一个函数,当确定的任务花费大量的时间执行时。此时,功能WDT调用并复位所有系统。对吗?谢谢
以上来自于百度翻译 以下为原文 I listened about parameter ioca. Can I use this to do elegant reset all my system? When I need? About WDT, how can I do this? I don't know how works with this functionality, but I like the sound! I know which the WDT is a function to use when determined tasks take a lot time to execute. On this moment the function WDT was call and reset all system. Right? Thanks |
|
|
|
哈哈,我明白了。“权力默认”应该由我定义,而不是由阶段默认PIC。因为在这个阶段,行为可能对我的配置不感兴趣。对吗?
以上来自于百度翻译 以下为原文 Haaaa, I understood. The "power-on default" should define by me, and not by stage default pic. Because on this stage the behavior may don't interesting to my configuration. Right? |
|
|
|
|
|
|
|
这是一个老芯片——至少有12年历史了。如果你可以移动到一个“增强的,中等范围”的芯片(仍然是PIC16(L)F,但是在1XXX或1XXXX系列中),它会更便宜,并且会有一个复位指令。但是正如已经提到的,依靠复位可能是有问题的-除了PIN状态将是三态(输入)和通常容忍O。在VSS到Vdd(模拟)范围内的任何电压。使用看门狗定时器进行重置有一个问题,即如果你以后(或现在)使用WDT来达到它的预期目的,你怎么区分它?GP
以上来自于百度翻译 以下为原文 This is an old chip - at least 12 years old. If you could move to an "enhanced, mid-range" chip (still a PIC16(L)F, but in the 1xxx or 1xxxx series), it would be cheaper and would have a reset instruction. But as already mentioned, relying on reset can be problematic - except for pin states which will be TriState (Input) and usually tolerant of any voltage in the range of Vss to Vdd (Analog). Using the Watch-Dog timer for a reset has the issue that if you later (or now) use the WDT for its intended purpose, how do you tell the difference? GP |
|
|
|
只有小组成员才能发言,加入小组>>
5007 浏览 9 评论
1923 浏览 8 评论
1853 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3070 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2145 浏览 5 评论
579浏览 1评论
436浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
478浏览 0评论
373浏览 0评论
IPECMD命令烧录AVR128DA48芯片,报找不到芯片错误
856浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-8-18 21:53 , Processed in 0.955091 second(s), Total 52, Slave 46 queries .
Powered by 电子发烧友网
© 2015 www.ws-dc.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号