Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
版主
|
參考一下我在dsPIC33F是這樣設的:
for set the configuration data:
發表於: 2007/3/21 18:03
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
初級會員
|
不好意思 板主
我嘗試自己改改看 但卻還是發生ERROR 一堆的 = = 能否說明詳細點 ************************** Setting configuration fuses using macros: ========================================== Macros are provided which can be used to set device configuration registers: For e.g., to set the FOSC configuration register using a macro above, the following line of code can be pasted before the beginning of C source code. _FOSC(CSW_FSCM_ON & EC); This would enable the external clock with the PLL set to 16x and further, enable clock switching and failsafe clock monitoring. Similarly, to set the FPOR configuration register, paste the following : _FPOR(PWRT_ON & PWRT_64); This would enable the Power-up Timer and initialize the Power-up timer to 64 milliseconds. Given below, is a complete list of settings valid to each of the configuration registers: (Paste the ones relevant to your application before the beginning of C source code.) 是要我照著上面說明 做嗎??? 謝謝
發表於: 2007/3/21 2:49
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
版主
|
對不起想成C18了,這些 COnfiguration的設定就在
C:\Program Files\Microchip\MPLAB C30\support\h\p33f256gp710.h 檔裡的最後面,如下所示: #define _FOSCSEL(x) __attribute__((section("__FOSCSEL.sec,code"))) int _FOSCSEL = (x); /* ** Only one invocation of FOSCSEL should appear in a project, ** at the top of a C source file (outside of any function). ** ** The following constants can be used to set FOSCSEL. ** Multiple options may be combined, as shown: ** ** _FOSCSEL( OPT1_ON & OPT2_OFF & OPT3_PLL ) ** ** Oscillator Source Selection: ** FNOSC_FRC Fast RC oscillator ** FNOSC_FRCPLL Fast RC oscillator w/ divide and PLL ** FNOSC_PRI Primary oscillator (XT, HS, EC) ** FNOSC_PRIPLL Primary oscillator (XT, HS, EC) w/ PLL ** FNOSC_SOSC Secondary oscillator ** FNOSC_LPRC Low power RC oscillator ** FNOSC_FRCDIV16 Fast RC oscillator w/ divide by 16 ** FNOSC_LPRCDIVN Low power Fast RC oscillator w/divide by N
發表於: 2007/3/16 17:30
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
初級會員
|
謝謝板主的回覆
我從DEMOMAIN看到 * Processor:PIC18, PIC24F, PIC24H, dsPIC30F, dsPIC33F * Complier: Microchip C18 v3.02 or higher * Microchip C30 v2.01 or higher 似乎可以支援我的硬體哩 不過我硬體是33FJ256GP710 請問 如果要改Configuration 會很難嗎 謝謝
發表於: 2007/3/16 17:23
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
版主
|
這都是程式與C18 compiler版本上 configuration 定義上的不同,檢查一下元程式逤用的版本,也可參考下列之說明:
http://ww1.microchip.com/downloads/en ... onfig_Settengs_51537a.pdf
發表於: 2007/3/16 17:12
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
初級會員
|
補上其中兩行編譯錯誤訊息
C:\Program Files\Microchip\MPLAB C30\bin\pic30-coff-ld.exe: Error: object C:\MCHPTCPStack 3.75\Source\Announce.o was created for the 33FJ256GP710, which is not instruction set compatible with the target 24FJ128GA010. C:\Program Files\Microchip\MPLAB C30\bin\pic30-coff-ld.exe: Error: object C:\MCHPTCPStack 3.75\Source\ARP.o was created for the 33FJ256GP710, which is not instruction set compatible with the target 24FJ128GA010. 參照:
發表於: 2007/3/16 1:05
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
初級會員
|
請教一個問題
我用STACK3.75內的DEMO程式下去編譯 出現以下錯誤 MainDemo.c:178: error: `FNOSC_PRIPLL' undeclared here (not in a function) MainDemo.c:179: error: `OSCIOFNC_OFF' undeclared here (not in a function) MainDemo.c:179: error: `POSCMD_XT' undeclared here (not in a function) MainDemo.c:180: error: `FWDTEN_OFF' undeclared here (not in a function) ---------------------------------------------- DEVICE : EXPLORER16 (dsPIC33FJ256GP710)+AC164123 MPLAB IDE v7.40編譯器 請問有任何建議嗎 很謝謝你
發表於: 2007/3/16 0:48
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
初級會員
|
謝謝板主的回答
我於網路上找尋到EXPLORER16的DEMO CODEC 我按照PDF寫的流程操作 但於編譯 發生錯誤 main_rtc.c:49: error: `FNOSC_PRIPLL' undeclared here (not in a function) main_rtc.c:50: error: `FCKSM_CSDCMD' undeclared here (not in a function) main_rtc.c:50: error: `OSCIOFNC_OFF' undeclared here (not in a function) main_rtc.c:50: error: `POSCMD_XT' undeclared here (not in a function) main_rtc.c:51: error: `FWDTEN_OFF' undeclared here (not in a function) 請問有人知道是什麼回事嗎 這範例 我INCLUDE超多C H檔 怪 謝謝 /////////////// 我剛把這幾行有ERROR的MASK起來 可以編譯了 且可以正確利用ICD2 PROGRAM 但功能是什麼 = =按都沒反應哩 有人知道嗎 我看的PDF是"EXPLORER16 開發板用戶指南" * * ADDITIONAL NOTES: * * Simple demo program showing a RTC and ADC conversion on the LCD * DMA code is included here but not fully tested. * * C30 Optimization Level: -O1 * ///////////////////// 對不起 我是笨蛋 沒仔細看PDF .... PDF裡面有寫了 = = 謝謝閱讀 加油中
發表於: 2007/3/6 22:54
|
|||
|
Re: 請問有無EXPLORER16 網路傳輸的範例程式
|
||||
---|---|---|---|---|
管理員
|
如果你的 PICtail Plus 板子是 AC164123 , 那就可以搭配 Explorer-16 , 然後到以下網址下載 Microchip 提供的 TCP/IP Stacker.
MIcrochip TCP/IP Stack
發表於: 2007/3/2 16:42
|
|||
|