View Single Post
Old 19-10-2008, 01:31 AM   #5
toanlieu
Nhập môn đệ tử
 
Tham gia ngày: Jul 2008
Bài gửi: 7
:
Anh Nam ơi giúp em với , em đang lập trình cho dsPIC30F2010 bằng MPLAB C30 . Em lập trình không có lỗi tạo ra được file .hex rồi , Nhưng khi nạp bằng PICkit2 thì nó cứ báo lỗi "Warning : some configuration words not in hex file .Ensure default values above right are acceptable " . anh giúp em với em chịu không thể tìm ra được tại sao .
đây là code em viết :

/***** This is a dsPIC30F2010. */
#include <p30f2010.h>
// #include <p30f4012.h>
#include <limits.h>
#include <dsp.h>

/***** Set the configuration fuses. */
/* Use crystal oscillator, using a phased-lock loop to multiply
the clock speed by 16 */
_FOSC(CSW_FSCM_OFF & XT_PLL16);
/* Disable the watchdog timer */
_FWDT(WDT_OFF);
/* Set brownout limit to 2.0 volts, startup timer to 64 ms,
enable the reset pin */
_FBORPOR(PBOR_ON & BORV_20 & PWRT_64 & MCLR_EN);
/* No code protection needed */
_FGS(CODE_PROT_OFF);
/* Use an MPLAB ICD 2 as the debugger,
use the programming lines as the debug ports */
_FICD( ICS_NONE);


int main(void)
{
int i;
for(i=0;i<=1000;i++);
return 1;
}
toanlieu vẫn chưa có mặt trong diễn đàn   Trả Lời Với Trích Dẫn