Skip to main content
6 events
when toggle format what by license comment
Jan 10, 2024 at 20:04 comment added Delta_G @Abed. The Serial data is already interrupt driven. When you call Serial.print all you are doing is loading a buffer. It only becomes blocking if the buffer is already full. If that is what is happening then the problem is that you have more data than you have time to send. Adding more interrupts won't solve that problem.
Jan 10, 2024 at 20:02 comment added Delta_G The delayMicroseconds is to allow the ADC chip time to load its registers. 5uS may be a bit long, but some delay will be necessary. You should consult the datasheet for the ADC.
Aug 7, 2019 at 7:26 comment added Abed Thank you for your assistance. I managed to store bunch of bytes (e.g 270 bytes) at the reading part and send the big size array in the next part. But, the problem is that during sending the big array, I lose new incoming data. Is there any way to define an interrupt and do multi-task (Sending and receiving)?
Aug 6, 2019 at 14:46 comment added CrossRoads dataByte[0] = SPI.transfer(0x00); dataByte[1] = SPI.transfer(0x00); dataByte[2] = SPI.transfer(0x00); ... dataByte[25] = SPI.transfer(0x00); dataByte[26] = SPI.transfer(0x00);
Aug 6, 2019 at 14:06 comment added Abed Thank you, How can I put the the whole 27 bytes in an array?
Aug 6, 2019 at 12:49 history answered CrossRoads CC BY-SA 4.0