Latency between change in voltage and readability with DigitalReadFast on Teensy 4.1

Status
Not open for further replies.
Hello,

Does anyone have a good estimate as to the latency between a voltage change on a digital pin and when it can be read correctly with DigitalReadFast?

I know that the actual command can be executed in one clock cycle but am not sure if I am going to have to introduce an additional wait period after another chip changes the voltage.

The current plan is to use a teensy 4.1 at 800 MHz to drive the clock of, and record the output of a 1-to-10 ADC chip with the following logic

Code:
while(true){
digitalWriteFast(clock, HIGH)
// store past results in memory

digitalWriteFast(clock, LOW)
while(c++<waitTime){
nop;
}

b1=digitalReadFast(pin1)
....
}
 
Status
Not open for further replies.
Back
Top