All Questions
Tagged with floating-point microcontroller
19 questions
22
votes
9
answers
11k
views
Does the "Avoid using floating-point" rule of thumb apply to a microcontroller with a floating point unit (FPU)?
As a rule of thumb, I try to avoid using floating-point in my embedded system codebase.
Floating-point variables are:
Computation-intensive
Not atomic (can cause problems in an RTOS application or ...
8
votes
5
answers
14k
views
How are numbers with decimal point handled in an MCU?
Please tell me how do MCUs handle decimal numbers like '23.3', '3.24' etc? How is it stored in a memory register? I know that I have to use float data type when handling these numbers while ...
8
votes
3
answers
2k
views
DIY FP - Implementing floating point math on a microcontroller without a hardware FPU
I'm working on a little personal project (targeting a Parallax Propeller, but this should be pretty generalizable) that needs floating point math.
The micro-controller I am working with does not have ...
5
votes
3
answers
6k
views
Why is there a separate Floating Point Units in some micro controllers
I would like to know why there is a separate FPU peripheral in some high end micro-controllers even if the small end 8 bit controllers can perform float calculations on their own.
I tried ...
5
votes
1
answer
2k
views
Microcontrollers with Floating Point Hardware
I know this is a "contemporary" question, but I think it's a useful one to aggregate some knowledge. What are some currently available microcontrollers that sport a hardware floating point unit (i.e. ...
4
votes
3
answers
4k
views
STM32 non floating point unit chips
I would like to know how STM32F2 chips and below that doesn't handle floating point unit, perform float operation.
I read here, it mentions that the floating point is handled by library functions, ...
3
votes
4
answers
1k
views
Excessive AVR static RAM usage with mixed-type math operations
I've narrowed down an issue in my code which creates an extra 260 bytes of static RAM usage:
...
3
votes
3
answers
1k
views
Microcontrollers: Can I perform floating point operations in a Picoblaze controller?
I wonder if I could perform floating point operations in a Picoblaze controller? Thank you to all posible answers with direct references to documentation or articles.
3
votes
1
answer
11k
views
How many cycles does an ARM Cortex M0 use to multiply floats?
On an ARM cortex m0+:
How many cycles does it take to perform multiplication of single precision floats and store them into a float? i.e. x = a*b; Where x, a, and b are single precision IEEE 754 ...
2
votes
3
answers
3k
views
Microcontrollers: Can I perform floating point operations in a Microblaze controller?
I wonder if I could perform floating point operations in a Microblaze controller?
Thank you to all posible answers with direct references to documentation or articles.
2
votes
1
answer
410
views
How does the ARM Compiler (Version 5) handle double-precision floats in devices whose floating-point unit hardware only supports single precision?
After reading ARM Compiler version 5's manual, it says that for devices without a floating point unit, floats are dealt with through software implementations, which is likely going to be slower than ...
2
votes
1
answer
1k
views
STM32F4 PLC Integer Calculation vs Float Calculation
I am using a PLC that uses a STM32F4 as its processor.
The PLC software has Integer and Float calculation commands. When I work with floating point numbers I usually try to use integer calculations ...
2
votes
2
answers
3k
views
Sending a double type value over CAN Bus
I need help to send a double value using a CAN Bus.
I am working on a eletronic traction control and i need to send, by a CAN bus, the calculated values of speed of wheels. The problem start when the ...
1
vote
1
answer
354
views
Problems with implementation of a band-stop filter on an MCU (dsPIC) using fixed-point arithmetic
I'm trying to implement a band-stop (notch) filter on a microcontroller dsPIC33EP64GS506 to filter out a 100 Hz component from ...
1
vote
1
answer
1k
views
Floating Point problem using PIC18F4550
I'm making an obstacle avoiding robot and using the mentioned PIC controller. I'm currently not at the obstacle avoiding part so what i'm doing is writing code to control the movement, e.g. making it ...
1
vote
0
answers
315
views
Float calculations hangs on Kinetis K20 (arm-m4-no-fpu) when PWM interrupt is on
I will use this ARM to control Induction Motor with three-phase inverter.
When the program encounters any float operations, like simple plus operation, the system hangs but the pause of debug works ...
0
votes
2
answers
8k
views
How to compute acceleration from accelerometer raw data
I'm working on a project based on NXP accelerometer MMA8653.
This is a I2C, 3-axial accelerometer with 10-bit resolution.
Actually I can read the accelerometer registers and I'm able to configure it....
0
votes
1
answer
141
views
How to store modify and resend 4 bytes of data from an assembly coded dspic to that in a c compiler based pic18f
I'm using Xc8 compiler and pic18f.Im communicating with a dspic30f ;coded in assembly and receiving a 4 byte variable via i2c.
Task: I have to receive the 4 byte packet store,modify it and send
back ...
-1
votes
2
answers
217
views