Bidirectional SPI communication

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Bidirectional SPI communication

2,334件の閲覧回数
AndresErni
Contributor I

The i.MX28 has a single DMA channel for SSP. So, only half-duplex transmission is possible in DMA mode. But "The SPI bus is inherently a full-duplex bidirectional interface" (17.5.1 in the reference manual).

How can I set up a single bidirectional transmission (Write data register -> start transmission -> read data register)?  

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,362件の閲覧回数
george
Senior Contributor II

All,

Now, I am using L2.6.35_1.1.0-BSP.

I also have the same problem as you.

Is this problem solved in mainline kernel?

Best Regards,

George

0 件の賞賛
返信

1,362件の閲覧回数
spearson
Contributor III

Did you make any progress on an i.MX28 full-duplex SPI driver?

Regards,

S

0 件の賞賛
返信

1,362件の閲覧回数
Conrad1z
Contributor II

In order to use SSP for bidirectional data transfer, I think we have to use SSP without DMA. To do a single transmission should not be difficult but in order to handle it efficiently for multi words transmission using interrupt driven routines will be completely different.

I really like to see examples on accessing the SSP data FIFO directly too. There is very little information about it in the datasheet. I cannot even find out the size of the FIFO!

0 件の賞賛
返信