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);