Quantcast
Channel:
Viewing all articles
Browse latest Browse all 59170

Forum Post: [SH7619] SPI Reception Operation - Half-Duplex Reception by DMA

$
0
0
I am implementing Half-Duplex Reception by DMA for SIOF peripheral of SH7619 to receive 512 bytes of data from SD card. (Please refer to Figure 16.27 (Page 509 of 816) of Hardware Manual of SH7619: http://documentation.renesas.com/doc/products/mpumcu/rej09b0237_sh7619.pdf ). We setting SIOF and DMA as Table 16.13: TXE = 0; RXE = 1; TDMAE = 0; RDMAE = 1; We will receive each 4 bytes of data from SD card following the sequence in Figure 16.27 but we have a problem. After we disable reception at the Step No.9 of Figure 16.27, the auto-transmission still transfers more one byte to SD card and SD card responses 1 byte of data. This byte of data is not pushed to Receive FIFO because reception is disabled. Therefore this byte is lost. Could you please help us to solve this problem? Thank you very much for your support.

Viewing all articles
Browse latest Browse all 59170

Trending Articles