资料
  • 资料
  • 专题
浮点到ASCII转换
推荐星级:
时间:2019-12-24
大小:139.91KB
阅读数:275
上传用户:givh79_163.com
查看他发布的资源
下载次数
0
所需E币
3
ebi
新用户注册即送 300 E币
更多E币赚取方法,请查看
close
资料介绍
It is often necessary to output a floating point number to a display. For example, to check calculations, one might want to output floating point numbers using the PICmicro ® microcontrollers serial port, or use general purpose I/O to output to a liquid crystal display (LCD). Either way, the floating point number must be con- verted to its ASCII equivalent. This document shows a specific example of converting a 32-bit floating point number to ASCII. Application note AN575 contains 24-bit and 32-bit floating point routines. A subroutine is provided here that does the conversion and returns the ASCII equivalent in RAM. An example “main” program is provided to show how to use the subroutine.M Floating Point to ASCII Conversion AN670 Table 2 depicts Microchip’s 32-bit floating point register Authors: Rick Evans RAM usage. The bit labeled “S” is the sign bit. These Microchip Technology, Inc. registers are collectively called AARG. The floating point routines require that the arguments be put in AARG and BARG (BARG is the second argument, same format as ……
版权说明:本资料由用户提供并上传,仅用于学习交流;若内容存在侵权,请进行举报,或 联系我们 删除。
PARTNER CONTENT
相关评论 (下载后评价送E币 我要评论)
没有更多评论了
  • 可能感兴趣
  • 关注本资料的网友还下载了
  • 技术白皮书