Jump to content
43oh

halancik

Members
  • Content Count

    1
  • Joined

  • Last visited

Everything posted by halancik

  1. Hello, I try to comunicate with ADXRS450 via SPI. But receive data is always is same. All detail and code: #include "msp430.h" #include <signal.h> #define CS_DIS {P1DIR|=BIT3;P1OUT|=BIT3;} #define CS_ENA {P1DIR|=BIT3;P1OUT&=~BIT3;} void SPI_Write(unsigned char Data_for_write); void SPI_Disable(void); void SPI_Init(void); int SPI_Read(void); void ADXRS450_Init(void); unsigned char Byte; long Measure_byte_first; long Measure_byte_second; long Measure_byte_third; long Measure_byte_four; long Measurement; int main() { WDTCTL = WDTPW + WDTHOLD; CS_DIS; SPI_Init(); __dela
×
×
  • Create New...