Part Number: TMS320F28377D
Tool/software:
I am using a TMS320F28377D and am attempting to setup one of the McBSP peripherals as a SPI master to interface with a 3-wire SPI slave which is an Infineon TLE5014 GMR. The GMR requires a command from the micro which consists of a clock signal, transmitted data and a chip select. Looking through the examples in CCS, I have been able to get this working as expected. The part that gets complicated is that after the GMR receives the command, it begins to transmit the requested data on the shared data line. I am unsure of how to get the McBSP to put it's DX line in high impedance to allow the GMR to drive the data line, or if it is even possible.
We have the GMR CSn pin connected to MFSXa, the SCLK pin connected to MCLKXa, the DATA pin connected to MDRa and to MDXa through a 750Ohm resistor.
The desired operation is as follows: pull FSX low, output clock signal on CLKX, transmit 16bits of data on DX and read/ignore data on DR (same as DX data). Once that portion completes, FSX needs to stay low and then the clock signal starts again on CLKX, DX gets put in high impedance, and DR receives 32bits of data from the GMR. Once that completes, FSX can go high.
Is it possible to setup the McBSP the way that is needed?