完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
|
#include
#include"iom32v.h" #pragma interrupt_handler int0:2 #pragma interrupt_handler int1:3 void int0(void) { PORTC=1; SEI(); while(1); } void int1(void) { PORTC=0x80; SEI(); while(1); } void main(void) { PORTC = 0x00; //m103 output only DDRC = 0xff; PORTD=0xff; DDRD=0X00; CLI(); //disable all interrupts MCUCR = 0x00; GICR = 0xC0; tiMSK = 0x00; //timer interrupt sources SEI(); //re-enable interrupts while(1); } |
|
相关推荐
1个回答
|
|
|
你确定timsk是这么设置的吗?
|
|
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
【瑞萨RA6E2】瑞萨E2S软件安装过程,等待过程玩下97_e2 studio_ZGZZ
331 浏览 0 评论
532 浏览 0 评论
【原创】【RA4M2-SENSOR开发板评测】低功耗+USB综合测试
842 浏览 0 评论
1383 浏览 2 评论
824 浏览 0 评论
【youyeetoo X1 windows 开发板体验】少儿AI智能STEAM积木平台
16911 浏览 31 评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 05:45 , Processed in 0.566712 second(s), Total 75, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
1335