< div class = "字段field-name-taxonomy-forums field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >论坛:,< / div > < div class = "字段条目" > < div class =”field-item甚至“rel = " sioc: has_container " > < a href = " /论坛/ dialog-smartbond-bluetooth-low-energy - % E2 % 80% 93 -软件”“=“sioc:容器sioc:论坛”属性= " rdfs: label skos: prefLabel”数据类型= " " >对话框Smartbond蓝牙低能量-软件< / > < / div > < / div > < / div > < div class =”字段field-name-body field-type-text-with-summary field-label-hidden”> < div class = "字段条目" > < div class =”field-item甚至“财产=“内容:编码”> < p >你好,< / p > < p >我们准备开始生产基于DA1468x的可穿戴设备。在我们的组装后测试期间,我们想使用SOC(电荷状态)计数器来测量特定时间间隔内的总库仑。我一直在查看数据表中的SOC_*寄存器和hw_soc。*和sys_socf。*。我有几个问题: 1。是否有描述使用SOC计数器测量库仑(或电流)的文档或样本代码,或我最好的选择是研究hw_soc和sys_socf?< / p > < p > 2。你能帮我理解一下下面的方法是否正确吗?< / p > < p > 1。2.定义dg_configUSE_SOC
3.调用hw_soc_init初始化SOC
3.调用hw_soc_init初始化SOC
Call hw_soc_enable
4. Delay for my sampling period
5. Call hw_soc_read_charge to get the value of the SOC counter
6. Convert the counter value to coulombs
Thanks for your help,
David