SparkFun Forums 

Where electronics enthusiasts find answers.

Search found 1 match

 Go to advanced search

SPI mater transmit problem

 by jainchen ¦  Tue Dec 30, 2014 3:39 pm ¦  Forum: Everything ARM and LPC ¦  Topic: SPI mater transmit problem ¦  Replies: 1 ¦  Views: 1639

Hi, I am using ST micro STR911FAW44X6 as SPI master to send out a hugh amount of data(136*256 bytes) to a SPI slave. I set up CLK as 10MHz, CPHA=0, CPOL=0. The way I send out the data is as follows: for ( j = 0; j < 100; j++) { for(i=0;i<256;i++) { SSP1->DR = i; while( ( SSP1->SR & 0x0001) == 0x0000...