GD3160 SPI Example code Question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

GD3160 SPI Example code Question

437件の閲覧回数
HERO_LEE
Contributor I

Hello, I'm designing the inverter using GD3160 and I have a question regarding SPI.

I'm using TriCore367 MCU, so I'm having trouble implementing it.

 

1. I received the example code provided by NXP and what GPIO means in this structure is the MOSI pin?

Then, based on the example code, do you use two channels as 3 devices? (*GD31xx.h)

/// SPI channels for daisy chain operation
enum SpiChannelDC
{
SPI_L = 105, // GPIO105
SPI_H = 106, // GPIO106
};  

 

2. When using the Daisy Chain method, can I bundle 6 devices at once? Or should I use 2 channels of 3 devices each?
For example, using two channels:

TOP: MOSI1 -> Device 1->2->3 -> MISO1
BOTTOM : MOSI2->Device 4->5->6 ->MISO2

Do I have to assign pins to each MCU like this?

 

 

Thank you for always helping me.

0 件の賞賛
返信
1 返信

425件の閲覧回数
diazmarin09
NXP TechSupport
NXP TechSupport

Hello HERO_LEE,

I hope all is great with you. Thank you for using the NXP communities.

You are correct, the daisy chain operation reduces the total MCU pin count for SPI and increases message length and polling times.. The recommended implementation for inverter applications requiring functional safety is to have two parallel chains of three devices: one daisy chain for three high-side gate drivers, one daisy chain for three low-side gate drivers).

diazmarin09_0-1703691771375.png

 

I hope this information helps.

Regards,

David

0 件の賞賛
返信