完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我无法发布我的原始线程:http://www..hip.com/.rums/m949303.aspx,所以我创建了一个新的线程。我的问题还没有完全解决。我每10秒读取ADC,但是偶尔只读取一次。大多数timeDRV_ADC_SamplesAvailable()是零。配置:和寄存器转储:请告诉我哪里做错了?谢谢你,Zdenko
以上来自于百度翻译 以下为原文 I can not post to my original thread: http://www.microchip.com/.rums/m949303.aspx , so I created a new one. My problems are not yet completely solved. I am reading the ADCs every 10 seconds, but I only get a reading now and then. Most of the time DRV_ADC_SamplesAvailable() is ZERO. The configuration: And register dump: Please advise on where I am doing something wrong? Thank you, Zdenko |
|
相关推荐
4个回答
|
|
我不能编辑,贴在这里…我的协调配置:STATICPOLLEDADC_CLOCK_SOURCE_PERIPHERAL_BUS_CLOCKTAD:1000000nTAD:31SCANMODEADC_SAMPLING_MODE_MUXAADC_8SAMPLES_PER_INTERRUPTADC_CONVER._TRIGGER_INTERNAL_COUNTADC_BUFFER_MODE_ONE_16WORD_BUFFER8实例不能在此附加图像:不要复制/粘贴寄存器转储1F80_9040AD1CHS 0x00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 0 0 0 0 0“……”1F80_9000AD1CON10C0E6 49382 0000000000000000000000000000000000000000000000011100110“……”00000000000011111111111'...'1F80_9050AD1CSSL0x0000033F831000000000000000000110111'...'1F80_9060AD1PCFG0x0000F8006348800000000000ADC1BUF1111100000000000000'...1F80_9070ADC1BUF0x00000246582000000000000000000000000000000000110'...F'1F80_9080ADC1BUF10x00000240000000000000000000000000000000000000000000000000000'.........'1F80_90ADC1BUF20x0003310000000000000000000000000000000000000000000000000000000000000000000000000001100011'1F80_90A0ADC1BUF1F80_90A0ADC1BUF30x0000000000000000000000000000000001100000001100000000001100000000000000000110001'...1'1F80_90B0ADC1B0ADC1B0ADC1BUF41F80_90B0ADC1BUF1F80_90C0ADC1BUF1F1F80_90C0CCC0ADCCC0C0ADC1C1BUF1F50000000000000000000000000000000000000000000000000000000000000000000000000000000000000111011'…00010 10101001’…}‘1F80990E0 ADC1BUF7 0x00 000 02A8 680’00000000×00000000 000000 10 10101000’……'1F80990F0 ADC1BUF8 0x00亿0 00000000 00000000 00000000 00000000 '…'1F8099100ADC1BUF90x900Mang-Yang-y''…00000000‘…’1F8099120 ADC1BUFB 0x00亿0 0 00000000 00000000 00000000 00000000’……1F809930 ADC1BUFC 0x00亿0 00000000 00000000 00000000 00000000……'1F809914ADC1BUFD 0x00亿0 000000……'1F809916AdC1Buff0x00百万0 0 00000000 00000000 00000000 00000000 '…'1F8101070 IEC1 0x100000 268435456 00010000 00000000 00000000 00000000 '…'1F8101040 IFS1 0x100000 2 268435458…
以上来自于百度翻译 以下为原文 I cant edit, posts here... Always get ACCESS DENIED.. My harmony configuration: STATIC POLLED ADC_CLOCK_SOURCE_PERIPHERAL_BUS_CLOCK TAD: 1000000 nTAD: 31 SCAN MODE ADC_SAMPLING_MODE_MUXA ADC_8SAMPLES_PER_INTERRUPT ADC_CONVERSION_TRIGGER_INTERNAL_COUNT ADC_BUFFER_MODE_ONE_16WORD_BUFFER 8 instances I can not attach images here: So I will just copy/paste the register dump 1F80_9040 AD1CHS 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9000 AD1CON1 0x0000C0E6 49382 00000000 00000000 11000000 11100110 '..Àæ' 1F80_9010 AD1CON2 0x0000241C 9244 00000000 00000000 00100100 00011100 '..$.' 1F80_9020 AD1CON3 0x00001FFF 8191 00000000 00000000 00011111 11111111 '...ÿ' 1F80_9050 AD1CSSL 0x0000033F 831 00000000 00000000 00000011 00111111 '...?' 1F80_9060 AD1PCFG 0x0000F800 63488 00000000 00000000 11111000 00000000 '..ø.' 1F80_9070 ADC1BUF0 0x00000246 582 00000000 00000000 00000010 01000110 '...F' 1F80_9080 ADC1BUF1 0x00000240 576 00000000 00000000 00000010 01000000 '...@' 1F80_9090 ADC1BUF2 0x00000331 817 00000000 00000000 00000011 00110001 '...1' 1F80_90A0 ADC1BUF3 0x00000331 817 00000000 00000000 00000011 00110001 '...1' 1F80_90B0 ADC1BUF4 0x000001DD 477 00000000 00000000 00000001 11011101 '...Ý' 1F80_90C0 ADC1BUF5 0x000001DB 475 00000000 00000000 00000001 11011011 '...Û' 1F80_90D0 ADC1BUF6 0x000002A9 681 00000000 00000000 00000010 10101001 '...©' 1F80_90E0 ADC1BUF7 0x000002A8 680 00000000 00000000 00000010 10101000 '...¨' 1F80_90F0 ADC1BUF8 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9100 ADC1BUF9 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9110 ADC1BUFA 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9120 ADC1BUFB 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9130 ADC1BUFC 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9140 ADC1BUFD 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9150 ADC1BUFE 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F80_9160 ADC1BUFF 0x00000000 0 00000000 00000000 00000000 00000000 '....' 1F88_1070 IEC1 0x10000000 268435456 00010000 00000000 00000000 00000000 '....' 1F88_1040 IFS1 0x10000002 268435458 00010000 00000000 00000000 00000010 '....' |
|
|
|
这是你帖子中的链接,触发了论坛错误。参见:如何避免编辑帖子中的错误
以上来自于百度翻译 以下为原文 It's the link in your post, triggering a forum bug. See: How to avoid errors when editing posts |
|
|
|
这是你帖子中的链接,触发了论坛错误。参见:如何编辑帖子感谢你避免错误。很高兴知道!
以上来自于百度翻译 以下为原文 It's the link in your post, triggering a forum bug. See: How to avoid errors when editing posts Thanks. Good to know! |
|
|
|
通过等待在一个while语句中完成位来解决。我错过了一个事实,这个比特在每个转换周期被HW清除。
以上来自于百度翻译 以下为原文 Solved by waiting for DONE bit in a while statement. I missed the fact that this bit gets cleared by HW every conversion cycle. |
|
|
|
只有小组成员才能发言,加入小组>>
5242 浏览 9 评论
2031 浏览 8 评论
1955 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3207 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2256 浏览 5 评论
778浏览 1评论
669浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
596浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
678浏览 0评论
577浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-23 19:13 , Processed in 1.279562 second(s), Total 82, Slave 66 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号