Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
版主
|
參照:
那請問此Reference Manual適用在dsPIC33系列上嗎? 不是自行定義的,是 Microchip 在GLD 檔裡設定的中斷定義字。可以將該元件的 gld 檔打開找一下各相關中斷的第一名稱。 建議看一下 dsPIC30F Peripheral 的教育訓練裡的中斷章節。 http://www.microchip.com.tw/modules/w ... glefile.php?cid=4&lid=229
發表於: 2009/4/21 10:03
|
|||
|
Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
初級會員
|
參照:
那請問此Reference Manual適用在dsPIC33系列上嗎? 還有 void__attribute__((__interrupt__)) _T2Interrupt() 其中的T2Interrupt()名稱是自行定義的嗎?
發表於: 2009/4/19 21:51
|
|||
|
Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
新會員
|
謝謝
發表於: 2009/4/19 11:47
|
|||
|
Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
版主
|
到 30F4011.h 檔裡找一下 _ISR 的定義就知道了。在 H 檔的最後面。
發表於: 2009/4/17 14:20
|
|||
|
Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
新會員
|
那在請問一下
我有看過別人寫的範例程式 他宣告中斷副程式 void _ISR_INT0Interrupt(void) { } 這樣寫跟樓上的寫法有什麼差別嗎@@ 謝謝指教
發表於: 2009/4/17 11:28
|
|||
|
Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
新會員
|
void INT0_Initial( void )
{ TRISEbits.TRISE8 = 1; INTCON2bits.INT0EP =1 ; /* INT0 interrupt on negative edge */ IFS0bits.INT0IF = 0; /*Reset INT0 interrupt flag */ IEC0bits.INT0IE = 1; /*Enable INT0 Interrupt Service Routine */ } void __attribute__((__interrupt__)) _INT0Interrupt(void) { IFS0bits.INT0IF = 0; /* Clear Timer3 interrupt Flag */ LED14= !LED14 ; }
發表於: 2009/4/17 9:23
|
|||
|
Re: dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
資深會員
|
左手邊的下載中心您找過了沒?
另外中斷設定在Datasheet的第五章,不要再說datasheet沒有!! 有關於暫存器設定詳細資料要查Reference Manual http://ww1.microchip.com/downloads/en/DeviceDoc/70135e_cn.pdf http://ww1.microchip.com/downloads/en/DeviceDoc/70267b_cn.pdf
發表於: 2009/4/16 23:19
|
|||
不要問我哪裡來,我只是個流浪天涯的工程師
|
||||
|
dspic30f4011如何設定中斷?
|
||||
---|---|---|---|---|
新會員
|
請問一下我如果要設定外部中斷
一些暫存器要怎麼設定? 能否請各位先進告訴小弟我 要去哪裡找各暫存器所代表的功能的資料 比方說該份資料會寫某個角位為高電位時就致能中斷之類的 找了好久都找不到@@ datasheet上也沒有 先謝謝各位先進了
發表於: 2009/4/16 21:34
|
|||
|