GD3160 SPI Example code Question

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

GD3160 SPI Example code Question

289 Views
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 Kudos
1 Reply

277 Views
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 Kudos