Devkit MPC5744P and MotorGD config problems

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Devkit MPC5744P and MotorGD config problems

跳至解决方案
1,403 次查看
haoxue1027
Contributor IV

Hello,marius
Sorry to trouble you beacuse community site is" Site Undergoing Maintenance".
Now I want to use the Devkit MPC5744P (rev E)and MotorGD to produce the PWM singal on the side of mosfet.
But I failed.
In the simulink demo, the config is recommended as belowing.

haoxue1027_0-1598921302555.png

But I found that it seemed some errors here.
I cannot find the cs=PG5.
I checked  the MotorGD pin set and Devkit MPC5744P (rev E) pin set:

haoxue1027_1-1598921344897.png

haoxue1027_2-1598921354836.png

It is different from the recommend config in the simulink demo。
I am so confused about it.
Can you help me solve it?
Thank you very much。
best regards。

hao

标签 (1)
0 项奖励
1 解答
1,398 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @haoxue1027,

I think there is a typo in the project description. If you have a look on the LPSPI config block, it actually uses the PC5 as clock.

mariuslucianand_0-1598948579296.png

 

Hope this helps,

Marius

 

在原帖中查看解决方案

5 回复数
1,399 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @haoxue1027,

I think there is a typo in the project description. If you have a look on the LPSPI config block, it actually uses the PC5 as clock.

mariuslucianand_0-1598948579296.png

 

Hope this helps,

Marius

 

1,392 次查看
haoxue1027
Contributor IV

Hello,marius.

Thank you for replying.

MotorGD is ok when the clock is configrated PC5.

In addition, When I use an oscilloscope to measure the signals of these two PHA_HSG and the PHA_LSG signal, the signal is shown in the figure below,the deadtime is 15us.

haoxue1027_0-1598961593176.png

But deadtime is set to SPI_Data = 0x81 in the fet pre-driver and set to 100ns in the PWM config block.

I want to know how to decrese the deadtime in the hardware?

best regards

hao

 

 

0 项奖励
1,364 次查看
adriantudor
NXP Employee
NXP Employee

Hi @haoxue1027,

In the project description is an error regarding to pins recommended to be used with Rev. E.

The problem with the deadtime is due to incorrect settings of the CS pin. The deadtime of the GD3000 circuit is set with the CS pin set in the TPP Config block. In the SPI block please use other CS pin (any unused pin in the project) or you can not use CS at all. The CS pin set in TPP Config will do the job of the traditional cs pin of SPI block and this will also set the deadtime, but you don't have to set any CS in the SPI block.

I see that you want to set 100ns for deadtime. There will be some inaccuracy of the deadtime PWM outputs. The reason is that the deadtime is dependent on the internal clock of GD3000 ic and the payload of functions who set deadtime at the config step, but anyway it should be much lower than 15us.

Best regards,

Adrian

0 项奖励
1,344 次查看
haoxue1027
Contributor IV

Hello,Adrian

Thank you very much for your replying.

I used the TPP config ,but the GD3000 did not work.

SO I used the stateflow to implement the sequence.

I will try to set the config as your advices again.

best regards

hao

0 项奖励
1,374 次查看
mariuslucianand
NXP Employee
NXP Employee

Hello @haoxue1027 ,

@adriantudor can help you with the information requested.

Regards,

Marius

0 项奖励