STM32F1 CMSIS DSP Controller Functions

Started by tha, July 23, 2021, 07:40:16 AM

Previous topic - Next topic

tha


tha


tha



tha


tha

file:///D:/System%20Workbench/STM32CubeF1-master/Drivers/CMSIS/docs/DSP/html/group__clarke.html



Description

Forward Clarke transform แปลง the instantaneous stator phases ลงใน a two-coordinate time invariant vector. โดยทั่วไป the Clarke transform ใช้ three-phase currents Ia, Ib and Ic คำนวณกระแสใน the two-phase orthogonal stator axis Ialpha and Ibeta. เมื่อ Ialpha ถูกซ้อนกับ Ia ดังแสดงในรูปข้างล่าง

     

และ Ia + Ib + Ic = 0, ในเงื่อนไขนี้ Ialpha and Ibeta สามารถถูกคำนวณโดยใช้เฉพาะ Ia and Ib.

The function ทำงานบน a single sample of data และแต่ละการเรียกถึง the function คืนกลับค่า the processed output. The library จัดให้มีฟังชั่นที่แยกกันสำหรับ Q31 and floating-point data types.

Algorithm

       

โดยที่ Ia and Ib เป็น the instantaneous stator phases และ pIalpha and pIbeta คือ the two coordinates of time invariant vector.

Fixed-Point Behavior

ต้องใช้ความระมัดระวังเมื่อใช้ the Q31 version of the Clarke transform. โดยเฉพาะอย่างยิ่ง, the overflow and saturation behavior of the accumulator used ต้องถูกพิจารณา. อ้างอิงถึง the function specific documentation  ข้างล่างสำหรับแนวทางการใช้งาน.

ปล. ลองดูที่นี่พอจะเข้าใจไหม ไม่ยากนะ ไล่ดูในไฟล์ arm_math.h ก็ได้
      https://www.blockdit.com/posts/5ef8b0e52e64230ca5bc23b8

tha


tha



Scaling and Overflow Behavior:

The function ถูกจัดให้มีใช้โดยใช้ an internal 32-bit accumulator. The accumulator รักษา 1.31 format โดยการตัด lower 31 bits of the intermediate multiplication ใน 2.62 format. มี saturation บน the addition, ดังนั้นไม่มีความเสี่ยงของ overflow.

References __QADD().

tha

file:///D:/System%20Workbench/STM32CubeF1-master/Drivers/CMSIS/docs/DSP/html/group__inv__clarke.html



Description

Inverse Clarke transform แปลง the two-coordinate time invariant vector ไปเป็น instantaneous stator phases.

The function ทำงานบน a single sample of data และแต่ละการเรียกถึง the function คืนกลับค่า the processed output. The library จัดให้มีฟังชั่นที่แยกกันสำหรับ Q31 and floating-point data types.

Algorithm

       

โดยที่ pIa and pIb เป็น the instantaneous stator phases และ Ialpha and Ibeta เป็น the two coordinates of time invariant vector.

Fixed-Point Behavior

ต้องใช้ความระมัดระวังเมื่อใช้ the Q31 version of the Clarke transform. โดยเฉพาะอย่างยิ่ง, the overflow and saturation behavior of the accumulator used ต้องถูกพิจารณา. อ้างอิงถึง the function specific documentation  ข้างล่างสำหรับแนวทางการใช้งาน.