2007-01-30 07:03 PM
Is it a STR912's Bug (DMA, SSP0 Rx)?
2011-05-17 12:35 AM
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 ]