完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我正在把我的项目转换成8MHz的晶体振荡器。它在int 8MHz上工作。我添加了一个晶体和电容器,没有振荡。我在mplabX中构建项目,并注意配置位框中的设置如何变化。由于某些原因,HS晶体的配置位将不设置。无论我在CONT1行中输入什么,结果是LP或ItoSc。所有其他的比特对下面的类型都是正确的。有什么线索吗?列表p=16f1764,f=INHX32;用于定义处理器列表的列表指令包括p16f1764.inc;处理器专用变量定义_16f1764处理器专用变量定义_config_config_CONFIFIG1,_p16f1764 16f1764.inc;处理器专用变量定义_p16f171716f1764646416f1764.inc;处理器专用变量定义_confi_confi_confi_confi_confi_confi_confi_confi_confi_confi_confi_confi_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_CON_OFF&_FOSC_HS_config_config_CONFIG2,_WRT_OFF&,_WRT_OFF&;_PPS1WAY_ON&;_ZCD_OFF&;_ZCD_OFF&;_PLCD_OFF_PLLEN_OFF&;_PLPLPLLEN_PLLEN_OFF_OFF&;_STVREN_ON_ON&;_BORV_BORV_HI&;_LVP_OFF_OFF&_LPBOR_OFF&;_LPBOR_ONI不清楚以下工作没有进行以下工作,也不知道以上工作:CON._CONFIFIFIFIFIFIFIFIFIFIFI_C ON._C ON amp;_PWRTE_ON&_MCLRE_OFF&_CP_OFF&_BOREN_ON&_CLKOUTEN_OFF&_IESO_OFF&_FCMEN_OFF_CONFIG2,_WRT_OFF&_PPS1WAY_ON&_ZCD_OFF&_PLLEN_OFF&_STVREN_ON&_BORV_HI;_LPBOR_ON&_LVP_OFF
以上来自于百度翻译 以下为原文 I'm in the process of converting my project to crystal oscillator at 8Mhz. It works on int osc 8mhz. I have added a crystal and capacitors and no oscillation. I'm building the project in mplabX and noting how the settings change in the Configuration bits box. For some reason the Configuration bit for HS crystal will not set. what ever I type in the config1 line the outcome is either LP or INTOSC. All other bits are true to what is typed below. Any clues?? list p=16f1764, f=INHX32 ; list directive to define processor list #include p16f1764.inc ; processor specific variable definitions __config _CONFIG1, _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _BOREN_ON & _WRT_ALL & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF & _FOSC_HS __config _CONFIG2, _WRT_OFF & _PPS1WAY_ON & _ZCD_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_HI & _LVP_OFF & _LPBOR_ON I don't know whit this following works and not the above: __CONFIG _CONFIG1, _FOSC_HS & _WDTE_OFF & _PWRTE_ON & _MCLRE_OFF & _CP_OFF & _BOREN_ON & _CLKOUTEN_OFF & _IESO_OFF & _FCMEN_OFF __CONFIG _CONFIG2, _WRT_OFF & _PPS1WAY_ON & _ZCD_OFF & _PLLEN_OFF & _STVREN_ON & _BORV_HI & _LPBOR_ON & _LVP_OFF |
|
相关推荐
4个回答
|
|
在一个版本中有“特殊配置”和“另一个配置”的特殊原因吗?第一个版本的问题是,它是一个配置2选项。把它放在CONT1线路中,迫使底部两位为零,这是时钟选择位。
以上来自于百度翻译 以下为原文 Is there any particular reason you have "__CONFIG" in one version, and "__config" in the other? The problem with the first version is _WRT_ALL That is a CONFIG2 option. Putting it in the CONFIG1 line is forcing the bottom two bits to zero, which are the clock selection bits. |
|
|
|
彼得,你使用哪种编译器?你使用的语法已经过时了。请使用MPLAB X配置位生成器:Windows>PIC内存视图>配置位。此外,所有XC编译器接受:include
以上来自于百度翻译 以下为原文 Peter, Which compiler do you use ? The syntax you use is obsolete. Please use MPLAB X config bits generator : Windows > PIC memory views > configuration bits. Also, all XC compilers accept : #include the compiler will automatically select the header file of the PIC selected in the project Regards |
|
|
|
|
|
|
|
感谢QHB,我看这个太久了,聚焦于FoSC。理解起来总是好的。感谢RISC,尽管使用了mplab x已经有几年了,但是我从来没有在配置位窗口中看到过generate按钮。正是利用了这一点。
以上来自于百度翻译 以下为原文 Thanks qhb, I was looking at this for far too long, focusing on the FOSC. It's always good to understand. Thanks RISC, altho' using mplab x for a few years, I had never seen the generate button in the config bits window. It was using this that got eventually going. Cheers |
|
|
|
只有小组成员才能发言,加入小组>>
4824 浏览 9 评论
1829 浏览 8 评论
1747 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
2954 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2059 浏览 5 评论
460浏览 1评论
1110浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
362浏览 0评论
263浏览 0评论
LAN9252使用SQI通信,进行数字复位后读BYTE_TEST异常
1796浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-24 04:26 , Processed in 1.142864 second(s), Total 79, Slave 61 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号