This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LMP90100 SPI Interface

Other Parts Discussed in Thread: LMP90100

Hi ,

I am trying to communicate with LMP90100 through SPI with TM4C tiva controller,I will pasted my code below, I am trying to read a register 1F, but its not working .can u Help me where i am doing wrong 

ROM_GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_5,0x00); //cs make it low

pui32DataTx[0]=0x90;                                                   // read register
pui32DataTx[1]=0x01;                                                            // ura

while(ROM_SSIBusy(SSI2_BASE)){}

ROM_SSIDataPut(SSI2_BASE,pui32DataTx[0]);
while(ROM_SSIBusy(SSI2_BASE)){}
ROM_SSIDataPut(SSI2_BASE,pui32DataTx[1]);
pui32DataTx[2]=0xAF;  // read +2 bytes+LRA
while(ROM_SSIBusy(SSI2_BASE)){}
ROM_SSIDataPut(SSI2_BASE,pui32DataTx[2]);
while(ROM_SSIBusy(SSI2_BASE)){}
pui32DataTx[3]=0xff;                                                                   // writing dummy byte
ROM_SSIDataPut(SSI2_BASE,pui32DataTx[3]);
while(ROM_SSIBusy(SSI2_BASE)){}
ROM_SSIDataGet(SSI2_BASE, &pui32DataRx[0]);
while(ROM_SSIBusy(SSI2_BASE)){}
ROM_GPIOPinWrite(GPIO_PORTB_BASE,GPIO_PIN_5,0xFF);                          //cs make disable(high)


UARTprintf("DATAFROM REGISTER = %d\n",pui32DataRx[0]);