Hello
Short code:
SetOutBit(90, 2)
CamRdy = false
While(Not CamRdy)
If(GetInBit(90, 10)) Then
ResetOutBit(90, 2)
CamRdy = true
End If
Wend
Oscilloscope hooked up to input nr 10 and output nr 2. There is a lag of about 100ms!
If I use code:
SetOutBit(90, 2)
Sleep(100)
ResetOutBit(90, 2)
Sleep(100)
SetOutBit(90, 2)
Sleep(100)
ResetOutBit(90, 2)
Then the impulse width on the output is 102-103ms.
So nothing wrong here, looks like there is lag on the inputs.