|
|||
|
|
|||
|
From ww1.microchip.com
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 how to embed an assembly language program into MPLAB-C, version 1.10, and the issues therein. For example, embedding interrupt save and restore must be done using assembly language. Also, critical timing routines may require assembly. The 32-bit floating point multiply routine from AN575 is used to illustrate this process. The remaining 32-bit floating point math routines are embedded into individual C functions and are included in the file accompanying this application note.
Keywords:
Products & Services
Microprocessor and IC programmers, compilers and debuggers are programs that translate high-level language codes into assembly (machine) code, or track and correct errors (bugs) in program code.
Programmable logic controllers (PLCs) are the control hubs for a wide variety of automated systems and processes. They use a wide variety of inputs and outputs and provide network capability.
Arithmetic logic units (ALU) perform arithmetic and logic operations on binary data inputs. In some processors, the ALU is divided into two units: an arithmetic unit (AU) and a logic unit (LU).
Digital signal processors (DSPs) are specialized microprocessors designed specifically for digital signal processing, usually in real-time. DSPs can also be used to perform general-purpose computations, but are not optimized for this function.
Language translation services translate documents, web sites, product information and personal communications into one more human languages.
Product Announcements
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)
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...
(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)
|
|