|
|||||||||||
| 技術(shù)交流 | 電路欣賞 | 工控天地 | 數(shù)字廣電 | 通信技術(shù) | 電源技術(shù) | 測(cè)控之家 | EMC技術(shù) | ARM技術(shù) | EDA技術(shù) | PCB技術(shù) | 嵌入式系統(tǒng) 驅(qū)動(dòng)編程 | 集成電路 | 器件替換 | 模擬技術(shù) | 新手園地 | 單 片 機(jī) | DSP技術(shù) | MCU技術(shù) | IC 設(shè)計(jì) | IC 產(chǎn)業(yè) | CAN-bus/DeviceNe |
哪里有S19文件的資料,讀寫S19的源代碼 |
| 作者:ambercctv 欄目:單片機(jī) |
謝謝 |
| 2樓: | >>參與討論 |
| 作者: 張明峰 于 2007/1/22 12:54:00 發(fā)布:
S19格式參考 This file is from the original comp.sys.m68k FAQ by Greq Hawley. [S-Record Format] Chaplin@keinstr.uucp (Roger Chaplin) reposted an article written by mcdchg!motmpl!ron (Ron Widell) that explained how MOTOROLA S-Records are formatted. This comes from a unix man page. No mention of which version of Unix is specified. This section of the FAQ is a bit LONG. An anonymous ftp archive is currently being sought. When one is found, the section will be placed in the archive. SREC(4) UNIX 5.0 (03/21/84) SREC(4) An S-record file consists of a sequence of specially formatted ASCII CHARacter strings. An S-record will be less than or equal to 78 bytes in length. The order of S-records within a file is of no significance and no particular order may be assumed. The general format of an S-record follow: +------------------//-------------------//-----------------------+ | type | count | address | data | CHECKSUM | +------------------//-------------------//-----------------------+ type A CHAR[2] field. These CHARacters describe the type of record (S0, S1, S2, S3, S5, S7, S8, or S9). count A CHAR[2] field. These CHARacters when paired and interpreted as a hexadecimal VALUE, DISPLAY the count of remaining CHARacter pairs in the record. address A CHAR[4,6, or 8] field. These CHARacters grouped and interpreted as a hexadecimal VALUE, DISPLAY the address at which the data field is to be loaded into MEMORY. The length of the field depends on the NUMBER of bytes necessary to hold the address. A 2-byte address uses 4 CHARacters, a 3-byte address uses 6 CHARacters, and a 4-byte address uses 8 CHARacters. data A CHAR [0-64] field. These CHARacters when paired and interpreted as hexadecimal VALUEs represent the MEMORY loadable data or descriptive information. CHECKSUM A CHAR[2] field. These CHARacters when paired and interpreted as a hexadecimal VALUE DISPLAY the least significant byte of the ones complement of the sum of the byte VALUEs represented by the pairs of CHARacters making up the count, the address, and the data fields. Each record is terminated with a LINE feed. If any additional or different record terminator(s) or delay CHARacters are needed during transmission to the target SYSTEM it is the responsibility of the transmitting program to provide them. S0 Record The type of record is 'S0' (0x5330). The address field is unused and will be filled with zeros (0x0000). The HEADER information within the data field is divided into the following subfields. mNAME is CHAR[20] and is the MODULE NAME. &n |
|
| 3樓: | >>參與討論 |
| 作者: ambercctv 于 2007/1/23 8:52:00 發(fā)布:
謝謝,張工,你那里有D-bug12嘛? 呵呵 |
|
| 4樓: | >>參與討論 |
| 作者: 張明峰 于 2007/1/23 17:16:00 發(fā)布:
沒有 抱歉,不知D-bug12為何物。 |
|
| 5樓: | >>參與討論 |
| 作者: ambercctv 于 2007/1/24 8:54:00 發(fā)布:
在FREESCALE的網(wǎng)站上68HC912B32的那頁上有 謝謝,沒有源代碼 |
|
|
|
| 免費(fèi)注冊(cè)為維庫電子開發(fā)網(wǎng)會(huì)員,參與電子工程師社區(qū)討論,點(diǎn)此進(jìn)入 |
Copyright © 1998-2006 m.58mhw.cn 浙ICP證030469號(hào) |