摘要
为了提高Cortex-M0系列单片机应用系统的二进制到十进制BCD码整数转换代码的执行效率,采用除十求余数法来实现。该快速算法的核心内容是通过高效的汇编语言来实现常数除法,无论在程序代码的运行时间和存储空间上,都远胜于sprintf函数。
In order to improve the Cortex-MO series MCU application system binary to decimal BCD codes with implementation efficiency of integer conversion code, the design uses in addition to the lOth remainder law to achieve the algorithm. The core content of the fast al- gorithm is through the efficient assembly language to realize constant division, it is far better than the sprintf function in terms of run- ning time and storage space of the program code.
出处
《单片机与嵌入式系统应用》
2013年第7期32-33,36,共3页
Microcontrollers & Embedded Systems