完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
您好,我们使用的是带有更改通知引脚的PIC24FJ128GA306设备。现在我们需要将其更改为PIC24FJ256GB406设备(由于硬件中的CRC/AES),但是更改通知引脚在这个设备上丢失。我发现了称为CAPTURE/COMPARE/PWM/tiMER模块(MCCP和SCP)的东西。这个模块/ ICx Pins和我在旧设备上做的一样吗?例如:触发上升/下降沿中断?谢谢你
以上来自于百度翻译 以下为原文 Hello, we are using a PIC24FJ128GA306 device with Change Notify Pins. Now we need to change it to the PIC24FJ256GB406 device (due to CRC/AES in Hardware) but the Change Notify Pins are missing on this Device. I found something called CAPTURE/COMPARE/PWM/TIMER MODULES (MCCP AND SCCP) Is it possibe to use this Module / ICx Pins the same way i did on the older Device? For Example: Triggering an Interrupt on rising / falling edges? Thank you |
|
相关推荐
7个回答
|
|
不,外围设备上的“捕获”捕获计时器值。
以上来自于百度翻译 以下为原文 No, the "capture" on that peripheral is capturing a timer value. |
|
|
|
但是等等…我在数据表上找到了一些东西:PIC24FJ256GA412/GB412家庭数据表页216。I/O端口的中断更改功能使PIC24FJ256GA412/GB412系列设备变为在任何输入端口引脚上生成对处理器响应状态改变(COS)的中断请求。这个功能可以检测输入的状态变化,甚至在时钟被禁用的睡眠模式中也是如此。中断-改变(IOC)看起来就像微芯片家伙刚刚改变了改变通知模块的名称。我可以使用任何输入引脚进行CN中断吗?
以上来自于百度翻译 以下为原文 But wait... i found something on the Datasheet: PIC24FJ256GA412/GB412 FAMILY Datasheet Page 216. The Interrupt-On-Change function of the I/O portsInterrupt-On-Change (IOC) It looks like the Microchip guys just changed the Name of Change Notify Module. Is it right that i can use any Input Pin for CN Interrupt? |
|
|
|
阅读手册是个好主意。只要继续保持这个习惯,您就会发现(FRM):1.6其他特殊特性,集成的即时中断更改:所有数字I/O端口现在都具有即时中断更改(IOC)功能,以便在任何I/O管脚上方便地生成更改通知中断。IOC可以在每个引脚上单独启用或禁用,并为边缘检测极性和使用上拉或下拉进行配置
以上来自于百度翻译 以下为原文 Reading the manual is a good idea. Just continue with this habit and you will find (FRM): 1.6 Other Special Features Integrated Interrupt-On-Change: All digital I/O ports now feature Interrupt-On-Change (IOC) functionality for convenient Change Notification interrupt generation on any I/O pin. IOC can be individually enabled or disabled on each pin, and configured for both edge detection polarity and the use of pull-ups or pull-downs |
|
|
|
我找不到“Inter.-On_change(IOC)”端口的数据表。设备数据表PIC24FJ256GA412/GB412 FAMILY告诉我应该查找不存在的“I/O端口带中断-On-Change(IOC)”(DS70005186)。在设备页上,只能找到到I/O端口的链接TH-PPS,但这包含较旧的CN引脚,而不是IOC。
以上来自于百度翻译 以下为原文 I have some trouble finding a Datasheet for the "Interrupt-On_change (IOC)" Ports. The Device Datasheet PIC24FJ256GA412/GB412 FAMILY tells me that i should look for “I/O Ports with Interrupt-On-Change (IOC)” (DS70005186) that dont exists. On The Device Page you can only find a link to I/O Ports with PPS but this contains the older CN Pins and not IOC. |
|
|
|
HTTP://www. McCHIP.COM/FUMMS/M9533 75.ASPXIN这一特殊情况,我会反过来做。请参阅9711B,从FRM(第11.3章)的细节为我工作(GB406),所以让我知道,如果你有问题。
以上来自于百度翻译 以下为原文 http://www.microchip.com/forums/m953375.aspx In this special case I would do it the other way round. Read 39711b, take the details from the FRM (chapter 11.3) It works for me (GB406), so let me know if you have problems. |
|
|
|
抱歉,但我找不到任何有关IOC引脚的信息从这个手册。我没有任何问题的外围引脚选择或使用CN引脚,都工作良好与其他PIC24F.C.C.没有绝对文件,说明如何使用IOC?我在哪里可以找到IOCPX寄存器?另一张PIC有一个寄存器IST,但是GB406 C的寄存器列表在哪里?
以上来自于百度翻译 以下为原文 Sorry, but i cant find any information about IOC Pins from this Manuals. I dont have any Problem with Peripheral Pin Select or using CN Pins, both worked fine with other PIC24F µC. Is there absolutley no document that describes how to use IOC? Where do i find IOCPx registers? The other PIC had a register ist, but where is the register list of the GB406 µC? |
|
|
|
我认为目前还没有很好的文档对此进行说明。如果以下信息不够,您应该对丢失的DS70005186提出支持问题。但是我猜这个文档还没有写出来。您可以在FRM manualTABLE 4-11:SFR BLOCK 600h中找到GB406的IO sfr寄存器。寄存器的含义在FRM第11章中简要描述。3有了这个信息,您还可以查看XC16(1.26)p24FJ256GB406.h文件。(和p24FJ256GB406.gld)这些是可以在代码中使用的寄存器和定义。例如,我使用端口D0位作为CN输入,所以在CNEN4bits之前,CN49IE(或_CN49IE)和PIC24FJ256GB106现在变成IOCPDbits。
以上来自于百度翻译 以下为原文 I think there is no good uptodate documentation for that. You should raise a support issue for the missing DS70005186, if the following information is not enough. But I guess this documentation has not been written yet. You can find the IO sfr registers for the GB406 in the FRM manual TABLE 4-11: SFR BLOCK 600h The meaning of the registers is shortly described in FRM chapter 11.3 With this information you can also look into the XC16 (1.26) p24FJ256GB406.h file (and p24FJ256GB406.gld) These are the registers and definitions you can use in your code. E.g. I'm using port D0 bit as CN input, so what was before CNEN4bits.CN49IE (or _CN49IE) with PIC24FJ256GB106 now becomes IOCPDbits.IOCPD0 with PIC24FJ256GB406 |
|
|
|
只有小组成员才能发言,加入小组>>
5228 浏览 9 评论
2026 浏览 8 评论
1950 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3199 浏览 3 评论
请问电源和晶体值之间有什么关系吗?PIC在正常条件下运行4MHz需要多少电压?
2253 浏览 5 评论
770浏览 1评论
658浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
585浏览 1评论
PIC Kit3出现目标设备ID(00000000)与预期的设备ID(02c20000)不匹配。是什么原因
668浏览 0评论
570浏览 0评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-18 15:40 , Processed in 1.703813 second(s), Total 60, Slave 53 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号