Can the imx28 spi work in duplex mode

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

Can the imx28 spi work in duplex mode

2,622 Views
x10
Contributor V

Hi, All

I try to make imx28 spi work in duplex mode using pio method, and it's failed so far. Please let me know if anyone implements spi transfer in duplex mode. Thanks!

BR

Cheng Shi

emtronix

Labels (1)
0 Kudos
Reply
12 Replies

1,773 Views
YixingKong
Senior Contributor IV

Cheng Shi

This discussion is closed since no activity. If you still need help, please feel free to reply with an update to this discussion, or create another discussion.

Thanks,

Yixing

0 Kudos
Reply

1,773 Views
YixingKong
Senior Contributor IV

Cheng Shi

Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help, please feel free to reply with an update to this discussion.

Thanks,

Yixing

0 Kudos
Reply

1,773 Views
YixingKong
Senior Contributor IV

Cheng


Had your issue got resolved? If yes, we are going to close the discussion in 3 days. If you still need help please feel

free to contact Freescale.

Thanks,
Yixing

0 Kudos
Reply

1,773 Views
x10
Contributor V

not yet

Cheng Shi

0 Kudos
Reply

1,773 Views
YixingKong
Senior Contributor IV

Cheng Shi

I will branch your question into an internal group and ask AE to reply.

Thank you for your patient,

Yixing

0 Kudos
Reply

1,773 Views
x10
Contributor V

Thanks Yixing

Cheng Shi

0 Kudos
Reply

1,773 Views
MarekVasut
Senior Contributor I

The i.MX28 SPI controller can work only in Half-Duplex mode, not ever in Full-Duplex mode.

0 Kudos
Reply

1,773 Views
alfred_liu
NXP Employee
NXP Employee


Hi, Marek&Peter

maybe it's not the question for this topic, but I still want know if all i.mx chips don't support full-duplex.

Many thanks

0 Kudos
Reply

1,773 Views
MarekVasut
Senior Contributor I

The Sigmatel SPI block (present in STMP37xx, then in i.MX23 and i.MX28) can only do Half-Duplex.

The Freescale CSPI and ECSPI block (present in the rest) can only do Full-Duplex.

0 Kudos
Reply

1,773 Views
ZeeFrench
NXP Employee
NXP Employee

That's right but you can combine the 2 SSP (MOSI from one in master, MISO from the other in slave with same clock from master to slave) to get a full duplex SPI. Got a customer that implement it for a NFC chip that was replying while being talked to but he didn't share the driver.

Cheers, Philippe.

0 Kudos
Reply

1,773 Views
alfred_liu
NXP Employee
NXP Employee

Hi, Marek

thanks for the information.

it's very helpful.

0 Kudos
Reply

1,773 Views
PeterChan
NXP Employee
NXP Employee

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

0 Kudos
Reply