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.
2024-01-31 22:35:17 185KB BQ78350
1
CCGain F4类型转换.pdfCCGain F4类型转换.pdfCCGain F4类型转换.pdf
2024-01-31 22:33:31 86KB F4类型转换.pd
1
bq27545 校准参考程序.pdfbq27545 校准参考程序.pdfbq27545 校准参考程序.pdf
2024-01-31 22:32:50 141KB bq27545 校准参考程序.p
1
ubuntu上的安装包 deb格式 方便安装
2024-01-31 19:20:26 3.61MB foxit reader pdf linux
1
本文为高清扫描版,但是无目录,真金白银买的,做目录有点费力,所以不做了
2024-01-31 17:09:33 11.58MB UML UML精粹
1
java常用算法手册.pdf
2024-01-31 13:58:09 40.28MB java
1
Arcgis矢量化电子地图.pdf
2024-01-30 19:13:00 1.55MB Arcgis 电子地图
1
运筹学_塔哈_中文版.pdf
2024-01-30 10:36:24 75.19MB
1
一.入门篇 MATLAB有哪些主要功能? 初学者应如何利用这一数学软件去解决自己的 问题?要解决这些问题,应该尽快熟悉一些常用命令,了解它们的功能和使用 格式。
2024-01-30 01:46:09 854KB matlab matlab入门 pdf
1
linux常用命令大全 Linux有许多常用的命令,这些命令可以用来管理文件、运行程序、查看系统状态等。以下是一些常用的Linux命令: 1. pwd:显示当前所在的工作目录的全路径名称。 2. cd:用于更改当前工作目录,例如,若要进入Documents目录,可以使用命令cd Documents。 3. ls:用于列出指定目录中的文件和子目录名称,例如,若要列出当前目录的所有文件和子目录名称,可以使用命令ls。 4. mkdir:用于创建一个新目录,例如,若要在当前目录中创建一个名为test的新目录,可以使用命令mkdir test。 5. rmdir:用于删除一个空目录,例如,若要删除当前目录中的test目录,可以使用命令rmdir test。 6. rm:用于删除指定文件或目录,例如,若要删除当前目录中的test.txt文件,可以使用命令rm test.txt。 7. cp:用于复制一个文件到指定位置,例如,若要将当前目录中的test.txt文件复制到Documents目录中,可以使用命令cp test.txt Documents。 8. mv:用于将一个文件从一个目录移动到另一
2024-01-29 19:00:21 440KB linux
1