diff options
author | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-05-12 22:21:39 +0200 |
---|---|---|
committer | Gerhard Sittig <gerhard.sittig@gmx.net> | 2018-05-12 23:35:15 +0200 |
commit | 52e8d8b7548f7fdc2fe56bc133fe60b8147fb3b8 (patch) | |
tree | 4268445b4db637631f60021577ff0a9beb95e584 /decoders/mcs48/__init__.py | |
parent | 426325ea2b66658b8062525db78a9b50d79ce507 (diff) | |
download | libsigrokdecode-52e8d8b7548f7fdc2fe56bc133fe60b8147fb3b8.tar.gz libsigrokdecode-52e8d8b7548f7fdc2fe56bc133fe60b8147fb3b8.zip |
mcs48: add reset method, make A12 optional, unassorted adjustment
Add the reset() method which recently has become essential. Make the A12
"memory bank" address line optional. Use more Python idioms. Update
comments.
The control signals had to move, to avoid gaps between D7 and A8 as well
as between A11 and A12 in the GUI decoder properties dialog. With
dynamic assignment in the UI and with named references in the CLI this
shall not harm. Unmodified automated tests still pass.
The logic is prepared to handle data, address, and "bank" pin groups at
arbitrary locations, A[11:8] and D[7:0] need not be adjacent any longer.
Support for more than one memory bank pin is prepared, but the number of
bank pins needs to get determined at the start of decode(), when this
feature is to get added in the future.
Diffstat (limited to 'decoders/mcs48/__init__.py')
-rw-r--r-- | decoders/mcs48/__init__.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/decoders/mcs48/__init__.py b/decoders/mcs48/__init__.py index 424c6b4..54c01cc 100644 --- a/decoders/mcs48/__init__.py +++ b/decoders/mcs48/__init__.py @@ -23,9 +23,6 @@ program memory accesses. This requires 14 channels: 8 for D0-D7 (data and lower 8 bits of address), 4 for A8-A11 (output on port P2), ALE and PSEN. An optional A12 is supported, which may be an arbitrary I/O pin driven by software (use case is dumping ROM of an HP 3478A). - -The two groups D0-D7 and A8-A12 must be on consecutive channels, for -example CH8..CH15 and CH0..CH4. ''' from .pd import Decoder |