• slider image 442
  • slider image 509
  • slider image 510
  • slider image 511
  • slider image 512
  • slider image 513
  • slider image 514
  • slider image 515
:::


Browsing this Thread:   1 Anonymous Users






Re: pic16f877寫大table出現的問題
#3
版主
版主


查看用戶資訊
PIC16F87x 有專用的讀取 Flash Memory 的暫存器(EEADRH:EEADR) 總共可以看到64K的範圍。
只要將 Table Low byat address 給 EEADR,Table hHigh Bytr address 給 EEADRH , 控制 EECON1 的 EEPGD & RD 就可以將資料讀入 EEDATA & EEFATH 暫存器。 詳細程式請看 PIC16F877 data sheet 4.4 Reading the FLASH Program Memory

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


Re: pic16f877寫大table出現的問題
#2
資深會員
資深會員


查看用戶資訊
這樣寫
    table_index   :2
look_table   
    movlw  high  table_
    addwf  high  table_index,w
    movwf  pclath
    movlw  low   table_
    addwf  low   table_index,w
    skpnc
    incf  pclath,f
    movwf  pcl
table_
    jmp   a
    jmp   b
    jmp   c
    .
    .
    .
    .
    .
    jmp  xx

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


pic16f877寫大table出現的問題
#1
新會員
新會員


查看用戶資訊
請問一下
我使用16f877寫一個組合語言table使用上是ok
但我的資料如果大於255就沒法call了就要再寫一個新的table
有沒有方法可以寫一個超過255個的組合語言的大table

發表於: 2007/2/7 19:01
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... ]

教育訓練中心

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