• 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: 請教高手關於p24hj64時脈的設定
#8
高級會員
高級會員


查看用戶資訊
重新檢查過了~TQFP轉接版沒問題

在請教一下版主~晶片有微溫是正常的嗎~?

很怕在焊接的過程造成晶片受損~!!

發表於: 2007/7/6 13:59
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教高手關於p24hj64時脈的設定
#7
版主
版主


查看用戶資訊
TQFP 轉接板沒焊好,用放大鏡檢查一下。

發表於: 2007/7/5 20:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教高手關於p24hj64時脈的設定
#6
高級會員
高級會員


查看用戶資訊
有檢查過了~
現在的狀況適時好時壞~
會是電路的問題嗎~?
電路是洞洞版+TQFP轉接版~~

發表於: 2007/7/5 17:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教高手關於p24hj64時脈的設定
#5
版主
版主


查看用戶資訊
之前的程式以用在很多的範例都妹有問題,要不要檢查一下 configuration 的設定。

發表於: 2007/7/5 16:33
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教高手關於p24hj64時脈的設定
#4
高級會員
高級會員


查看用戶資訊
版主我試過了~
不管是使用外部crystal或內部RC~還是會有之前的問題~?

發表於: 2007/7/4 23:05
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教高手關於p24hj64時脈的設定
#3
高級會員
高級會員


查看用戶資訊
謝謝版主~
我試試看~

^^

發表於: 2007/7/4 16:36
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 請教高手關於p24hj64時脈的設定
#2
版主
版主


查看用戶資訊
我是這樣寫的 :

// Internal FRC Oscillator
_FOSCSEL(FNOSC_FRCPLL ); // FRC Oscillator with PLL
_FOSC(FCKSM_CSDCMD & OSCIOFNC_OFF & POSCMD_NONE);
// Clock Switching and Fail Safe Clock Monitor is disabled
// OSC2 Pin Function: OSC2 is Clock Output
// Primary Oscillator Mode: Disabled


_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); // Disable Code Protection

void Clear_DMA_Buffer(void);
extern int _DMA_BASE;

int main(void)

{

// Configure Oscillator to operate the device at 73.7Mhz

// Fosc= Fin*M/(N1*N2), Fcy=Fosc/2
// Fosc= 7.37M*40(2*2)=73.7Mhz for 7.37MHz input clock
PLLFBD=38; // M=40, PLLFBD= M - 2 = 38
CLKDIVbits.PLLPOST=0; // N1=2
CLKDIVbits.PLLPRE=0; // N2=2
OSCTUN=0; // Tune FRC oscillator, if FRC is used

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

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

發表於: 2007/7/4 14:39
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請教高手關於p24hj64時脈的設定
#1
高級會員
高級會員


查看用戶資訊
當我只設定PLLFBD<PLLDIV>時,其餘為預設值,此時fcy=80MIPS,系統很正常;一旦修改CLKDIV<PLLPOST,PLLPRE>這兩個參數其中一個時,除錯過程中會發生PC值變為"0".

以下是我的程式:
int main(void)
{
PLLFBD = 0x001E;
CLKDIVbits.PLLPOST = 0; //(1)
CLKDIVbits.PLLPRE = 0; //(2)
while(_LOCK!=1){}; //(3)
...
...
...
}

如果少掉(1)(2)(3)的步驟-->正常
如果多上(1)(2)的步驟-->出現上述問題
加上(1)(2)(3)的步驟-->RESET多次可正常動作

請問各位高手是否我設定的方式錯誤~?

tools:MPLAB IDE V7.61a+C30+ICD2

小弟是p24hj新手~請多指教~!!

發表於: 2007/6/30 14:52
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... ]

教育訓練中心

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