MCF5475 DSPI problem with > 64 bits (4 writes to DTFR)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MCF5475 DSPI problem with > 64 bits (4 writes to DTFR)

1,249 次查看
plattroCH
Contributor I
I am experiencing a problem with longer transfers with the DSPI.
when I transfer 64 bits or less, everything works OK.
More than that, the operation is unreliable.
 
I interpret the databook as 16 longwords meaning 16 writes to the DTFR, each containing 16 bits of data + the chipselect etc., so I should be able to transfer 256 bits with no problem.
 
Can someone offer some suggestions where to look?
 
I tries to track what is happening using the DSPI Tx FIFO Debug registers DTFDRn, but got completely lost trying to track what is happening.
 
 
This is the part of the manual I am referring to:
 
27.7.2.4 Tx FIFO Buffering Mechanism
The Tx FIFO functions as a buffer of SPI data and SPI commands for transmission. The Tx FIFO holds
from 1 to 16 longwords, each consisting of a command field and a data field. SPI commands and data are added to the Tx FIFO by writing to the DTFR. Tx FIFO entries can only be removed from the Tx FIFO by being shifted out or by flushing the Tx FIFO.
标签 (1)
0 项奖励
回复
1 回复

679 次查看
plattro_
Contributor II

Soved.

See the latest user manual, the FIFO is 4 deep (Not 16 as described in the older manual)

 

0 项奖励
回复