What operation is performed here? When to shift bits and when to shift binary points? To what value scaling is done?

조회 수: 2(최근 30일)
I am using TI's Piccolo F28027 C2000 MCU for the application of Field Oriented Control of PMSM motor using Embedded Coder Support Package.
I have referred an example for Model based Code Development from file exchange - "c28027pmsmfoc_ert".
When currents Ia/Ib are sampled through ADC, then these current inputs are scaled. Below is the screenshot of that.
Please explain me when to shift bits and when to shift binary points?
And what has been done here, and to what values they are scaled ?
Any help is appreciated.


Darshan Pandit
Darshan Pandit 2020년 2월 13일
Hi Sanjeev,
The F28027 is a fixed point processor, and when we read currents from ADCs, these are scaled from ADC Counts to per-unit system applied for embedded system.
I'd suggest you to go through the following post, where I've explained answer to a similar question:
Also, if you would like to understand the per-unit system concepts, applied to embedded systems, you may refer to the following post:
Once you go through these, please let us know if you still have any doubts.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by