question 1: hi in this example (dspi_master_mpc5748g) it says to do the following pin configurations,
CS - SS | J3.8 - J14.15 | PA[14] - PK[12] |
Clock | J3.6 - J13.12 | PA[15] - PK[11] |
MOSI - MISO | J3.4 - J14.13 | PA[13] - PK[9] |
MISO - MOSI | J3.2 - J14.3 | PA[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:
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?
Solved! Go to Solution.
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
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
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
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