Go to GlobalSpec.com Home
Alert   Product Alerts
Keep current on the latest products, new suppliers, and technical articles of interest to you. (See Topics)

Floating Point to ASCII Conversion

From Microchip Technology, Inc.
 

 
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

Products & Services
Microcontrollers (MCU) are complete computer systems on a chip. They combine an arithmetic logic unit (ALU), memory, timer/counters, serial port, input/output (I/O) ports and a clock oscillator. Search by Specification | Learn more about Microcontrollers (MCU)
Specialty microprocessors and microcontrollers are specialty or proprietary products and accessories related to microprocessors and microcontrollers. Learn more about Specialty Microprocessors and Microcontrollers

Product Announcements
OceanServer Technology, Inc. - USB or Serial Low Cost Digital Compass
The OS5000-US is a small form factor (1" square) 3-Axis, tilt compensated digital compass. The flexible design allows customers to use either a USB or RS232 Serial connection for system integration. (read more)
OceanServer Technology, Inc. - Tiny Serial Compass
The OS5000-S is a low-cost, three-Axis, tilt-compensated, solid-state digital compass for OEM applications such as antenna positioning, GPS integration, attitude reference, robotic control, platform... (read more)
OceanServer Technology, Inc. - TTL Low Cost Digital Compass
The new OS5000-T is an extremely small form factor (1" x 1") 3-Axis, tilt compensated digital compass. The compass is connected via a TTL connection only. The OS5000-T offers hard-iron calibration and... (read more)
Acromag, Inc. - New PMC modules feature a Virtex-5 FPGA
with an embedded PowerPC core for high-performance I/O signal processing. Acromag's new PMC I/O modules provide a Virtex-5 FPGA with hard core PowerPC for fast execution of the most complex and... (read more)
OceanServer Technology, Inc. - OS5000-USD Digital Compass with Depth
The OS5000-USD is a small form factor 3-axis, tilt compensated digital compass which has the unique ability to report the depth in water of a device. The compass string provides the "Dnnn.n" field... (read more)
OceanServer Technology, Inc. - OS4000-T Nano Compass
The OS4000-T Nano Compass is one of the world's tiniest full featured 3 axis tilt compensated compasses. The OS4000-T includes all the powerful features of the OS5000 family in a 0.6" x 0.6" board... (read more)

Topics of Interest
This application note presents an implementation of the following floating point math routines for the PICmicro microcontroller families: float to integer conversion,integer to float... (Read More)
This application note presents an implementation of the following floating point math routines for the PICmicro microcontroller families: float to integer conversion,integer to float... (Read More)
This application note presents implementations of the following math routines for the Microchip PICmicro microcontroller family: square root function, exponential function, base 10 exponential... (Read More)
This application note presents implementations of the following math routines for the Microchip PICmicro microcontroller family: square root function, exponential function, base 10 exponential... (Read More)
With the advent of MPLAB-C, the Microchip C-compiler, many PICmicro users need to embed existing assembly language routines and/or Microchip application notes into C. This application note explains... (Read More)