lpc176x SPI-DMA SD-card access

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

lpc176x SPI-DMA SD-card access

1,304 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by Dill on Wed Jun 20 05:01:27 MST 2012
Hello,

is it possible to access a SD-card via SPI using DMA on lpc1768?
Is there any example code available?

Thanks!
标签 (1)
0 项奖励
回复
2 回复数

1,157 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by wmues on Fri Aug 24 00:51:18 MST 2012
Using DMA via SPI for SD-cards is a very difficult thing.

For many SD-cards, you need to do bitwise shifting of incomming data for each response pattern and for each start of data block.

Due to the synchronous nature of the SD card SPI protocol, you will need CPU power for each response and for each start and end of a data block. So DMA will give NO better results than polling with the CPU.

Just my 2 cents.
0 项奖励
回复

1,157 次查看
lpcware
NXP Employee
NXP Employee
Content originally posted in LPCWare by solsal on Thu Aug 23 15:04:31 MST 2012
hi there

this is my question too:

is it possible to access a SD-card via SPI using DMA on lpc1768?
Is there any example code available?

regards
0 项奖励
回复