]> sigrok.org Git - libsigrokdecode.git/blob - decoders/mcs48/__init__.py
424c6b45bff62db0980e3ad4f82fe7723831bc4b
[libsigrokdecode.git] / decoders / mcs48 / __init__.py
1 ##
2 ## This file is part of the libsigrokdecode project.
3 ##
4 ## Copyright (C) 2018 fenugrec <fenugrec@users.sourceforge.net>
5 ##
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2 of the License, or
9 ## (at your option) any later version.
10 ##
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 ## GNU General Public License for more details.
15 ##
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, see <http://www.gnu.org/licenses/>.
18 ##
19
20 '''
21 This protocol decoder de-multiplexes Intel MCS-48 (8039, 8048, etc.) external
22 program memory accesses. This requires 14 channels: 8 for D0-D7 (data and
23 lower 8 bits of address), 4 for A8-A11 (output on port P2), ALE and PSEN.
24 An optional A12 is supported, which may be an arbitrary I/O pin driven by
25 software (use case is dumping ROM of an HP 3478A).
26
27 The two groups D0-D7 and A8-A12 must be on consecutive channels, for
28 example CH8..CH15 and CH0..CH4.
29 '''
30
31 from .pd import Decoder