• 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: 在DS70102H.pdf的第52頁中有以下一段文字說明,請問Unit ID如何寫在程式中?
#4
版主
版主


查看用戶資訊
Programming Specification 指出 Unit ID 從 0x8005C0 ~ 0x8005FF 共 32 x 24-bit, 實際在 H 檔裡只定義了前面4個共 4 x 16-bit 可以使用。其餘的ID位址目前無法使用。

發表於: 2007/8/3 14:57
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 在DS70102H.pdf的第52頁中有以下一段文字說明,請問Unit ID如何寫在程式中?
#3
高級會員
高級會員


查看用戶資訊
The dsPIC30F devices contain 32 instructions of Unit ID.

_FUID0(1357);
_FUID1(0xabcd);
_FUID2(0xaa55);
_FUID3(4);

以上應該不到32 instructions of Unit ID

所以p30F4011.h是不是有問題?
是否應該有_FUID4(...); 等等好幾個

發表於: 2007/8/3 13:55
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: 在DS70102H.pdf的第52頁中有以下一段文字說明,請問Unit ID如何寫在程式中?
#2
版主
版主


查看用戶資訊
Unit ID 有兩種方式可以設定,起始位址在 0x8005C0 (30F4011)
1. 直接在 MPLAB IDE --> Configuration Bits --> Unit ID 下直接輸入ID。

2. 程式裡直接輸入,利用H檔所提供的 MACRO
"_FUID0(x)" 來填入 ID 值,使用方式如下 :
//---------------------------------------------------------------------------
// 請參考此處有關 Configuration bits 於程式中直接宣告的方式
// 更詳細的參數列表請參考 p30F4011.h 
//---------------------------------------------------------------------------
       
_FOSC(CSW_FSCM_OFF XT);        //    XT oscillator, Failsafe clock off
       
_FWDT(WDT_OFF);                  //    Watchdog timer disabled
      
_FBORPOR(PBOR_OFF MCLR_EN);    //    Brown-out reset disabled, MCLR reset enabled
       
_FGS(CODE_PROT_OFF);             //    Code protect disabled

_FUID0(1357);
_FUID1(0xabcd);
_FUID2(0xaa55);
_FUID3(4);


編譯完成後打開 Unit ID 視窗就可以看到 ID 值了。

發表於: 2007/8/3 9:25
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


在DS70102H.pdf的第52頁中有以下一段文字說明,請問Unit ID如何寫在程式中?
#1
高級會員
高級會員


查看用戶資訊
The dsPIC30F devices contain 32 instructions of Unit ID.
These are located at addresses 0x8005C0 through 0x8005FF.
The Unit ID can be used for storing product information such as
serial numbers, system manufacturing dates,
manufacturing lot numbers and other such application-specific information.

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

教育訓練中心

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