LPC54018 EVK

cancel
Showing results for 
Search instead for 
Did you mean: 

LPC54018 EVK

333 Views
Sukumar_M
Contributor I

InkedIMG_20220323_145902_LI.jpg

 

Here I looking for configuration of SPI. I attached the clock diagram which I get.

Yellow pulse - SCK(clock)

Blue pulse - CS(chip select)

Red pulse -MOSI(data)

both CS and SCK are working fine. while passing data not transfer properly

here I config SPI in 8-bit transmission mode and data passing is 0xff00 but in the pulses of MOSI is not in proper manner how can be rectify.

0 Kudos
5 Replies

324 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

I suppose that your code has issue, could you share your code with us so that we can have a review?

BR

XiangJun Rong

0 Kudos

316 Views
Sukumar_M
Contributor I

Hi,

I am working with 2.4 inch TFT st7789v driver so attach there file also so you can verify this and clarify me.1.jpg2.jpg3.jpg4.jpg5.jpg6.jpg7.jpg8.jpg9.jpg10.jpg11.jpg12.jpg13.jpg14.jpg

0 Kudos

311 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

It appears that you do not call the SDK api driver function. For the SPIMaster() function you developed, it appears that the line is incorrect.

base->FIFOWR=0x0E5E0000|txvalue;

You should use:

base->FIFOWR=0x075E0000|txvalue;

Hope it can help you

BR

XiangJun Rong

0 Kudos

309 Views
Sukumar_M
Contributor I

sorry, That Time Only Use These Command .But Now also 0xFF and 0x7F issue. I can 

send this data the MOSI can Always enable are Particle time only disable but I Should set MOSI Active High.

any TFT Driver Issue.

0 Kudos

299 Views
xiangjun_rong
NXP TechSupport
NXP TechSupport

Hi,

Okay, I see.

I suppose you get the screenshot of SPI timing with the SPI_MasterTransferBlocking() function.

Because you transfers one byte for each frame, if you use the code:

uint8_t SreBuff[]

assign SreByff array with interleaved 0x00,0xFF,0x00,0xFF...

xfer.txData=SreBuff;

xfer.dataSize=sizeof(SreBuff);

SPI_MasterTransferBlocking(EXAMPLE_SPI_MASTER,&xfer);

 

Pls have a try.

BR

XiangJun Rong

 

0 Kudos