11 years, 3 months ago.

spi slave, how to send 255 byte at once?

Dear all,

I'm using the mbed lpc1768 as a spi slave. this is the code , it is working:

  1. define transmissionSize 5 while(1) {

for(int i=0; i<transmissionSize;i++) device.reply(i);

myIRQ = 0; myIRQ = 1; wait(5); }

When my master try to receive, everythings go as I expect. But, If I set transmissionSize to a number higher than 5 then the program stops to work, the while cycle stops.

Any ideas? thanks

Be the first to answer this question.