X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fx2444m%2Fpd.py;h=57f12252d750c1d467a144a542c559b2ec85f6b2;hb=317eaa7fd83fb049db97e863a306992a34fcf490;hp=2fa4d3848e9dfbafd58a778b7187f862e1489455;hpb=2eb6af30c323a8e3f692f1030f2726b661745f6d;p=libsigrokdecode.git diff --git a/decoders/x2444m/pd.py b/decoders/x2444m/pd.py index 2fa4d38..57f1225 100644 --- a/decoders/x2444m/pd.py +++ b/decoders/x2444m/pd.py @@ -28,7 +28,8 @@ registers = { 0x84: ['WREN', 4, lambda _: ''], 0x85: ['RCL', 5, lambda _: ''], 0x86: ['READ', 6, lambda v: '0x%x' % v], - 0x87: ['READ', 7, lambda v: '0x%x' % v], + 0x87: ['READ', 6, lambda v: '0x%x' % v], + # 0x86/0x87 are both valid READ commands (bit 0 is "don't care"). } class Decoder(srd.Decoder): @@ -39,7 +40,8 @@ class Decoder(srd.Decoder): desc = 'Xicor X2444M/P nonvolatile static RAM protocol.' license = 'gplv2+' inputs = ['spi'] - outputs = ['x2444m'] + outputs = [] + tags = ['IC', 'Memory'] annotations = ( ('wrds', 'Write disable'), ('sto', 'Store RAM data in EEPROM'), @@ -48,7 +50,6 @@ class Decoder(srd.Decoder): ('wren', 'Write enable'), ('rcl', 'Recall EEPROM data into RAM'), ('read', 'Data read from RAM'), - ('read', 'Data read from RAM'), ) def __init__(self):