cancel
Showing results for 
Search instead for 
Did you mean: 

ST7540 Eval Board SPI ( urg )!!!!!

elazhar
Associate II
Posted on May 22, 2013 at 11:22

Hi ,

I'm using ST7540 Eval Board and i want to send to my Micrcontroller via SPI , 24 bits

all at once

. The spi i use is 8 bit.

Here is an

excerpt

of my code :

volatile uint8_t i=3;

    while(i>0){

        i--;

        SPI1->DR=data[i];

        /* Control Register Write */

        REG_DATA_1;

        RxTx_0;

        NSS1_LOW;

    }

    /* Wait for SPI transfer to have fully completed */

    while(!(SPI1->SR & SPI_I2S_FLAG_TXE));

    while(SPI1->SR & SPI_I2S_FLAG_BSY);

NSS1_HIGHT;

.....
1 REPLY 1
t239955_st
Associate
Posted on December 01, 2014 at 10:18

hi,

 did you resolve the issue. If so can u upload the code we are facing the same issue.

Thanks

Raj.T