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__clarke.html | 252 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 252 insertions(+) create mode 100644 docs/DSP/html/group__clarke.html (limited to 'docs/DSP/html/group__clarke.html') diff --git a/docs/DSP/html/group__clarke.html b/docs/DSP/html/group__clarke.html new file mode 100644 index 0000000..75c2cbf --- /dev/null +++ b/docs/DSP/html/group__clarke.html @@ -0,0 +1,252 @@ + + + + + +Vector Clarke Transform +CMSIS-DSP: Vector Clarke Transform + + + + + + + + + + + + + + +
+
+ + + + + + + +
+
CMSIS-DSP +  Version 1.5.2 +
+
CMSIS DSP Software Library
+
+
+ +
+
    + +
+
+ + + +
+
+ +
+
+
+ +
+ + + + +
+ +
+ +
+ +
+
Vector Clarke Transform
+
+
+ + + + + + + + +

+Functions

CMSIS_INLINE __STATIC_INLINE void arm_clarke_f32 (float32_t Ia, float32_t Ib, float32_t *pIalpha, float32_t *pIbeta)
 Floating-point Clarke transform. More...
 
CMSIS_INLINE __STATIC_INLINE void arm_clarke_q31 (q31_t Ia, q31_t Ib, q31_t *pIalpha, q31_t *pIbeta)
 Clarke transform for Q31 version. More...
 
+

Description

+

Forward Clarke transform converts the instantaneous stator phases into a two-coordinate time invariant vector. Generally the Clarke transform uses three-phase currents Ia, Ib and Ic to calculate currents in the two-phase orthogonal stator axis Ialpha and Ibeta. When Ialpha is superposed with Ia as shown in the figure below

+
+clarke.gif +
+Stator current space vector and its components in (a,b).
+

and Ia + Ib + Ic = 0, in this condition Ialpha and Ibeta can be calculated using only Ia and Ib.

+

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
+clarkeFormula.gif +
+ where Ia and Ib are the instantaneous stator phases and pIalpha and pIbeta are the two coordinates of time invariant vector.
+
Fixed-Point Behavior
Care must be taken when using the Q31 version of the Clarke 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_clarke_f32 (float32_t Ia,
float32_t Ib,
float32_tpIalpha,
float32_tpIbeta 
)
+
+
Parameters
+ + + + + +
[in]Iainput three-phase coordinate a
[in]Ibinput three-phase coordinate b
[out]pIalphapoints to output two-phase orthogonal vector axis alpha
[out]pIbetapoints to output two-phase orthogonal vector axis beta
+
+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
CMSIS_INLINE __STATIC_INLINE void arm_clarke_q31 (q31_t Ia,
q31_t Ib,
q31_tpIalpha,
q31_tpIbeta 
)
+
+
Parameters
+ + + + + +
[in]Iainput three-phase coordinate a
[in]Ibinput three-phase coordinate b
[out]pIalphapoints to output two-phase orthogonal vector axis alpha
[out]pIbetapoints to output two-phase orthogonal vector axis beta
+
+
+

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, hence there is no risk of overflow.
+ +

References __QADD().

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