Skip to main content
Visitor II
May 22, 2013
Question

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

  • May 22, 2013
  • 1 reply
  • 665 views
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;

.....
    This topic has been closed for replies.

    1 reply

    Visitor II
    December 1, 2014
    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