Hello Cheng Shi,
Are you able get the i.MX28 works in half-duplex mode using PIO method?
According to reference manual, bit 25 in HW_SSP_CTRL0 register is the "Read Mode" bit of the SPI transfer. When this and DATA_XFER are set, the SSP will read data from the device. If this is not set, then the SSP will write data to the device. So, the SSP can only transfer data in either direction in a transcation. Exchange data (send out data from SSP read in data from device) is unlikely supported, even though the SPI protocol is supposing can do so.
I am curious to know if the correct data can be read from HW_SSP_DATA when "Read Mode" is 0 after the PIO transfer has complete.
Thanks,
Peter