LPc11u67 Q-Math Functions

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

LPc11u67 Q-Math Functions

3,859件の閲覧回数
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,771件の閲覧回数
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,724件の閲覧回数
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,762件の閲覧回数
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 件の賞賛
返信