Sir is there a need to do Chip Select first and then push data into Tx fifo.
Solved! Go to Solution.
Hi,
you need to write 32bit word into PUSHR (16bit command+ 16bit data). This command word specify CTAR used, which chipselect is used, etc.
So assuming DSPI_3_PUSHR = 0x08011111, command word is 0x0801. That means CTAR0 setting is used and PCS0 will be asserted during transfer. Also EOQ bit is set so further transfers will not continue until SR[EOQF] is cleared.
BR, Petr
Hi,
because it is defined this way in header file, see MPC5748G.h file.
You can also use DSPI_3_PUSHR = 0x08011111;
BR, Petr
Sir do we need to add data into fifo and do chip select or do chip select first and push data into fifo.
Hi,
you need to write 32bit word into PUSHR (16bit command+ 16bit data). This command word specify CTAR used, which chipselect is used, etc.
So assuming DSPI_3_PUSHR = 0x08011111, command word is 0x0801. That means CTAR0 setting is used and PCS0 will be asserted during transfer. Also EOQ bit is set so further transfers will not continue until SR[EOQF] is cleared.
BR, Petr