skip to Main Content
Menu
EC-LIB Function Library Logo with Key and Regensburg Graphic
EC-LIB Function Library Logo

EC-LIB®

The EC-LIB® is a library consisting of mathematical and control-related functions. It is designed for the development of embedded software and employs fixed point arithmetic for all computing operations that are being processed. It is implemented in C.

16-bit | 32-bit

EC-LIB® Fixed Point Library Extension 1 Controller FilterEC-LIB® Fixed Point Library Extension 1 Controller Filter Simple Moving Average Linear Weighted Moving Average PT1 PT2 Element PD PID PI Controller
EC-LIB® Fixed Point Library Extension 2 InterpolationEC-LIB® Fixed Point Library Extension 2 Interpolation 1-dimensional Linear 2-dimensional Linear 3-dimensional Linear
EC-LIB® Fixed Point Library Extension 3 Bit FunctionsEC-LIB® Fixed Point Library Extension 3 Bit Functions
EC-LIB® Fixed Point Library BasicEC-LIB® Fixed Point Library Basic Addition Subtraction Multiplication Is Less Equal

EC-LIB® Quick Guide

The EC-LIB® Quick Guide contains:

Quick Guide 1 – Technical Concepts
Quick Guide 2 – Download the Free Trial Version
Quick Guide 3 – Integrating the EC-LIB® in Eclipse
Quick Guide 4 – Eclipse Configuration and File Setup
Quick Guide 5 – Web Tool and Choice of Shift Factor
Quick Guide 6 – Coding

Tool - resolution and shift factor for fixed point

This tool for fixed point arithmetic provides support for resolution related calculations. It calculates the range from lowest value to highest value, the resolution and the shift factor. In addition to this it provides initialization examples for your fixed point variables.

+ details

There are two options to compute the values. Depending on the requirements, the button can be set to the options:

Adapt shift factor | Calculates the resolution based on the required lowest and highest value
1. To calculate the resolution and correct shift factor, the lowest value and/or the highest value have to be entered.
2. After the shift factor is calculated, by moving the slide bar, an altered shift factor can be chosen,
so the range and thus the resolution can be modified.
Note: When entering only one value the resolution and the shift factor are calculated based on this single value.

Choose shift factor | Calculates the resolution based on a given shift factor
Only the shift factor has to be set with the slide bar and the other fields have to be left empty. In this case the slide bar denotes the absolute shift factor.  So the exact resolution and range for your fixed point variables is calculated based on the chosen shift factor.

Please note: When switching the option from adapt shift factor to choose shift factor, all input fields will be reset.

Please consider the following rules and restriction when entering data:

  • Numbers can only be displayed with the following rule (+/- 0-9 . 0-9 E/e +/- 0-9)
  • Comma is not a valid input. For decimal points please use the dot
  • The tool supports a resolution between 10-12 and 1012

Inputs


0
Signed
16-bit 32-bit
lowest value
highest value
shift factor
resolution
Unsigned
16-bit 32-bit
lowest value
highest value
shift factor
resolution

Here we output code examples based on the inputs from above.

Here we output code examples based on the inputs from above.

Here we output code examples based on the inputs from above.

About us

Eclipseina GmbH Logo
EC-LIB Function Library Logo
Embedded Academy Logo
Embedded Academy English Logo

Eclipseina supports you all around Embedded Software Development – we offer trainings, consulting and the EC-LIB® Fixed Point Library. Empower Embedded!

The EC-LIB® Fixed Point Library is a modular library of Embedded C software functions. Regularly needed functions are implemented as optimized software routines.

Die Embedded Academy ist eine Weiterbildungsakademie für die Embedded Branche und bietet ein systematisches und modular aufgebautes Weiterbildungsprogramm.

Embedded Academy is a training academy which is dedicated to the embedded domain. It offers a systematic and modular education program for engineers.

Contact

TechBase
Eclipseina GmbH
Franz-Mayer-Str. 1
93053 Regensburg

Phone +49 941 / 462 974 20

info@eclipseina.com
eclipseina.com

imprint + privacy

Back To Top