X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=decoders%2Fx2444m%2Fpd.py;h=57f12252d750c1d467a144a542c559b2ec85f6b2;hb=317eaa7fd83fb049db97e863a306992a34fcf490;hp=8a2852adecf33d0f9428f294b372c576ed731935;hpb=d6d8a8a440ea2a81e6ddde33d16bc84d01cdb432;p=libsigrokdecode.git diff --git a/decoders/x2444m/pd.py b/decoders/x2444m/pd.py index 8a2852a..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,7 @@ 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'), @@ -49,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):