完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
IM工作在一个与ADC有关的问题上,并且发现处理器文件(PIC32 MZ2048 EFM)丢失了5的寄存器。ADCTRG4到8…这些寄存器似乎在Selink中存在,但它们没有在TEH代码中定义。我可以再添加一些定义吗?
以上来自于百度翻译 以下为原文 Im workign on a problem related to an ADC, and have found that the processor files (PIC32MZ2048EFM) are missing 5 of the registers.. ADCTRG4 through 8.. It seems that these registers do exisit in silcone, but they have not been defined in teh code. Can i just add some more definitions. |
|
相关推荐
13个回答
|
|
PIC32 MX.EF数据表知道AdcTrgx的X值超过3。因此,提供的头文件似乎是可以的。为什么THANGADCGRG4等应该是可用的?
以上来自于百度翻译 以下为原文 The PIC32MX..EF datasheet knows nothiing about ADCTRGx with x beyond 3. Thus the header files supplied seem to be ok. Why do you thing ADCTRG4 etc. should be available? |
|
|
|
当然,您可以添加这些定义。我想知道您可以将这些定义指向哪些地址?
以上来自于百度翻译 以下为原文 Sure you can add these definitions. I wonder what address you might point these definitions to ? |
|
|
|
|
|
|
|
|
|
|
|
FRM明确指出,所有8个ADCTRGXX寄存器必须在那里,但它们不在EC、EF或DA的数据表中。地址不难理解。ADCtRG4将在0xBF84B08C、ADCGRUT5在0xBF84B090等。这些寄存器是否真的根本不存在,被切断,因为它们中有某种不可修复的bug,或者只是由于某种错误而从数据表中消失……很难说。你可以试一试,看看他们是否在场。简单地写/读会告诉他们是否存在。检查功能也不难。如果你做测试,让我们知道结果。
以上来自于百度翻译 以下为原文 The FRM explicitly says that all 8 ADCTRGx registers must be there, but they're not in the datasheet for neither EC, EF, or DA. The addresses are not difficult to figure out. ADCTRG4 would be at 0xbf84b08c, ADCTRIG5 at 0xbf84b090 etc. Whether these registers really don't exist at all, were chopped off because there were some sort of unfixable bugs in them, or simply disappeared from the datasheet by some sort of mistake ... hard to tell. You can experiment to find out if they're present. Simply writing/reading back will tell if they're there. Checking the functionality should not be hard neither. Let us know the results if you do the tests. |
|
|
|
我们经常发现NorthGuyAs,不是FRMS中的每一个都适用于一个家庭的所有成员。因此,如果勘误表不矛盾,我希望这些寄存器在MZ…EF(M)上不可用。在这方面,单个数据表取代了FRM。
以上来自于百度翻译 以下为原文 @ NorthGuy As we find out from time to time, not everything in the FRMs applies to all members of a family. Thus, if the errata sheet does not contradict, I expect these registers not to be available on MZ..EF(M). In this aspect, the individual datasheet supersedes the FRM. |
|
|
|
这让我很困惑!如果无法设置寄存器,如何设置扫描模式。
以上来自于百度翻译 以下为原文 This has got me really confused!! How do i set the scan mode if i can't set the register. |
|
|
|
正如我所发现的,对于只连接到AN7(共享)的输入,不需要设置扫描模式,因为只有一种可能的扫描模式。因此他们为什么不存在。这个ADC模块是一个复杂的东西。
以上来自于百度翻译 以下为原文 As i have discovered, For inputs that are only attahced to AN7 ( shared ) there is no need to set the scan mode, becuase there is only one possible scan mode. hence why they dont exisit. This ADC module is one hell of a complex thing to set up. |
|
|
|
AN10和AN11确实有ADCTRGX寄存器,虽然它们只连接到ADC7。AN45到AN49没有连接到ADC7,但是它们也没有ADCtRGX寄存器。我在数据表中没有找到解释。
以上来自于百度翻译 以下为原文 AN10 and AN11 do have ADCTRGx registers although they connect to ADC7 only. AN45 through AN49 do not connect to ADC7, but they do not have ADCTRGx registers neither. I found no explanations in the datasheet. |
|
|
|
它会变得更加复杂。好消息是,几分钟前,代码工作了!
以上来自于百度翻译 以下为原文 it does get more complex. The good news is that as of a few minutes ago, the code is working! |
|
|
|
嗨,有很多寄存器和模式不支持和谐,不是所有的特点都支持和谐API。在这种情况下,需要直接访问处理器寄存器。
以上来自于百度翻译 以下为原文 Hi, There are lots of registers and modes which are not supported in Harmony. Not all features are supported by Harmony APIs. when this is the case, one need to access directly the processor registers. Regards |
|
|
|
|
|
|
|
我相信它们只是AN0—AN4的交替引脚,所以它们使用相同的寄存器。-)
以上来自于百度翻译 以下为原文 I believe they are simply alternate pins for AN0 - AN4, so they use the same registers. I think. :-) |
|
|
|
只有小组成员才能发言,加入小组>>
5223 浏览 9 评论
2024 浏览 8 评论
1949 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3198 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2252 浏览 5 评论
769浏览 1评论
655浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
583浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
667浏览 0评论
569浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-16 20:56 , Processed in 1.509416 second(s), Total 100, Slave 84 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号