Hi everyone!
I am having a problem with the communication between my MSP430f5507 and my CC1125. I have based my software on the spi access coes from TI:s software examples for the TRxEB. Anyhow when I debug my program I cannot get past the line that strobes a command to the radio. Its this line:
while(TRXEM_PORT_IN & TRXEM_SPI_MISO_PIN);
I have these declarations for the TRXEM pins and ports:
#define TRXEM_PORT_SEL P4SEL
#define TRXEM_PORT_OUT P4OUT
#define TRXEM_PORT_DIR P4DIR
#define TRXEM_PORT_IN P4IN
#define TRXEM_SPI_MOSI_PIN BIT1
#define TRXEM_SPI_MISO_PIN BIT2
#define TRXEM_SPI_SCLK_PIN BIT3
#define TRXEM_SPI_SC_N_PIN BIT0
#define RF_RESET_N_PORT_OUT P1OUT
#define RF_RESET_N_PORT_SEL P1SEL
#define RF_RESET_N_PORT_DIR P1DIR
#define RF_RESET_N_PIN BIT7
GPIO0 is connected to P1.4, GPIO2 is connected to P1.5, GPIO3 is connected to P1.6 and Reset is connected to P1.7. I dont know why it keeps getting stuck on this line? Can someone help me please?
/Mikael