:::

論壇索引


Board index » All Posts (doubletime)




狀態改變 cn 設定
#61
高級會員
高級會員


請問狀態改變一定需要設定成 rise_edge 和 fall_edge 都會產生中斷嗎?
小弟只想要 其中一種產生中斷,不知道何處可以找得到如何設定的資料,謝謝

小弟只會把狀態改變設成enable
void InitCN(void)
{
CNEN1 = 0x0002; // Enable CN2 IFS0bits.CNIF = 0; // clear CNIF
IEC0bits.CNIE = 1; // enable CN interrupt
return;
}

發表於: 2007/9/3 15:17
頂部


debug出現的問題
#62
高級會員
高級會員


在debug模式下,使用ICD2
原先變數使用int 階正常 也可讀出變數的值,但變數改成long 的型式後變數出現restricted memory 為何會變成如此,因為整個程式運作都出錯了,想看變數裡的值都不行
謝謝

發表於: 2007/8/16 20:27
頂部


compiler 後出現的問題
#63
高級會員
高級會員


我使用dsPIC30F6010A,雖然程式可以使用,但是會出現不少警告,不知道這是什麼樣的警告,因為程式是從dsPIC30F4011轉過來的,在4011下可以正常使用也不會出現警告的字樣,另外我使用的是MPLAB V7.51 ,C30 V3.0

謝謝

以下為警告文字

micromouse_master_6010a.c: In function '_U1RXInterrupt':
micromouse_master_6010a.c:71: warning: PSV model not specified for '_U1RXInterrupt';
assuming 'auto_psv' this may affect latency
micromouse_master_6010a.c: In function '_U1TXInterrupt':
micromouse_master_6010a.c:91: warning: PSV model not specified for '_U1TXInterrupt';
assuming 'auto_psv' this may affect latency
micromouse_master_6010a.c: In function '_U2TXInterrupt':
micromouse_master_6010a.c:96: warning: PSV model not specified for '_U2TXInterrupt';
assuming 'auto_psv' this may affect latency
micromouse_master_6010a.c: In function '_U2RXInterrupt':
micromouse_master_6010a.c:102: warning: PSV model not specified for '_U2RXInterrupt';
assuming 'auto_psv' this may affect latency
micromouse_master_6010a.c: In function '_T1Interrupt':
micromouse_master_6010a.c:162: warning: PSV model not specified for '_T1Interrupt';
assuming 'auto_psv' this may affect latency

發表於: 2007/8/15 10:03
頂部


矩陣初始化
#64
高級會員
高級會員


請問我有1個矩陣為a[256]; 假設我想讓a陣列內的內容皆為-1,我只會最笨的方法
int i;
for (i=0 ; i<256; i++)
a[i]=-1;


本來想用DSP的矩陣相乘,但初始值是0,無法使用
不知道有何比較快速的方式可以讓a的陣列內容皆為-1
謝謝

發表於: 2007/7/11 10:38
頂部


eeprom的用法
#65
高級會員
高級會員


請教有無寫入陣列的eeprom的範例
因為聽別人說寫陣列和個別寫入好像不太一樣
謝謝

發表於: 2007/6/25 22:38
頂部


關於申請sample的問題
#66
高級會員
高級會員


您好
小弟我和我同學申請了sample,可是我同學的有貴公司打電話確認,並且已經送達了,但是我還未收到電話確認,且未送達,請問這該怎麼處理?
謝謝

發表於: 2007/3/19 11:50
頂部


Re: 關於dsPICDEM MCLV有問題
#67
高級會員
高級會員


謝謝
今天我去microchip上過教育課程了
也會操作了
再次感謝

發表於: 2007/1/23 22:32
頂部


關於dsPICDEM MCLV有問題
#68
高級會員
高級會員


請教一下
小弟今天剛拿到dsPICDEM MCLV 的開發板和BLDC
可是內附的sensorless 的source code無法compiler,另外就是an992的應用是說用dsPIC2010就可以使用了,可是怎麼看到裡面的程式註解是要用dsPIC4012或是dsPIC3010,不知道這樣該如何處理,這讓小弟很困擾
謝謝

發表於: 2007/1/17 12:29
頂部


Re: ADC部份出現問題...囧
#69
高級會員
高級會員


您有單純試過uart了嗎?
話說您要送資料出去怎麼裡面還有寫讀uart?

你確定你把rx 的中斷關掉可以work? 那怎麼會有rx的中斷棋標

不太懂

我想這是您該自己做的功課 ,先確認好uart正常work再把adc加進去吧,這樣要debug也比較方便

發表於: 2006/12/14 21:46
頂部


Re: 關於4011的LCD相關設定
#70
高級會員
高級會員


void sitoa( unsigned char The_Number, unsigned char *buff)



void sitoa( unsigned int The_Number, unsigned char*buff)

如果沒記錯,看來是這裡有錯
char從0~255,unsigned 0~65536

發表於: 2006/12/12 4:45
頂部



« 1 ... 4 5 6 (7) 8 »



:::

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... ]

教育訓練中心

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