do i need float emulation to implement pid in stm32 processor
- User
do i need float emulation to implement pid in stm32 processor
Assistant
Let me help you understand the PID implementation options on STM32:
No, you don't strictly need float emulation. There are several approaches you can take:
- Fixed-point arithmetic
- Most efficient option for STM32
- Uses integer math with bit shifting
- Avoids floating-point overhead
- Example format: Q16.16 (16 bits for integer, 16 for fraction)
- Hardware floating-point
- Available if your STM32 has an FPU (like STM32F4 series)
- Good performance without emulation
- More intuitive to program
- Software floating-point (emulation)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.