Title |
Title
Floating Point to ASCII Conversion
|
---|---|
Name |
Name
AN670
|
Date |
Date
06/24/2015
|
Application Categories |
Application Categories
Algorithms (Building Blocks) /
Math
|
Product Categories |
Product Categories
8-bit MCU
|
Description |
Description
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
|
Title | Title | Download | Date | Size |
---|---|---|---|---|
AN670 Source Code - Floating Point to ASCII Conversion 13.8 KB 06/23/2015 | AN670 Source Code - Floating Point to ASCII Conversion | Download | 06/23/2015 | 13.8 KB |