STM32调试过程中的使用技巧及解决办法

技巧 1.定时器使用过程中,分频系数越大,定时误差越大,越不准确。

在这里插入图片描述
使用时尽量选择较小的分频系数,提高定时器的精度。

问题 2.编译时出现下述警告:

【成功解决】warnning …\User\user_logic_calc.c(366): warning: #1035-D: single-precision operand implicitly converted to double-precision
在这里插入图片描述

解决办法: keil5 编译提示 single-precision operand implicity converted to double-precesion,意思是单精度运算隐式转换成双精度运算了,在浮点数字后面加上f,编译警告就会消失。

猜你喜欢

转载自blog.csdn.net/AQRSXIAO/article/details/132142856