You can use as many SPI modules as can be put into the UDB resources of your PSoC5LP.
Looking at the code above - what is it that doesn't work? Is the loop never finished? In that case I would suspect that SPIM_2 is never started. Or its using a large buffer and you did not enable global interrupts.
thank you for the reply. I'm resolved the problem. I forgot to start the SPI2 Module.
But I do not understand the UDB resources. How do I calculate UDB usage? I want to know how UDB works. Is there a manual you can recommend?
1 of 1 people found this helpful
Read the Architecture TRM for the PSoC5, it explains the UDBs in quite some detail. The SPI component data sheet shows in the technical spec how many UDBs are consumed. And Creator also has a resource meter which shows how many resources are consumed by your project.