LPc11u67 Q-Math Functions

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LPc11u67 Q-Math Functions

3,861 Views
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.

 

 

Labels (1)
0 Kudos
Reply
3 Replies

3,773 Views
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 Kudos
Reply

3,726 Views
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 Kudos
Reply

3,764 Views
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 Kudos
Reply