Re: 如何存1個2k的資料在rom中?
|
||||
---|---|---|---|---|
資深會員
|
參照:
1. 板主大大有令,標題請加註 CCS 2. CCS 有 write_program_eeprom(),read_program_eeprom(),等兩個函數以及 #rom 指令用於 Prog_EE 的讀寫與燒錄。用 Help -> index ->... 自己查看看用法與範例吧 3. 部分解答在此,請耐心看完這十幾篇帖子 http://www.microchip.com.tw/modules/n ... .php?topic_id=331&forum=1
發表於: 2004/10/26 23:28
|
|||
|
Re: 請問可以在dsPIC上用PIC的編程器嗎?如果不行,那dsPIC的編程器很貴嗎?
|
||||
---|---|---|---|---|
資深會員
|
如果你說的 編程器 是 Programmer ,則用 ICD2 就好, 不貴的
發表於: 2004/10/26 11:33
|
|||
|
Re: can bus
|
||||
---|---|---|---|---|
資深會員
|
參照:
http://www.ccsinfo.com/canbusdvkt.shtml 拿出信用卡,刷下去,一星期後就可以交報告了,呵呵。 或是這個 http://www.microchip.com.tw/material.htm Microchip 台灣分公司有講義,有實驗板,有範例程式, 拿起電話,call Microchip 台灣分公司,三天就交卷啦。 CAN,不就是罐頭嗎,開罐就喝,喝一杯喔
發表於: 2004/10/26 0:42
|
|||
|
Re: 有人要 AN833 ?
|
||||
---|---|---|---|---|
資深會員
|
參照:
tcp 和 udp 是可以共存的。我不會用 AN833,我只知道 AN833 可以同時開 253 個 socket。 前兩天把我的程式修改了一下,每個封包 1.4 kB 時的測試結果是 ... HTTP 極速:50 kB/sec TCP 極速:75 kB/sec UDP 極速:300 kB/sec 操到極限啦 嗚嗚
發表於: 2004/10/23 0:57
|
|||
|
Re: DemoBoard 1.1好像壞了
|
||||
---|---|---|---|---|
資深會員
|
參照:
該不會是這個吧 ... http://www.goldenchip.com.cn/gdbbs/di ... melimit=&operator=&page=1
發表於: 2004/10/21 0:29
|
|||
|
Re: CCS Compiler 3.074 & MPLAB 6.62版問題
|
||||
---|---|---|---|---|
資深會員
|
參照:
版本太舊,無法設定! 版本太舊,功能差太多! 版本太舊,缺陷(蟲?)一堆! 換新版吧 夠詳盡嗎? Best wishes
發表於: 2004/10/21 0:23
|
|||
|
Re: CCSC & ICD2燒錄格式 ???
|
||||
---|---|---|---|---|
資深會員
|
參照:
直接用 write_eeprom() 就不必去管 MPLAB 或燒錄器的版本問題啦,再說,你現在可以用,那天他們改版就又死啦 #rom 0xF00000 能寫到 DataEE 這秘密功能要依賴 MPLAB,還是少用為妙,還有,考慮一下移植性吧,換用 18F4620 之後還會對嗎? 多保重 又,CCS 的 write_eeprom() 是用 inline 的方式,打包一下 my_write_eeprom(addr,x) { write_eeprom(addr,x);} 多次調用時可節省許多程式空間
發表於: 2004/10/20 14:42
|
|||
|
Re: CCSC & ICD2燒錄格式 ???
|
||||
---|---|---|---|---|
資深會員
|
這樣寫就可以用 MPLAB 讀 HEX 燒 DataEE 啦
#include <18F452.H> #rom 0xF00000 ={0x0201, 0x0403} #rom 0xF00004 ={0x0605, 0x0807} // 18F 的程式碼以 16 bit 的 word 為單位 void main() { int8 x; x=1; } 仔細看這句說的 words ... address is a ROM word address, list is a list of "words" separated by commas HEX 檔 :020000040000FA :1000000002EF00F0F86AD09EEA6AE96AC180C18214 :0A001000C184C196010E066E0300C4 :0200000400F00A :080000000102030405060708D4 // 成了吧 :00000001FF ;PIC18F452 #rom 0xF00000 竟然會寫到 DataEE去,Manual 沒寫,你去哪裡學來這招的? 有夠厲害!
發表於: 2004/10/20 1:59
|
|||
|
Re: CCSC & ICD2燒錄格式 ???
|
||||
---|---|---|---|---|
資深會員
|
參照:
傷腦筋 #rom 0xF00000 編出來的是在 HEX 檔裡,燒到 Program EE 去,看看 HEX 檔就知道 read_eeprom() 讀的是 Data EE,挖哩,怎能讀到 Program EE?該用 write_eeprom() 寫到 Data EE 才對。 Help -> index -> #rom 看看線上說明吧 Help -> index -> write_eeprom Help -> index -> write_program_eeprom CCS 無法對 Data EE 做初始化,若要用 ICD2 燒進 Data EE則要用 MCH 檔,開 MPLAB,View -> EEPROM -> 滑鼠移到 EEPROM 子視窗上你要的位址,點右鍵,Import Table -> MCH 檔或 TXT 檔均可,格式範例如下 00 00 07 00 00 07 8C 00 00 00 00 50 04 1F 0D 61 67 75 65 73 74 5F 5F 70 6C 61 79 69 6E 67 01 00 我就只會這招啦,知道其他招數的朋友們再教一下吧,謝謝囉 -------------------------------- #rom 0xF000={1,2,3,4} 的效果如下 -------------------------------- #include <18F452.H> #rom 0xF000={1,2,3,4} void main() { int8 x; x=1; } 變成 HEX 檔 ... :020000040000FA :1000000002EF00F0F86AD09EEA6AE96AC180C18214 :0A001000C184C196010E066E0300C4 :08F000000100020003000400FE <--#rom ... 放在這裡 :00000001FF ;PIC18F452 燒進 Program EE 囉,呵呵 #ROM Syntax: #rom address = {list}; Elements: address is a ROM word address, list is a list of words separated by commas Purpose: Allows the insertion of data into the .HEX file. In particular, this may be used to program the '84 data EEPROM, as shown in the following example. Note that if the #ROM address is inside the program memory space, the directive creates a segment for the data, resulting in an error if a #ORG is over the same area. The #ROM data will also be counted as used program memory space. Examples: #rom 0x2100={1,2,3,4,5,6,7,8} -------------- po 了 41 篇之後,終於從"勇於發言"昇級為"熱心公益"啦, 喝杯咖啡,慶祝一下囉
發表於: 2004/10/19 23:18
|
|||
|