例如现在的PWM的数组的数据为1200但因为调制比为小数0.6故这时
a=1200*0.6;
a=1200*3/6;
两种哪种速度快?
我看官方的AD采样的例子中AD值与实际采集值转换关系是乘以0.00024414(即1/4096),为什么不先乘以1再往右移动12位?
谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
例如现在的PWM的数组的数据为1200但因为调制比为小数0.6故这时
a=1200*0.6;
a=1200*3/6;
两种哪种速度快?
我看官方的AD采样的例子中AD值与实际采集值转换关系是乘以0.00024414(即1/4096),为什么不先乘以1再往右移动12位?
谢谢!