您好,欢迎光临本网站![请登录][注册会员]  
文件名称: BQ78350读写dataflash参考文件.pdf
  所属分类: 硬件开发
  开发工具:
  文件大小: 185kb
  下载次数: 0
  上传时间: 2020-01-09
  提 供 者: u0102*****
 详细说明:To write the new Voltage Divider value can be programmed as follows: - SubclassID for “Voltage Divider” is 104 or 0x68 hex, and offset is 14 - Write 0x00 using BlockDataControl() command (0x61) to enable block data flash control. (wr 0x61 0x00) - Write 0x68 (Calibration Subclass) using the DataFlashClass() command (0x3E) to access the Registers subclass. (wr 0x3E 0x68) - Write the block offset location using DataFlashBlock() command (0x3F). To access data located at offset 0 to 31, use offset = 0x00. For example, Voltage Divider (offset = 14) is in the first block so use (wr 0x3F 0x00). - To read the data of a specific offset, use address 0x40 + mod(offset, 32). So to read the old Voltage divider (rd 0x4E old_Voltage Divider_MSB) (rd 0x4F old_Voltage Divider_LSB) - To write the data of a specific offset, use address 0x40 + mod(offset, 32). So to write the new Voltage divider (rd 0x4E new_Voltage Divider_MSB) (rd 0x4F new_Voltage Divider_LSB) - The data is actually transferred to the data flash when the correct checksum for the whole block (0x40 to 0x5F) is written to BlockDataChecksum() (0x60). (wr 0x60 NEW_checksum) The checksum is (255-x) where x is the 8-bit summation of the BlockData() (0x40 to 0x5F) on a byte-by-byte basis. A quick way to calculate the new checksum is to make use of the old checksum: (a) temp = mod (255 – OLD_checksum – old_Voltage Divider_MSB - old_Voltage Divider_LSB), 256)(b) NEW_checksum = 255 – mod (temp + new_Voltage Divider_MSB + new_Voltage Divider_LSB, 256) Step 3. Update any individual flash locations, such as serial number, lot code, and date: In a similar manner to the Voltage divider, any pack specific data such as serial number, lot code and date can be changed during the production process.
(系统自动生成,下载前可以参看下载内容)

下载文件列表

相关说明

  • 本站资源为会员上传分享交流与学习,如有侵犯您的权益,请联系我们删除.
  • 本站是交换下载平台,提供交流渠道,下载内容来自于网络,除下载问题外,其它问题请自行百度
  • 本站已设置防盗链,请勿用迅雷、QQ旋风等多线程下载软件下载资源,下载后用WinRAR最新版进行解压.
  • 如果您发现内容无法下载,请稍后再次尝试;或者到消费记录里找到下载记录反馈给我们.
  • 下载后发现下载的内容跟说明不相乎,请到消费记录里找到下载记录反馈给我们,经确认后退回积分.
  • 如下载前有疑问,可以通过点击"提供者"的名字,查看对方的联系方式,联系对方咨询.
 输入关键字,在本站1000多万海量源码库中尽情搜索: