From 9f95ff5b6ba01db09552b84a0ab79607060a2666 Mon Sep 17 00:00:00 2001 From: Ali Labbene Date: Wed, 11 Dec 2019 08:59:21 +0100 Subject: Official ARM version: v5.4.0 Add CMSIS V5.4.0, please refer to index.html available under \docs folder. Note: content of \CMSIS\Core\Include has been copied under \Include to keep the same structure used in existing projects, and thus avoid projects mass update Note: the following components have been removed from ARM original delivery (as not used in ST packages) - CMSIS_EW2018.pdf - .gitattributes - .gitignore - \Device - \CMSIS - \CoreValidation - \DAP - \Documentation - \DoxyGen - \Driver - \Pack - \RTOS\CMSIS_RTOS_Tutorial.pdf - \RTOS\RTX - \RTOS\Template - \RTOS2\RTX - \Utilities - All ARM/GCC projects files are deleted from \DSP, \RTOS and \RTOS2 Change-Id: Ia026c3f0f0d016627a4fb5a9032852c33d24b4d3 --- docs/DSP/html/group__park.html | 280 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 280 insertions(+) create mode 100644 docs/DSP/html/group__park.html (limited to 'docs/DSP/html/group__park.html') diff --git a/docs/DSP/html/group__park.html b/docs/DSP/html/group__park.html new file mode 100644 index 0000000..e8330b5 --- /dev/null +++ b/docs/DSP/html/group__park.html @@ -0,0 +1,280 @@ + + + + + +Vector Park Transform +CMSIS-DSP: Vector Park Transform + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-DSP +  Version 1.5.2 +
+
CMSIS DSP Software Library
+
+
+ +
+
    + +
+
+ + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
Vector Park Transform
+
+
+ + + + + + + + +

+Functions

CMSIS_INLINE __STATIC_INLINE void arm_park_f32 (float32_t Ialpha, float32_t Ibeta, float32_t *pId, float32_t *pIq, float32_t sinVal, float32_t cosVal)
 Floating-point Park transform. More...
 
CMSIS_INLINE __STATIC_INLINE void arm_park_q31 (q31_t Ialpha, q31_t Ibeta, q31_t *pId, q31_t *pIq, q31_t sinVal, q31_t cosVal)
 Park transform for Q31 version. More...
 
+

Description

+

Forward Park transform converts the input two-coordinate vector to flux and torque components. The Park transform can be used to realize the transformation of the Ialpha and the Ibeta currents from the stationary to the moving reference frame and control the spatial relationship between the stator vector current and rotor flux vector. If we consider the d axis aligned with the rotor flux, the diagram below shows the current vector and the relationship from the two reference frames:

+
+park.gif +
+Stator current space vector and its component in (a,b) and in the d,q rotating reference frame
+

The function operates on a single sample of data and each call to the function returns the processed output. The library provides separate functions for Q31 and floating-point data types.

+
Algorithm
+parkFormula.gif +
+ where Ialpha and Ibeta are the stator vector components, pId and pIq are rotor vector components and cosVal and sinVal are the cosine and sine values of theta (rotor flux position).
+
Fixed-Point Behavior
Care must be taken when using the Q31 version of the Park transform. In particular, the overflow and saturation behavior of the accumulator used must be considered. Refer to the function specific documentation below for usage guidelines.
+

Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CMSIS_INLINE __STATIC_INLINE void arm_park_f32 (float32_t Ialpha,
float32_t Ibeta,
float32_tpId,
float32_tpIq,
float32_t sinVal,
float32_t cosVal 
)
+
+
Parameters
+ + + + + + + +
[in]Ialphainput two-phase vector coordinate alpha
[in]Ibetainput two-phase vector coordinate beta
[out]pIdpoints to output rotor reference frame d
[out]pIqpoints to output rotor reference frame q
[in]sinValsine value of rotation angle theta
[in]cosValcosine value of rotation angle theta
+
+
+

The function implements the forward Park transform.

+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CMSIS_INLINE __STATIC_INLINE void arm_park_q31 (q31_t Ialpha,
q31_t Ibeta,
q31_tpId,
q31_tpIq,
q31_t sinVal,
q31_t cosVal 
)
+
+
Parameters
+ + + + + + + +
[in]Ialphainput two-phase vector coordinate alpha
[in]Ibetainput two-phase vector coordinate beta
[out]pIdpoints to output rotor reference frame d
[out]pIqpoints to output rotor reference frame q
[in]sinValsine value of rotation angle theta
[in]cosValcosine value of rotation angle theta
+
+
+

Scaling and Overflow Behavior:

+
The function is implemented using an internal 32-bit accumulator. The accumulator maintains 1.31 format by truncating lower 31 bits of the intermediate multiplication in 2.62 format. There is saturation on the addition and subtraction, hence there is no risk of overflow.
+ +

References __QADD(), and __QSUB().

+ +
+
+
+
+ + + + -- cgit