加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

二进制转十进制

发布时间:2020-12-14 03:47:57 所属栏目:大数据 来源:网络整理
导读:? // the 24 bit adc value from the chip is actually the fraction of the full // dynamic range,the actual full dynamic range voltage is fixed by hardware // design,and it‘s defined as VOLTAGE_SCALE. so the formular will be: // // vrms(in m

?

// the 24 bit adc value from the chip is actually the fraction of the full
// dynamic range,the actual full dynamic range voltage is fixed by hardware
// design,and it‘s defined as VOLTAGE_SCALE. so the formular will be:
//
// vrms(in milliVolt) = adc * VOLTAGE_SCALE * 1000 / 2^24
//
// if we multiply everything first,we might overrun the 32 bit value
// but if we do all the bit shift first,we will lost to much accuracy
// so we do the this step by step.
//
// the last 5 bits are insignificant to milliV,and good enough for us to do
// a mulitplication without overrun.

?

v=adc/?2^N? (N表示几位)? //公式

?例子

0.75? ?011? ?==3/(2^2) =3/4=0.75

?
?
?
好文要顶? 关注我? 收藏该文?

?

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读