dspi_master_mpc5748g example

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

dspi_master_mpc5748g example

Jump to solution
534 Views
turkmani_11
Contributor III

question 1: hi in this example (dspi_master_mpc5748g) it says to do the following pin configurations,

CS - SSJ3.8 - J14.15PA[14] - PK[12]
ClockJ3.6 - J13.12PA[15] - PK[11]
MOSI - MISOJ3.4 - J14.13PA[13] - PK[9]
MISO - MOSIJ3.2 - J14.3PA[12] - PK[10]

 

which pins are for master and which are for slave?

j3.8,j3.6,j3.4,j3.2 are for slave?

question 2:  the array to be sent in the code is defined as  uint8_t master_send[BUFFER_SIZE] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};

when calling it to be sent its called like this:  DSPI_MasterTransferBlocking(DSPI0_INSTANCE, master_send, master_receive, NUMBER_OF_FRAMES, TIMEOUT);

we arent sending the values that are defined in the array the values are viewed as:

 

arr.png

 if we want to we should define it as master_receive[i] and put it in a for loop , when i do that , it doesnt work, can you please help me by telling me how are we able to send the values that are defined in the array?

 

0 Kudos
1 Solution
506 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

are you using MPC5748g or MPC5746C? Seems you debug dspi_master_mpc5746c and shows pins config to this example. The dspi_master_mpc5748g configs DSPI_0 for master and SPI_0 for slave with below config

PetrS_0-1664267279381.png

PetrS_1-1664267286541.png

PetrS_2-1664267296062.png

j3.8,j3.6,j3.4,j3.2 are for master pins

If you do no connection still you must see signal on j3.8,j3.6,j3.4 as master is sending  master_send buffer.

BR, Petr

 

View solution in original post

0 Kudos
1 Reply
507 Views
PetrS
NXP TechSupport
NXP TechSupport

Hi,

are you using MPC5748g or MPC5746C? Seems you debug dspi_master_mpc5746c and shows pins config to this example. The dspi_master_mpc5748g configs DSPI_0 for master and SPI_0 for slave with below config

PetrS_0-1664267279381.png

PetrS_1-1664267286541.png

PetrS_2-1664267296062.png

j3.8,j3.6,j3.4,j3.2 are for master pins

If you do no connection still you must see signal on j3.8,j3.6,j3.4 as master is sending  master_send buffer.

BR, Petr

 

0 Kudos