完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
嗨,我是新的PIC控制器。我使用PIC32 MX775 F256H与80MHz核心时钟。我想知道如何配置GPIOS作为中断。如果可能的话,请帮助我解释代码。谢谢。
以上来自于百度翻译 以下为原文 HI, I am new to pic controller. I am using pic32mx775f256h with 80mhz core clock. I want to know how to configure the GPIOs as interrupt. Please help me if possible explain with code. Thanks in advance. |
|
相关推荐
5个回答
|
|
|
在数据表中查找“更改通知”。/ Ruben
以上来自于百度翻译 以下为原文 Look up "change notification" in the datasheet. /Ruben |
|
|
|
|
|
设置引脚作为输入引脚。设置可中断/上升可中断多向量可中断外部互操作系统ISR。
以上来自于百度翻译 以下为原文 Set pin as input pin. Set interrupt for Rising/Falling edge Enable multivector interrupt Enable external interruopt write ISR. |
|
|
|
|
|
感谢您的回复。如何清除ISR内部的ISR功能。
以上来自于百度翻译 以下为原文 Thanks for reply. How to clear the isr inside the isr function. |
|
|
|
|
|
|
|
|
|
|
|
空中断中断It1HANLL(){It1的清除中断标志;}空缺中断It2Hoall(){It2的清除中断标志;}
以上来自于百度翻译 以下为原文 void interrupt INT1handler() { clear interrupt flag for INT1; } void interrupt INT2handler() { clear interrupt flag for INT2; } |
|
|
|
|
只有小组成员才能发言,加入小组>>
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
473 浏览 0 评论
5793 浏览 9 评论
2334 浏览 8 评论
2224 浏览 10 评论
请问是否能把一个ADC值转换成两个字节用来设置PWM占空比?
3530 浏览 3 评论
1123浏览 1评论
有偿咨询,关于MPLAB X IPE烧录PIC32MX所遇到的问题
1095浏览 1评论
我是Microchip 的代理商,有PIC16F1829T-I/SS 技术问题可以咨询我,微信:A-chip-Ti
873浏览 1评论
MPLAB X IDE V6.25版本怎么对bootloader和应用程序进行烧录
475浏览 0评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 01:40 , Processed in 1.094622 second(s), Total 81, Slave 64 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
3710