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


Browsing this Thread:   1 Anonymous Users




(1) 2 »


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#11
初級會員
初級會員


查看用戶資訊
板主 不好意思
我試了好多次 都沒辦法編譯成功 = =

請問我必須都將#include "p30fxxxx.h"
改為#include "p33FJ256GP710PS.h"嗎



我有嘗試於國外網站找尋資料
居然發現dsPIC_Stack_v.90.EXE
版本遠遠大於3.75 @@??
不過也是針對30F

我想要用EXPLORER16(dsPIC33FJ256GP710)
怎改都不行

可以幫幫我嗎 再提供更進一步的資訊
感激不盡 謝謝

發表於: 2007/3/28 21:11
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#10
版主
版主


查看用戶資訊
參考一下我在dsPIC33F是這樣設的:

for set the configuration data:

_FOSCSEL(FNOSC_PRIPLL); // Primary (XT, HS, EC) Oscillator with PLL
_FOSC(FCKSM_CSDCMD OSCIOFNC_OFF  POSCMD_XT);  // Clock Switching and Fail Safe Clock Monitor is disabled
// OSC2 Pin Function: OSC2 is Clock Output
// Primary Oscillator Mode: XT Crystal
_FWDT(FWDTEN_OFF);  // Watchdog Timer Enabled/disabled by user software
// (LPRC can be disabled by clearing SWDTEN bit in RCON register
// _FPOR(PWRTEN_OFF);      // Turn off the power-up timers.
_FGS(GCP_OFF);                

---------------------------------------------
For 
set the OSC with PLL:

// Configure Oscillator to operate the device at 40Mhz
// Fosc= Fin*M/(N1*N2), Fcy=Fosc/2
// Fosc= 8M*40(2*2)=80Mhz for 8M input clock
    
PLLFBD=38;                    // M=40
    
CLKDIVbits.PLLPOST=0;        // N1=2
    
CLKDIVbits.PLLPRE=0;        // N2=2
    
OSCTUN=0;                    // Tune FRC oscillator, if FRC is used

    
RCONbits.SWDTEN=0;            /* Disable Watch Dog Timer*/

//    BufferCount = 0 ;

    
while(OSCCONbits.LOCK!=1) {}; /* Wait for PLL to lock*/



發表於: 2007/3/21 18:03
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#9
初級會員
初級會員


查看用戶資訊
不好意思 板主
我嘗試自己改改看 但卻還是發生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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#8
版主
版主


查看用戶資訊
對不起想成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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#7
初級會員
初級會員


查看用戶資訊
謝謝板主的回覆
我從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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#6
版主
版主


查看用戶資訊
這都是程式與C18 compiler版本上 configuration 定義上的不同,檢查一下元程式逤用的版本,也可參考下列之說明:
http://ww1.microchip.com/downloads/en ... onfig_Settengs_51537a.pdf

發表於: 2007/3/16 17:12
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#5
初級會員
初級會員


查看用戶資訊
補上其中兩行編譯錯誤訊息
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.
參照:

stockton19 寫到:
請教一個問題
我用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 1:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#4
初級會員
初級會員


查看用戶資訊
請教一個問題
我用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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#3
初級會員
初級會員


查看用戶資訊
謝謝板主的回答
我於網路上找尋到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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請問有無EXPLORER16 網路傳輸的範例程式
#2
管理員
管理員


查看用戶資訊
如果你的 PICtail Plus 板子是 AC164123 , 那就可以搭配 Explorer-16 , 然後到以下網址下載 Microchip 提供的 TCP/IP Stacker.

MIcrochip TCP/IP Stack

發表於: 2007/3/2 16:42
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... ]

教育訓練中心

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