Microsoft Word - Data IO CS Calculate Method AppNote.doc

Similar documents
1.ai

K301Q-D VRT中英文说明书141009

Important Notice SUNPLUS TECHNOLOGY CO. reserves the right to change this documentation without prior notice. Information provided by SUNPLUS TECHNOLO

Microsoft Word - template.doc

K7VT2_QIG_v3

Product Type Batteries (only) Circuit Breatkers & Load Protection Connection Devices Contactors Ethernet Switches, Stratix Switches I/O Modules; PLC N

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

epub83-1

Chn 116 Neh.d.01.nis

Product Type Batteries (only) Circuit Breakers & Load Protection Connection Devices Contactors Ethernet Switches, Stratix Switches I/O Modules; PLC Ne

Lorem ipsum dolor sit amet, consectetuer adipiscing elit

<4D F736F F D C4EAC0EDB9A4C0E04142BCB6D4C4B6C1C5D0B6CFC0FDCCE2BEABD1A15F325F2E646F63>

Guide to Install SATA Hard Disks

ch_code_infoaccess

AUCWA0501p00A.indd

CANVIO_AEROCAST_CS_EN.indd

2/80 2

Microsoft PowerPoint - STU_EC_Ch08.ppt

入學考試網上報名指南

目 錄 頁 數 校 訓.. 第 1 頁 辦 學 使 命.. 第 1 頁 抱 負.. 第 1 頁 學 校 願 景.. 第 2 頁 我 們 的 現 況.. 第 3 頁 學 校 關 注 事 項 ( 年 度 )... 第 4 頁 三 年 周 期 發 展 計 劃 ( 年 度

03施琅「棄留臺灣議」探索.doc

Windows XP

1

~ 10 2 P Y i t = my i t W Y i t 1000 PY i t Y t i W Y i t t i m Y i t t i 15 ~ 49 1 Y Y Y 15 ~ j j t j t = j P i t i = 15 P n i t n Y

<4D F736F F D205F FB942A5CEA668B443C5E9BB73A740B5D8A4E5B8C9A552B1D0A7F75FA6BFB1A4ACFC2E646F63>

Microsoft Word - Final Exam Review Packet.docx

PowerPoint Presentation

Logitech Wireless Combo MK45 English

ap15_chinese_interpersoanal_writing_ _response

旅 句 良 年 理 了 來 不 不 更 更 說 識 更 樓 歷 練 靈 旅 論 不 了 契 諒 老 老 老 不 勵 老 不 良 論 漏 不 老 老 不 勵 不 了 了 老 論 利 行 老 見 不 見 更 老 玲 歷 老 料 理

幻灯片 1

唐彪《讀書作文譜》述略

:

2 2 3 DLight CPU I/O DLight Oracle Solaris (DTrace) C/C++ Solaris DLight DTrace DLight DLight DLight C C++ Fortran CPU I/O DLight AM

Preface This guide is intended to standardize the use of the WeChat brand and ensure the brand's integrity and consistency. The guide applies to all d

高雄市左營國民小學八十九學年度第一學期一年級總體課程教學進度表

untitled

Finale [ R I'm Part of the Rainbow.MUS]

海 南 冯 琳 峰 海 南 省 锅 炉 压 力 容 器 与 特 种 设 备 检 验 所 海 南 省 定 安 县 白 蒙 路 47 号 信 XC 内 蒙 古 冯 磊 赤 峰 市 特 种 设 备 检 验 所 内 蒙 古 赤 峰 市 红 山 区 八 里 铺 油 库 路

1 引言

曹美秀.pdf

%

Microsoft PowerPoint - IAS 21 - IFRS宣導會.pptx

Vol. 37


1 2

摘 要 張 捷 明 是 台 灣 當 代 重 要 的 客 語 兒 童 文 學 作 家, 他 的 作 品 記 錄 著 客 家 人 的 思 想 文 化 與 觀 念, 也 曾 榮 獲 多 項 文 學 大 獎 的 肯 定, 對 台 灣 這 塊 土 地 上 的 客 家 人 有 著 深 厚 的 情 感 張 氏 於

<4D F736F F D20312E5FA473AEFCB867AED5AA605FBB50B04BCFC8AABAAFABB8DCACE3A8732E646F63>

Bus Hound 5

國立中山大學學位論文典藏.PDF

WTO

68369 (ppp quickstart guide)


通 用 申 请 填 写 流 程 简 图 首 次 登 陆 已 注 册 用 户 登 录 ( 最 终 提 交 前 可 无 限 次 登 录 修 改 ) 注 册 账 户 College Search 中 添 加 New York University Common App 填 写 ( 包 含 两 篇 写 作

神 学 家 陶 恕 博 士 曾 经 相 当 感 叹 的 说, 数 以 百 万 计 的 我 们 生 活 在 福 音 既 得 之 地, 各 自 都 有 所 属 的 教 会, 也 努 力 去 传 基 督 教 的 信 仰, 但 可 悲 的 是, 或 许 终 其 一 生, 都 未 曾 认 真 思 想 过 神

What You Can Find with SciFinder Scholar SciFinder Scholar Area Information Available in SciFinder Scholar Document Title Information Author/inventor

版本历史 { } 改名 原名 创业者的菩萨戒 后经一位善知识 指点 从 版开始 改为 创业者的菩萨行 更利于传播 感谢 { } 源起 本电子书的是本人 多年来筛选数

/ / (FC 3)...

TX-NR3030_BAS_Cs_ indd

IP Access Lists IP Access Lists IP Access Lists

186 臺 灣 學 研 究. 第 十 三 期 民 國 一 一 年 六 月 壹 前 言 貳 從 廢 廳 反 對 州 廳 設 置 到 置 郡 運 動 參 地 方 意 識 的 形 成 與 發 展 肆 結 論 : 政 治 史 的 另 一 個 面 相 壹 前 言 長 期 以 來, 限 於 史 料 的 限 制

國 立 政 治 大 學 教 育 學 系 2016 新 生 入 學 手 冊 目 錄 表 11 國 立 政 治 大 學 教 育 學 系 博 士 班 資 格 考 試 抵 免 申 請 表 論 文 題 目 申 報 暨 指 導 教 授 表 12 國 立 政 治 大 學 碩 博 士 班 論

2001 年 1 月 8 日 乌 克 兰 常 驻 联 合 国 代 表 团 临 时 代 办 给 秘 书 长 的 信 的 附 件 2000 年 12 月 15 日 乌 克 兰 总 统 列 奥 尼 德 库 奇 马 先 生 阁 下 在 关 闭 切 尔 诺 贝 利 核 电 厂 时 的 讲 话 我 要 就 一

Ctpu

可 愛 的 動 物 小 五 雷 雅 理 第 一 次 小 六 甲 黃 駿 朗 今 年 暑 假 發 生 了 一 件 令 人 非 常 難 忘 的 事 情, 我 第 一 次 參 加 宿 營, 離 開 父 母, 自 己 照 顧 自 己, 出 發 前, 我 的 心 情 十 分 緊 張 當 到 達 目 的 地 後

_12-17.QXD

学校代号 学 号

川 外 250 人, 上 外 222 人, 广 外 209 人, 西 外 195 人, 北 外 168 人, 中 南 大 学 135 人, 西 南 大 学 120 人, 湖 南 大 学 115 人, 天 外 110 人, 大 连 外 国 语 学 院 110 人, 上 海 外 事 学 院 110 人,

前 言 一 場 交 換 學 生 的 夢, 夢 想 不 只 是 敢 夢, 而 是 也 要 敢 去 實 踐 為 期 一 年 的 交 換 學 生 生 涯, 說 長 不 長, 說 短 不 短 再 長 的 路, 一 步 步 也 能 走 完 ; 再 短 的 路, 不 踏 出 起 步 就 無 法 到 達 這 次

2005 5,,,,,,,,,,,,,,,,, , , 2174, 7014 %, % 4, 1961, ,30, 30,, 4,1976,627,,,,, 3 (1993,12 ),, 2

HLA-B27軟體

ebook140-8

LH_Series_Rev2014.pdf

Microsoft Word - SupplyIT manual 3_cn_david.doc

天 主 教 輔 仁 大 學 社 會 學 系 學 士 論 文 小 別 勝 新 婚? 久 別 要 離 婚? 影 響 遠 距 家 庭 婚 姻 感 情 因 素 之 探 討 Separate marital relations are getting better or getting worse? -Exp

A Community Guide to Environmental Health

中国科技论文在线中文稿件模板

IP TCP/IP PC OS µclinux MPEG4 Blackfin DSP MPEG4 IP UDP Winsock I/O DirectShow Filter DirectShow MPEG4 µclinux TCP/IP IP COM, DirectShow I

COMPUTEX2008_1211.ppt

系統功能語言的理論及其在國小國語讀寫教學的應用

國立臺東高級中學102學年度第一學期第二次期中考高一國文科試題

!! :!!??!!?!??!!!... :... :'?'?! :' ' :'?' :'?' :'!' : :? Page 2

Page 2 of 12

Microsoft Word - Sunday

鎶ョ焊0

秘密大乘佛法(下)

<D2B0D0C4D3C5D1C52DC8CED6BEC7BF202D20BCC7CAC2B1BE>

ebook140-9


PowerPoint Presentation

~ ~

Abstract Since 1980 s, the Coca-Cola came into China and developed rapidly. From 1985 to now, the numbers of bottlers has increased from 3 to 23, and

RAID RAID 0 RAID 1 RAID 5 RAID * ( -1)* ( /2)* No Yes Yes Yes A. B. BIOS SATA C. RAID BIOS RAID ( ) D. SATA RAID/AHCI ( ) SATA M.2 SSD ( )

高層辦公建築避難演練驗證與避難安全評估之研究

ΧΧΧΧ课程教学大纲(黑体,三号,段后1行)

<4D F736F F D FB171B8D1BA63A544B871BDD7A7F8A457B6A9C3C0B34EB3D0A740A4A7ACFCBEC7AF53A6E2A158A548A16D4D722E20444F42A16EA142A16D F706F6EA16EBB50A16D4D79204C6F6E65736F6D F77626F79A16EB5A5A740AB7EACB0A8D22E6

穨control.PDF

手指識字關鍵字與信息場之聯繫模式

求職一本通

南華大學數位論文

Transcription:

Data I/O Checksum Calculation Methods Application Note (Chinese translation follows this English text.) General Description and Scope This document describes common checksum calculation methods for devices that we support in TaskLink. When Would I Use 8/16/32-bit Checksum? The 8-bit, 16-bit and 32-bit checksum methods just add up the data they do not consider data location like the CRC checksum method does. Therefore, with the 8-bit, 16-bit and 32-bit checksum methods, whole block swaps don t affect the checksum. And with the 8-bit checksum method, even byte swaps don t affect the checksum. On the File I/O tab, byte swap can be selected by checking the Odd/Even Byte Swap checkbox. It transposes odd and even order bytes within the data file, but it will only affect devices with 16-bit and 32-bit data width. The byte swap will have no effect on 8-bit devices. For 16-bit devices it will transpose odd and even order WORDs within the data file. For 32-bit devices it will transpose odd and even order DWORDs within the data file. The document is for Data I/O customers only. page 1

Description of Checksum Methods 8-Bit Checksum The 8-bit checksum method simply adds all the BYTEs in the image.bin file after handling by TaskLink, to get the checksum. The overflow (carry) is omitted. For example, for the data shown in Figure 1 below: 8-bit checksum is 0x37C ( = 0x12 + 0x 34 +... ) Figure 1: Sample data. 16-Bit Checksum The 16-bit checksum method simply adds all the WORDs in the image.bin file after handling by TaskLink, to get the checksum. The overflow (carry) is omitted. For example, for the data shown in Figure 1 above: 16-bit checksum is 0x17C02 (= 0x3412 + 0x7856 +... ) This sample shows Little Endian byteswap. 32-Bit Checksum The 32-bit checksum method simply adds all the DWORDs in the image.bin file after handling by TaskLink, to get the checksum. The overflow (carry) is omitted. For example, for the data shown in Figure 1 above: 32-bit checksum is 0x7A4601BD (= 0x78563412 + 0x01EFCDAB) 32-Bit CRC Checksum 32-bit CRC checksum method uses this polynomial to calculate the checksum: x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1. For example, for the data shown in Figure 1 above: 32-bit CRC checksum is 0xB9196C38 (Use polynomial above for calculation.) The document is for Data I/O customers only. page 2

Selecting Checksum Methods in TaskLink To select a checksum method in TaskLink, in the Edit Task dialog, click the Data tab. Then use the dropdown arrow to view the selections. Refer to Figure 2 below. The method labeled Device Width Checksum autoselects the checksum method based on the device width. For example: an 8-bit device will use the 8-bit checksum method, and a 32-bit device will use the 32-bit checksum method. Figure 2: The Checksum Method dropdown expands to show the list of methods available. The document is for Data I/O customers only. page 3

Special Data and Sector Protection If your target device has special data sectors and/or sector-protection features, this information can be included in the checksum by checking the boxes as available. Selected items will be added to the checksum. See Figure 3 below. Figure 3: Additional items will be included in the checksum when the available boxes are checked. Revision History: V1.0 July 7, 2010 Winston V1.1 Aug 13, 2010 Roger, Edwin, Roxanne The document is for Data I/O customers only. page 4

Data I/O Checksum 计算方法 简介和使用范围 : 本文描述了 TaskLink 计算 Checksum( 以下简称 CS) 的方法 8/16/32-bit CS 应用场合 : 8-bit,16-bit 和 32-bit CS 的计算只是简单的累加数据, 与数据的位置无关, 这一点与 CRC 计算不同 因此, 整个区块数据的交换并不会影响 8-bit,16-bit 和 32-bit CS 的值 同样的, 奇偶字节的交换也不会影响 8-bit CS 的值 在 File I/O 这个选项卡中, 您可以使用 Odd/Even Byte Swap 选项来交换奇偶字节中的数据, 注意这个选项对 8-bit 的芯片无效 而对于 32-bit 的芯片, 它也是只交换奇偶字节中数据, 而不是奇偶字中的数据 The document is for Data I/O customers only. page 5

CS 计算方法 8-Bit CS 将 TaskLink 处理过的数据文件中数据按照每一个字节 (BYTE) 进行累加 超过 32-bit 的进位舍去 例如, 对于图 1 中的数据 : 8-bit CS 为 0x37C ( = 0x12 + 0x 34 +... ) 图 4: 示例数据 16-Bit Checksum 将 TaskLink 处理过的数据文件中数据按照每一个字 (WORD) 进行累加. 超过 32- bit 的进位舍去 例如, 对于图 1 中的数据 : 16-bit CS 为 0x17C02 (= 0x3412 + 0x7856 +... ) 32-Bit Checksum 将 TaskLink 处理过的数据文件中数据按照每一个双字 (DWORD) 进行累加. 超过 32-bit 的进位舍去 例如, 对于图 1 中的数据 : 32-bit CS 为 0x7A4601BD (= 0x78563412 + 0x01EFCDAB) 32-Bit CRC Checksum 公式为 : x32 + x26 + x23 + x22 + x16 + x12 + x11 + x10 + x8 + x7 + x5 + x4 + x2 + x + 1. 例如, 对于图 1 中的数据 : 32-bit CRC 为 0xB9196C38 The document is for Data I/O customers only. page 6

在 TaskLink 中选择计算方法 : 您可以在 TaskLink 的 Edit Task 对话框中的 Data 选项卡中的 Checksum Method 下拉框中选择您需要的计算方式, 如图 2 所示 Device Width Checksum 这个选项将自动选择和芯片位数一致的 CS 计算方法 也就是说,8-bit 芯片使用 8-bit CS,16-bit 芯片使用 16-bitCS,32-bit 芯片使用 32-bit CS 图 5: CS 计算方法下拉列表 The document is for Data I/O customers only. page 7

特殊数据和扇区保护 : 如果您使用的芯片有特别数据扇区 ( 如 OTP) 和扇区保护功能, 在您选中了图三中的单选框后, 这些信息也会计算到 CS 中 图 6: 加入其他信息到 CS 的单选框. Revision History: V1.0 July 7, 2010 Winston V1.1 Aug 13, 2010 Roger, Edwin, Roxanne The document is for Data I/O customers only. page 8