Pico spi read interupt

I have a stem of data coming out of an SBC on SPI

I am trying to migrate from nano to pico because I need the extra speed and cost is similar

On nano I currently just have read interrupt for each incoming byte

How do i do this with the pico?

eidt : to clarify
I can use the the SPi.Transfer method.. but I just want to read incoming bytes with interrupt

Please post your existing code


void setup (void) {
  Serial.begin(115200);

  
  SPCR |= _BV(SPE);
  indx = 0;
  process = false;
  SPI.setDataMode (SPI_MODE0);
  SPI.attachInterrupt();



}

ISR (SPI_STC_vect) {
byte capture here
}

i use this on a Nano ()

I want to migrate

but i read that attach interrupt is not implemented in the pico SPI library

So does anyone know how to do it?

code posted

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.