Quantcast
Channel: Microcontrollers
Viewing all articles
Browse latest Browse all 239515

Forum Post: RE: Help with a small fragment of SLAA281b SPI sample code

$
0
0

I have changed the following lines of code (hal_SPI.h):

  •  #define halSPITXDONE  !(UCA0STAT&UCBUSY)      /* Wait for TX to finish */
  •  #define halSPITXDONE  !(UCA1STAT&UCBUSY)      /* Wait for TX to finish */
  •  #define halSPITXDONE  !(UCB0STAT&UCBUSY)      /* Wait for TX to finish */

and codestarted to operatewithout using bitbanging technique. Before, the program got stuck in the loop while(!halSPITXDONE);


Viewing all articles
Browse latest Browse all 239515

Latest Images

Trending Articles



Latest Images