The available versions of the
function are shown in the following
table:
Table 2-14. Function versions
Function name
Input type
Output type
Result type
GMCLIB_SvmIct_F16
General sinusoidal space vector modulation with a 16-bit fractional stationary (
α
-
β
) input and a
16-bit fractional three-phase output. The result type is a 16-bit unsigned integer, which indicates
the actual SVM sector. The input is within the range <-1 ; 1); the output duty cycle is within the
range <0 ; 1). The output sector is an integer value within the range <0 ; 7>.
2.9.2 Declaration
The available
functions have the following declarations:
*psOut)
2.9.3 Function use
The use of the
function is shown in the following example:
#include "gmclib.h"
static
static
sAlphaBeta;
static
void Isr(void);
void main(void)
{
/* Alpha, Beta structure initialization */
(0.0);
}
/* Periodical function or interrupt */
void Isr(void)
{
/* SVM calculation */
u16Sector = GMCLIB_SvmIct_F16(&sAlphaBeta, &sAbc);
}
2.10 GMCLIB_SvmU0n
Chapter 2 Algorithms in detail
GMCLIB User's Guide, Rev. 2, 10/2015
Freescale Semiconductor, Inc.
55
Содержание DSP56800E
Страница 1: ...GMCLIB User s Guide DSP56800E Document Number DSP56800EGMCLIBUG Rev 2 10 2015 ...
Страница 2: ...GMCLIB User s Guide Rev 2 10 2015 2 Freescale Semiconductor Inc ...
Страница 4: ...GMCLIB User s Guide Rev 2 10 2015 4 Freescale Semiconductor Inc ...
Страница 64: ...GMCLIB_SvmU7n GMCLIB User s Guide Rev 2 10 2015 64 Freescale Semiconductor Inc ...
Страница 78: ...GMCLIB User s Guide Rev 2 10 2015 78 Freescale Semiconductor Inc ...