S12ZVM12EVB Evaluation Board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S12ZVM12EVB Evaluation Board

Jump to solution
1,301 Views
sohyunjang
Contributor III

Hi.

I use S12ZVM12EVB Evaluation Board.

And I test BLDC / PMSM control application given by NXP.

I have some question.

1. I am wondering how 45ZWN2490B(given by board) Motor's phase UVW match green, blue, white color.

2. I use MC9S12ZVML128_BLDC_Sensorless. I dont know how I drive reverse rotation (should I add code?).

3. I am wondering there are application used resolver with S12ZVM12EVB Evaluation Board.

Labels (1)
0 Kudos
1 Solution
977 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi

It doesn’t matter how you connect phases. It will work in any case. However, it determines the direction in which the motor rotates, so if you switch two phases, you change the direction.

You can change the direction by software.

In the MCS12ZVML128_BLDC_Sensorless.c there are following constants:

const char MaskVal[6]      = {0x34,0x1c, 0x13,0x31, 0x0d,0x07};

const char OutCtl[6]         = {0x0c,0x30, 0x30,0x03, 0x03,0x0c};

const char BemfPhase[6] = {0x03,0x02, 0x01,0x03, 0x02,0x01};

then replace 0-5 1-4 2-3.

const char MaskVal[6]      = {0x07,0x0d, 0x31,0x13, 0x1c,0x34};

const char OutCtl[6]         = {0x0c,0x03, 0x03,0x30, 0x30,0x0c};

const char BemfPhase[6] = {0x01,0x02, 0x03,0x01, 0x02,0x03};

Note: Do not change the direction while the motor is running.

Unfortunately, we don’t have any application for a resolver.

Regards

Daniel

View solution in original post

0 Kudos
5 Replies
978 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi

It doesn’t matter how you connect phases. It will work in any case. However, it determines the direction in which the motor rotates, so if you switch two phases, you change the direction.

You can change the direction by software.

In the MCS12ZVML128_BLDC_Sensorless.c there are following constants:

const char MaskVal[6]      = {0x34,0x1c, 0x13,0x31, 0x0d,0x07};

const char OutCtl[6]         = {0x0c,0x30, 0x30,0x03, 0x03,0x0c};

const char BemfPhase[6] = {0x03,0x02, 0x01,0x03, 0x02,0x01};

then replace 0-5 1-4 2-3.

const char MaskVal[6]      = {0x07,0x0d, 0x31,0x13, 0x1c,0x34};

const char OutCtl[6]         = {0x0c,0x03, 0x03,0x30, 0x30,0x0c};

const char BemfPhase[6] = {0x01,0x02, 0x03,0x01, 0x02,0x03};

Note: Do not change the direction while the motor is running.

Unfortunately, we don’t have any application for a resolver.

Regards

Daniel

0 Kudos
982 Views
sohyunjang
Contributor III

Thanks your command.

And I have some question.

1. I use AN5327sw and AN5135sw application. I dont know how I drive reverse rotation (should I add code?).

2.  Is there MCAT Tool in AN5135sw? I find MC9S12ZVML128_PMSM_Sensorless.pmp in AN5135sw. but it is not MCAT Tool.

3. I use PMSM sensored FOC control( shunt register and linear sensor used). So I use on the basis of AN5327sw and AN5135sw. I am wondering that I use POSPE_FLT.c part of MTRCKTSPS5643L application. Is it no problem?

0 Kudos
982 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

 

Unfortunately, I’m not aware of any other way by which you could reverse the direction.

 

The file you found, MC9S12ZVML128_PMSM_Sensorless.pmp, is FreeMASTER project with MCAT plug-in. You can find more information here.

The MTRCKTSPS5643L software is written for MPC564x and therefore it is not compatible. But you can basically add whatever you want if it works.

 

Regards,

Daniel

0 Kudos
981 Views
sohyunjang
Contributor III

Thanks your command.

I mean, I dont know how I drive reverse rotation MC9S12ZVML128_PMSM_Sensorless. Not MCS12ZVML128_BLDC_Sensorless.

I can drive reverse rotation MCS12ZVML128_BLDC_Sensorless by your commands.

replace 0-5 1-4 2-3.

const char MaskVal[6]      = {0x07,0x0d, 0x31,0x13, 0x1c,0x34};

const char OutCtl[6]         = {0x0c,0x03, 0x03,0x30, 0x30,0x0c};

const char BemfPhase[6] = {0x01,0x02, 0x03,0x01, 0x02,0x03};

And Can I get some Information that S12ZVMx12EVM. Maby I have old version EVM.

EVM information is

S/N: 0213-27484-0055

170-27485 REV A

SCH-27484 REV A

700-27484 REV X2

0 Kudos
981 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi

 

You can reverse rotation in MCAT, if you put negative speed.

MCAT.png

You can find all information about the board here.

Regards

Daniel