Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
11 years, 11 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:
- 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