LPc11u67 Q-Math Functions

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

LPc11u67 Q-Math Functions

3,855 次查看
Hari_Royal
Contributor II

Hi,

I would like to implement one small control loop which requires using of Q format multiplication. I would like to know does LPC11U67 will support such Q21 format multiplication to implement below control loop. 

Y (k) = 1.691 * Y (k−1) − 0.6913 * Y (k−2) + 2.116 * X( k−1 )− 1.91 * X (k−2)

Where k is a discrete time, X is the sensor value , Y is the output value of the controller.

I didn't found any DSP library supporting files in "LPCOpen 3.03 Keil Iar LPCXpresso 11U68" package. so some one help me is it possible to implement this control loop with #LPC11U67.

 

 

标签 (1)
标记 (3)
0 项奖励
回复
3 回复数

3,767 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose this is a common problem for IIR filter that the absolute value of a1 may be greater than 1 and less than 2. With a transformation, you can use Q15 or Q31 format to implement it.

I attach the AN3359.pdf, pls refer to section 3.2.2 How to Implement the IIR Filter

Hope it can help you

BR

XiangJun Rong

 

0 项奖励
回复

3,720 次查看
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

You can use RTCESL tools to do IIR, you can download the library from the link:

https://www.nxp.com/design/software/embedded-software/real-time-control-embedded-software-motor-cont...

 

Hope it can help you

BR

XiangJun Rong

0 项奖励
回复

3,758 次查看
frank_m
Senior Contributor III

The DSP support files and libraries were supplied by ARM last time I checked.
Some vendors add them to their packages for convenience, but these DSP libs are not vendor-specific.

Like here : https://github.com/ARM-software/CMSIS-DSP

 

0 项奖励
回复