Replies: 2 comments 2 replies
-
I'm not sure exactly what your "+HS" means, but from the images it looks like you're trying to implement something where the master holds off until the slave does a 1->0 transition on that pin. That's probably the key here. You could set a global In the main app, store a copy of I've not tried it, but off the top of my head it's be like:
You could also just ensure HSPIN is 1 before your programmatic loop like
You of course need to be sure there are no glitches (bad signal quality) on the HSPIN for either method or all bets are off. |
Beta Was this translation helpful? Give feedback.
-
good day! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone!
I ask for advice..
I work with the processor via SPI+HS. Initially, I worked out all the actions on the Arduino, because the processor port is 5V, and there was no level converter for Pico PI. An example of code for Arduino and a screenshot from the analyzer are attached
and even if I add a delay in the form of delayMicroseconds(5); Pico still manages to skip the HS level, and therefore all communication is spoiled.

use Pico as a slave - no possibility - Pico starts communicating with the processor first. Mega 2560 operates at a SPI bus frequency of 6 MHz, but has large intervals in polling the HS pin, and in the future an additional load is planned, accordingly I plan to completely switch to Pico pi. and Pico already fails at an SPI speed of > 1 MHz.
that's why I ask for advice - how to make SPI Pico work more stable? or maybe I'm wrong somewhere and didn't see something.. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions