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.
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
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
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.
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