We detect you are using an unsupported browser. For the best experience, please visit the site using Chrome, Firefox, Safari, or Edge. X
Maximize Your Experience: Reap the Personalized Advantages by Completing Your Profile to Its Fullest! Update Here
Stay in the loop with the latest from Microchip! Update your profile while you are at it. Update Here
Complete your profile to access more resources.Update Here!

AN670

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

Files

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