完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
亲爱的Apple希望从睡眠中获得模拟帮助,通过使用LFIFToC作为系统时钟的定时器1,也为PIC16F18325定时器1时钟输入。根据PIC16F18325的规范,“定时器1”只能在异步模式下设置时在休眠状态下工作。外部晶体或时钟源可以用来增加定时器。它似乎支持这个功能,但是它在MPLAX模拟器中不工作,只有我有测试的资源。谁能告诉我我错过了什么?8. h和gt;空隙主元({TMR1IF=1);TMR1H=0xFD;TMR1L= 0x00;PEE=1;GIE=0xC4;//T1CKPS1∶1;T1SoSC T1CKIIIN;T1Syc DoNoNOTH同步;TMR1CS FoC/4;TMR1ON启用;T1GCONN=0x00;TMR1Ge=0;TMR1ON=1;而(1){TMR1H=0xFD=0xFD;注:Bytime0正在工作。测试程序如下:TMR1L= 0x00;TMR1ON=1;SLIPEVER();TMR1ON=0;DOXPROCER();}}空隙DOYPROCEP(){};
以上来自于百度翻译 以下为原文 Dear all Hope get help for simulation waking up from sleep, by TIMER 1 using LFINTOSC as system clock but also TIMER 1 clock input for PIC16F18325. According to the specification of PIC16F18325, "Timer 1 can only operate during Sleep when setup in Asynchronous mode. an external crystal or clock source can be used to increment the timer. " It seem support this function, but it not working in MPLAB X SIMULATOR that only resource I have for testing. Any one can tell me what I missed? note: By TIMER0 is working. the testing program as bellow: #include void main() { TMR1IE=1; TMR1IF=0; TMR1H=0xFD; TMR1L=0x00; PEIE=1; GIE=1; T1CON=0xC4; // T1CKPS 1:1; T1SOSC T1CKI_enabled; T1SYNC do_not_synchronize; TMR1CS FOSC/4; TMR1ON enabled; T1GCON=0x00; TMR1GE=0; TMR1ON=1; while(1){ TMR1H=0xFD; TMR1L=0x00; TMR1ON=1; SLEEP(); TMR1ON=0; Do_PROC(); } } void Do_PROC() { ; } |
|
相关推荐
3个回答
|
|
我们已经在微芯片上确认了这个bug。根本问题是T1CON.TMRCS字段在该设备上与以前的设备不同地解码。不幸的是,模拟器不知道这一点,并解释这一领域,仿佛它是一个早期的PIC设备。我们已经编写了一个bug报告来解决这个问题,它将在某个时刻得到修复。不幸的是,我们还没有固定的时间框架。
以上来自于百度翻译 以下为原文 We have confirmed this bug here at Microchip. The root issue is that the T1CON.TMRCS field is decoded differently on this device than previous devices. Unfortunately the simulator is unaware of this and is interpreting this field as though it were an earlier PIC device. We have written a bug report against the issue and it will get fixed at some point. Unfortunately we do not have a estimated time frame for fixing it yet. |
|
|
|
GeorgePauley:嗨!我和KCL有同样的问题。我们可以在bug修复时得到通知吗?亚历山大
以上来自于百度翻译 以下为原文 to GeorgePauley: Hi! I had the same issue as KCL. Is it possible we get notified when the bug is fixed? Alexandros |
|
|
|
还没有估计。在我们的产品积压中大约有15项。所以可能要几个月。对不起的。
以上来自于百度翻译 以下为原文 No estimate yet. It's about 15 items down in our product backlog. So it's probably going to be a few months. Sorry. |
|
|
|
只有小组成员才能发言,加入小组>>
5250 浏览 9 评论
2037 浏览 8 评论
1958 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3218 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2266 浏览 5 评论
791浏览 1评论
682浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
613浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
686浏览 0评论
584浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 14:14 , Processed in 1.249848 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号