Skip to main content
bluewaters213
Associate III
August 10, 2013
Question

CMSIS DSP PID Algorithm and 1.15 format

  • August 10, 2013
  • 0 replies
  • 782 views
Posted on August 10, 2013 at 04:51

Hello,

I am having a problem with CMSIS DSP. the state variables are represented in 1.15 format.I want to control the speed of a motor using PID algorithm.The minimum value of the PWM duty Cycle is 500 and it Maximum is 3500.

Do I have to convert the Speed Error to 1.15 format before feeding it to the PID and convert the output from 1.15 format to Unsigned Integer and pass it to PWM Duty Cycle?. Any help will be greatly appreciated.

Regards

Slim

#stm32
    This topic has been closed for replies.