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

AN669

Title
Title
Embedded Assembly Routines into C Language Using a Floating Point Routine as an example
Name
Name
AN669
Date
Date
06/24/2015
Application Categories
Application Categories
Software / Code Examples
Product Categories
Product Categories
16-bit MCUs
dsPIC DSCs
Description
Description
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.

Files

Title Title Download Date Size
AN669 Source Code - Embedded Assembly Routines into C Language Using a Floating Point Routine as an example 15.0 KB 06/23/2015 AN669 Source Code - Embedded Assembly Routines into C Language Using a Floating Point Routine as an example Download 06/23/2015 15.0 KB