From 14a7c1d6bbc18543d0c21c888b0693478e14aba9 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 5 Apr 2020 22:31:25 -0500 Subject: [PATCH] Correctly detect LPC timeouts / aborts LPC timeouts and aborts can occur anywhere and at any time during or after a cycle, not just during the SYNC/TAR periods. --- libsigrokdecode4DSL/decoders/lpc/pd.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libsigrokdecode4DSL/decoders/lpc/pd.py b/libsigrokdecode4DSL/decoders/lpc/pd.py index 21310e6..6ae13f4 100755 --- a/libsigrokdecode4DSL/decoders/lpc/pd.py +++ b/libsigrokdecode4DSL/decoders/lpc/pd.py @@ -504,6 +504,10 @@ class Decoder(srd.Decoder): # TODO: Only memory read/write is currently supported/tested. + # Detect host cycle abort requests + if (lframe == 0) and (self.oldlframe == 0): + self.state = 'GET TIMEOUT' + # State machine if self.state == 'IDLE': # A valid LPC cycle starts with LFRAME# being asserted (low). -- 2.30.2