13 Jun
2020
13 Jun
'20
9:04 a.m.
Tomas, On Sa, 2020-06-13 at 07:30 +0200, Tomas Kral wrote:
I introduced a delay of 100ms here in the ORC.SR loop. It compensates for RPI end running faster to FPGA end.
WHILE (S.class # Texts.Char) & (S.c # "~") DO IF S.class = Texts.Int THEN Texts.WriteInt(W, S.i, 6); SendInt(S.i) ... END ; Texts.Scan(S); Wait(100) (*RPI host delay*) END ;
I think that delays are not the best way to go. They solve the problem at hand only for a specific combination of processing and communication speed, whereas handshaking does away with it once and for all. Hellwig