Problem Using Teensy 4.0 as slave
Hi,
I am currently using a library that sets the Teensy 4.0 as slave to communicate via SPI with an openBCI. I would like to add to this board a teensy so I can add more features to the board. Currently I am trying to send the date to the openBCI just to test the implementation.
Before working with the OpenBCI, I tested the slave code with another teensy that serves as a master. They both worked properly, I sent a command with the teensy#1 (Master), then the teensy #2 (slave) calculated the date and sent it to the master.
When I do the same with the pic32 the data stream from the pic32 gets corrupted only when I connect the MISO to the board. While I was looking at the gui, the data stopped sending, as soon as I disconnect the MISO, the GUI keeps ploting the signals. When I connect the CS, the SCK and the MOSI while checking with the oscilloscope, the MISO sends the data correctly from the teensy (slave) to the oscilloscope. At the moment I connect the MISO to the pic, the pin voltage changes completely (both devices use a 3.3V architecture).
I tried only connecting the MISO to the Pic and the same problem happened. Maybe if someone knows about this problem or something similar. Maybe the voltages are not the same in both ports and are generating a type of shortcircuit.
Looking forward to your replies and thank you for your responses.