Hi,
I wanna drive P10 LED matrix blocs
I don't know what a "P10 LED matrix" - and I don't have to.
But you should know.
Especially what interface they use and what protocol...
I think this is the most important thing, because you can't change it - you need to comply with it.
--> If they use SPI, then (you have to) use SPI at the microcontroller side, too.
For sure you are free to build a "bridge" between different interfaces.
*****
After data processing, i use SPI register to transmitt datas. So, actually i not use SPI protocols completly. Just using the resgitser to sending datas.
SPI is no protocol...it's just a synchronous serial shift of data. Usually in multiples of 8 bits.
Are you sure you know how SPI works?
MOSI, MISO, SCK, SS .... usually are the signals you need for an SPI interface.
For one way communication you may omit MISO, but with your application I recommend to use some feedback.
Imagine: you transfer a block of 1024 bytes = 8192 bits. If there is a erroneous SCK signal in the first transmitted bits, then all following bits result in wrongly received data.
With UART ... there is only one (or two) bytes of the 1024 bytes wrong. (There may be exceptions)
BTW. What microcontroller do you use?
Klaus