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


Browsing this Thread:   1 Anonymous Users






Re: PID的問題
#6
新會員
新會員


查看用戶資訊
這裡有一個範例
可以參考看看哪裡設定不一樣...
CE019 - Proportional Integral Derivative (PID) controllers & closed-loop control

http://ww1.microchip.com/downloads/en/DeviceDoc/CE019_PID.zip

來源網址
http://www.microchip.com/stellent/idc ... odeId=2629¶m=en533534

發表於: 2008/10/14 11:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PID的問題
#5
新會員
新會員


查看用戶資訊
我依照你的方式做~還是跟我PO的錯誤一樣!_!
再用DSP.h檔要有什麼特別注意的

發表於: 2008/10/13 23:08
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PID的問題
#4
新會員
新會員


查看用戶資訊
在專案的Linker Script中新增一的檔案*.gld
把下面程式碼複製下去就OK了(注意MCU型號,在此為p33fj64gp306)

SEARCH_DIR(..\..\..\..\lib)
SEARCH_DIR(..\..\..\..\support\gld)
INPUT(-ldsp)
INPUT(-lpic30)
INPUT(-lm)
INPUT(-lc)
INCLUDE p33fj64gp306.gld

發表於: 2008/10/13 11:38
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PID的問題
#3
新會員
新會員


查看用戶資訊
在哪個地方修改 看不太懂你寫的意思

發表於: 2008/10/11 13:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: PID的問題
#2
新會員
新會員


查看用戶資訊
#include "dsp.h"

修改*.gld如下(注意MCU編號)

SEARCH_DIR(..\..\..\..\lib)
SEARCH_DIR(..\..\..\..\support\gld)
INPUT(-ldsp)
INPUT(-lpic30)
INPUT(-lm)
INPUT(-lc)
INCLUDE p33fj64gp306.gld

發表於: 2008/10/2 16:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


PID的問題
#1
新會員
新會員


查看用戶資訊
請問我build後出現的這情況 有什麼解決方法可以過呢?
我是參考PID的程式

Program Memory Usage

section address length (PC units) length (bytes) (dec)
------- ------- ----------------- --------------------
.reset 0 0x4 0x6 (6)
.ivt 0x4 0xfc 0x17a (378)
.aivt 0x104 0xfc 0x17a (378)
.text 0x200 0x88 0xcc (204)
.text 0x288 0x52 0x7b (123)
.dinit 0x2da 0x1e 0x2d (45)
.isr 0x2f8 0x2 0x3 (3)

Total program memory used (bytes): 0x471 (1137) <1%


Data Memory Usage

section address alignment gaps total length (dec)
------- ------- -------------- -------------------
.icd 0x800 0x50 0x50 (80)
.xbss 0x850 0 0x6 (6)
.bss 0x856 0 0xa (10)
.data 0x860 0 0x6 (6)
.ybss 0x47fa 0 0x6 (6)

Total data memory used (bytes): 0x6c (108) <1%


Dynamic Memory Usage

region address maximum length (dec)
------ ------- ---------------------
heap 0 0 (0)
stack 0x866 0x3f94 (16276)

Maximum dynamic memory (bytes): 0x3f94 (16276)


pidww.o(.text+0x10): In function `setupPID':
C:\Users\user\Documents\guey\fira_rx _pwm_new\pidww.c:16: undefined reference to `PIDInit'
pidww.o(.text+0x28):C:\Users\user\Documents\guey\fira_rx _pwm_new\pidww.c:20: undefined reference to `PIDCoeffCalc'
pidww.o(.text+0x48): In function `calcPID':
C:\Users\user\Documents\guey\fira_rx _pwm_new\pidww.c:39: undefined reference to `PID'
Link step failed.

發表於: 2008/9/30 2:11
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

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

教育訓練中心

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