]> sigrok.org Git - libsigrokdecode.git/blame - decoders/parallel/__init__.py
avr_isp: Add more parts
[libsigrokdecode.git] / decoders / parallel / __init__.py
CommitLineData
25e1418a
UH
1##
2## This file is part of the libsigrokdecode project.
3##
4## Copyright (C) 2013 Uwe Hermann <uwe@hermann-uwe.de>
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
4539e9ca 17## along with this program; if not, see <http://www.gnu.org/licenses/>.
25e1418a
UH
18##
19
20'''
21This protocol decoder can decode synchronous parallel buses with various
8838d018
GS
22data bits/channels counts, an (optional) clock line, and an (optional)
23select/enable/reset line.
8eafa261 24
8838d018
GS
25Data bits are taken from the decoder's lowest connected input pins. The
26input signal's data lines count need not span the full amount of the
27decoder's maximum supported data lines count. Not connected data lines
28are assumed to be low.
25e1418a 29
8838d018
GS
30Example use cases are: Connect D3/D2/D1/D0 (and CLK) to a 4-bit bus.
31Connect D7 and D6 to inspect the two most significant bits of an 8-bit
32bus (and have 8-bit values shown instead of just 2-bit values).
33
34When provided, the specified clock edge determines when data lines get
35sampled. Without a clock spec, each transition on any of the data lines
36will be shown, which can become busy/noisy depending on the input data.
37
38Another signal optionally can control the period of time within which
39the data lines' bit pattern gets interpreted. Typical use cases would be
40reset, or select, or enable signals that are related to the bus' data
41communication. This optional signal can also improve synchronization to
42wider payload data which spans several bus cycles (multiplexing).
25e1418a
UH
43'''
44
95d11271 45from .pd import Decoder