EmbeddedRelated.com
Forums
Memfault State of IoT Report

New 8051 smart assembler

Started by Schjaer November 11, 2006
yasha wrote:

> I'm using the the assembler SesAsm51 ( cross assembler for 8051 with > floating point calculation, math functions......) for one of my projects, > where we are designing a control loop for a subsonic wind tunnel to > maintain the velocity of air flow in it. > > I came to know about this assembler in one of your threads : > http://www.embeddedrelated.com/usenet/embedded/show/60029-1.php > > and the link for the assembler is : > > www.programmersheaven.com > / Assembler / 8051 / Development Tools / SesAsm51" > > There are some things I needed to know regarding the same. > we need to evaluate an expression like this.. > Vel= 4.28 * sqrt(40 *X) > where X is a variable fed to the controller from an ADC. > But the operand for sqrt function, as given in the pdf, is an immediate > data. > Is there any way with which we can realize the given expression,as stated > above, using this assembler?
The assembler itself doesn't supply code for runtime floating point operation. You can either find a library with the needed math routines or write your own. Generally the easiest way to do this is to use a C compiler which comes with a library containing the functions you want. What is the update rate for the wind tunnel? You might need to use a faster processor, depending on the complexity of the calculations and the required update rate. -- Thad

Memfault State of IoT Report