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


Browsing this Thread:   1 Anonymous Users






Re: 請教:\tpsect config,class=CONFIG,delta是什麼意思?
#2
資深會員
資深會員


查看用戶資訊
這段好像不是一般user需要修改的東西,對吧。

這是用在 C 裡的,精確的意思,請查一下該程式所使用的 C 的 Manual。
當然,配合一下基本的 C 知識,查起來可能方便些,例如字串裡的 \t = tab 字元,這樣應該就比較好看出它的意思了...

這裡有些東西,要不要逛逛看?
http://www.google.com.tw/search?compl ... &q=%5Ctpsect+config&meta=

發表於: 2007/5/9 10:26
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


請教:\tpsect config,class=CONFIG,delta是什麼意思?
#1
新會員
新會員


查看用戶資訊
哪位元大蝦幫我解釋這段程式?看了半天沒有看明白,從來就沒有見過這樣的彙編指令
\tpsect config,class=CONFIG,delta=2
不勝感激~~
#define __CONFIG(x) asm("\tpsect config,class=CONFIG,delta=2");\
asm("\tdw "___mkstr(x))

// Programs the lower 4 bits per ID location
#define __IDLOC(w) asm("\tpsect idloc,class=IDLOC,delta=2");\
asm("\tglobal\tidloc_word"); \
asm("idloc_word"); \
asm("\tirpc\t__arg," ___mkstr(w)); \
asm("\tdw 0&__arg&h"); \
asm("\tendm")

// Variant of IDLOC for those devices that permit programming of the lower 7 bits per ID location
#define __IDLOC7(a,b,c,d) asm("\tpsect idloc,class=IDLOC,delta=2");\
asm("\tglobal\tidloc_word"); \
asm("idloc_word"); \
asm("\tdw 0x7f&"___mkstr(a)); \
asm("\tdw 0x7f&"___mkstr(b)); \
asm("\tdw 0x7f&"___mkstr(c)); \
asm("\tdw 0x7f&"___mkstr(d))
#if EEPROM_SIZE > 0
#define __EEPROM_DATA(a, b, c, d, e, f, g, h) \
asm("\tpsect eeprom_data,class=EEDATA,delta=2,space=2"); \
asm("\tdb\t" ___mkstr(a) "," ___mkstr(b) "," ___mkstr(c) "," ___mkstr(d) "," \
___mkstr(e) "," ___mkstr(f) "," ___mkstr(g) "," ___mkstr(h))
#endif


發表於: 2007/5/8 23:08
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... ]

教育訓練中心

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