• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
:::

論壇索引


Board index » All Posts (PICSTART)




DSP的中斷時間
#11
中級會員
中級會員


請問使用C30
DSP30F由主程式跳到中斷副程式需要多少個指令

中斷副程式返回主程式又需要多少指令

發表於: 2005/11/21 10:53
頂部


Re: 為什麼我沒辦法看到變數 ??
#12
中級會員
中級會員


感謝 , 剛剛在 IDE 設定好了 , 果然就看的到了

發表於: 2005/9/28 10:07
頂部


為什麼我沒辦法看到變數 ??
#13
中級會員
中級會員


#define __dsPIC30F4011__

#include <timer.h>
#include "C:\pic30_tools\support\h\p30F4011.h"

#define FCY 14745600
#define LED13 LATDbits.LATD0
#define LED14 LATDbits.LATD1

_FOSC(CSW_FSCM_OFF & HS); //XT with 4xPLL oscillator, Failsafe clock off
_FWDT(WDT_OFF); //Watchdog timer disabled
_FBORPOR(PBOR_OFF & MCLR_EN); //Brown-out reset disabled, MCLR reset enabled
_FGS(CODE_PROT_OFF); //Code protect disabled

/************* START OF MAIN FUNCTION ***************/
unsigned char LineCount = 0;
char *msg1 = {"UART1-9600B EXAM"} ;

int aaa=0,i=0,adr=0;
int x[20];


void initial_LED(void)
{
TRISE = 0x00 ;
PORTE = 0x00 ;
}

int main ( void )
{

ADPCFG = 0XFF7F ;
ADCON1 = 0 ;
ADCON2 = 0 ;
ADCON3 = 0X0002 ;
ADCHS = 0X0007;
ADCSSL = 0;

ADCON1bits.ADON = 1;

while (1)
{
ADCON1bits.SAMP = 1 ;

for(i = 0 ; i < 100 ; i++)
i++;

if(i==100)
i=0;

ADCON1bits.SAMP = 0 ;

while(!ADCON1bits.DONE)
x[adr++]=ADCBUF0;

if(adr==20)
adr=0;
}
}

我要看 adr , i , x[] , 都沒辦法看到 ....
watch 視窗顯示 "Restricted Memory" .......
是我設定錯了嗎 ??



發表於: 2005/9/27 18:13
頂部


Re: PIC16F73 程式記憶體頁的切換問題
#14
中級會員
中級會員


參照:

Ryang 寫道:
切換 PAGE 改用MPASM 所提供的切換MARCO "PAGESEL"這樣比較好用。

pagesel Sub_ISR
goto Sub_ISR

or

call Sub_ISR


假設我PAGE0及PAGE1內的Lable會跳PAGE使用或在同一PAGE使用,是否可以每個Lable都加上pagesel?
若很不巧的,某個Lable剛好是開頭在PAGE0結束PAGE1的話,是否會有影響?

發表於: 2005/6/17 16:12
頂部


請教GOTO指令
#15
中級會員
中級會員


在寫PIC18時若使用:
GOTO $-1或GOTO $+1會出現下列的警告
Warning[226] ... Destination address must be word aligned
但若是改為GOTO $-2或GOTO $+2就不會出現警告。

(GOTO $-1 和 GOTO $-2)與(GOTO $+1 和 GOTO $+2)在View內的Program Memory來看是一樣的,都是GOTO到相同位置,這對程式有何影響?這若在dsPIC是否就會跳到陷阱裡?

映像中PIC12系列在使用GOTO $-1或GOTO $+1時並沒有這警告。

若我想要GOTO到下面第五行,是否應該要參考在View內的Program Memory,再來決定到底是要goto $+多少呢?(有的指令是一個指令週期,有的是兩個指令週期)

發表於: 2005/6/16 19:06
頂部


Re: 中斷所需時間
#16
中級會員
中級會員


謝謝,我在MID RANGE FAMILY找到了,第8.3節

從中斷回到主程式 2Tcy
就只是單純的RETFIE嗎

發表於: 2005/6/6 9:35
頂部


Re: 中斷所需時間
#17
中級會員
中級會員


PDF檔P.155
是這個嗎?
For external interrupt events, such as the INT pin or
PORTB change interrupt, the interrupt latency will be
three or four instruction cycles. The exact latency
depends when the interrupt event occurs. The latency
is the same for one or two-cycle instructions. Individual
interrupt flag bits are set regardless of the status of their
corresponding mask bit, PEIE bit or GIE bit.
好像是又好像不是......

發表於: 2005/6/5 13:56
頂部


中斷所需時間
#18
中級會員
中級會員


請問877A
由程式跳到中斷副程式(還沒紀錄進中斷前暫存器的狀態)需花多少時間

做完中斷副程式(已還原中斷前暫存器的狀態)跳回原程式需花多少時間

發表於: 2005/6/5 2:34
頂部


請教EUASRT
#19
中級會員
中級會員


EUSART支援RS-232、RS-485、LIN這三種協定
那麼這三種協定有何差異呢
各有哪些較為常見的應用

發表於: 2005/5/28 2:10
頂部


請問dsPIC的MEMORY
#20
中級會員
中級會員


有PROGRAM(FLASH),MEMORY(FLASH),EE,SRAM四種
PROGRAM(FLASH)是放我們寫的程式
EE應該是內部EE
SRAM是放程式執行中的變數嗎
MEMORY(FLASH)又是做什麼用的呢

發表於: 2005/5/25 23:08
頂部



« 1 (2) 3 4 5 »



:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------