智能车制作
标题:
求助PT口中断进不去!急
[打印本页]
作者:
chenl0519
时间:
2008-8-17 18:28
标题:
求助PT口中断进不去!急
<
> void ECT_init(void)<BR>{<BR> TIOS=0X00; //PT used as input<BR> TCTL4=0X0D1; //PT3-either falling or rising edge PT0¡PT2-rising edge <BR> TIE=0X08; //PT2 PT3 Interrupt enable <BR> PBCTL=0X40; // PT0 use 16bit counter<BR> PACN10=0X00; // Accumulator cleared<BR> HPRIO=0X0EA; // PT2 ÓÅÏȼ¶×î¸ß<BR>}</P><P>#pragma CODE_SEG __NEAR_SEG NON_BANKED<BR>void interrupt 11 PT3_ISR(void) //³¡ÖжÏ<BR>{<BR> DisableInterrupts;<BR> TFLG1_C3F=1;<BR> PORTB++;<BR> EnableInterrupts;<BR>}</P><P>进不了中断啊??</P><P>哪位帮我解决一下!</P>
作者:
Flyingpigone
时间:
2008-8-17 22:20
标题:
Re:求助PT口中断进不去!急
<
>这个也许有用</P><P><A target=_blank href="http://www.znczz.com/ShowPost.asp?ThreadID=859">http://www.znczz.com/ShowPost.asp?ThreadID=859</A></P>
作者:
whut_wj
时间:
2008-8-17 23:52
标题:
Re:求助PT口中断进不去!急
寄存器没有设置对.
欢迎光临 智能车制作 (http://111.231.132.190/)
Powered by Discuz! X3.2