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


Browsing this Thread:   1 Anonymous Users






Re: 請問是否有提供三角函數之指令
#6
版主
版主


查看用戶資訊
我無法複製出你的問題,看起來有可能是 C30 的 Compiler 是舊版本,以致於 MPLAB IDE 看不懂 COFF 檔案。

目前我用 MPLAB IDE v7.10 & MPLAB C30 v2.40的版本。

發表於: 2005/5/12 18:37
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問是否有提供三角函數之指令
#5
新會員
新會員


查看用戶資訊
只要多了

' command_X = cos((2*3.14*freqa*n)/fsample);'

就是有關三角函數的程式

馬上會出現'Failed to load C:\Documment and Settings\Administrator\My Documnets\6014\6014.cof'的錯誤

去除掉就正常了

Project沒健錯

請問要如何修正 謝謝回答^^

發表於: 2005/5/12 16:10
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問是否有提供三角函數之指令
#4
版主
版主


查看用戶資訊
三角函數的使用可以參考 dsPIC WIB workshop 練習六的教材,那裡有範例如何產生Sine tone.

看起來應該是你的Project建錯了,參考一下 dsPIC getting startter user's guide

http://ww1.microchip.com/downloads/en/DeviceDoc/70151a.pdf

發表於: 2005/5/12 11:24
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問是否有提供三角函數之指令
#3
新會員
新會員


查看用戶資訊
你好 我已經找到了 可是編寫程式編譯後 出現以下對話框
'Failed to load C:\Documment and Settings\Administrator\My Documnets\6014\6014.cof'

C:\Documment and Settings\Administrator\My Documnets\6014\<==是我存放程式的資料夾

請問是哪個步驟有問題 謝謝回答^^

以下是我加入三角函數之內容
//------------------------------------------
void PWM_X(float u_X)
{
OC5RS = sin( u_X ) ;
}

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


Re: 請問是否有提供三角函數之指令
#2
版主
版主


查看用戶資訊
你應該是指 MPLAB C18 是否有提供三角函數(sin,cos)吧!
請到底下網頁下載 : C18 Libraries Documentation 參考sin()函數的宣告與用法,輸入為經度(0~2*PI*f),輸出為 Float

http://www.microchip.com/stellent/idc ... me=en010014&part=SW006011

發表於: 2005/5/10 15:15
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請問是否有提供三角函數之指令
#1
新會員
新會員


查看用戶資訊
請問有提供三角函數(sin,cos)等之指令嗎? 如何宣告使用? 謝謝回答^^

發表於: 2005/5/10 14:40
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... ]

教育訓練中心

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