cancel
Showing results for 
Search instead for 
Did you mean: 

Is it a STR912's Bug (DMA, SSP0 Rx)?

seawwh
Associate II
Posted on January 31, 2007 at 04:03

Is it a STR912's Bug (DMA, SSP0 Rx)?

1 REPLY 1
seawwh
Associate II
Posted on May 17, 2011 at 09:35

The Following code may show you a bug of STR912.

if Run the following program segment, the LED will be on

SSP0->DR=0; //1 Send Data To SSP0

Delay_us(100); //2 Wait 100 us for the end of data transfer

for (i=0; i

T0= SSP0->DR;

StartDMA_Rx(RxBu,1); //4 Start DMA to receive the Data from SSPO

DMA_Rx_WaitEnd; //5 Waiting the end of DMA operation

LED_ON(LED3); //6 Turn On LED

The result is LED on. It means I can't clear Rx FIFO of SSP0 by reading SSP0->DR, it will alway remain one data for DMA Rx operation.

can any one give me a explanation?

[ This message was edited by: seawwh on 31-01-2007 15:19 ]