]> sigrok.org Git - libsigrokdecode.git/blob - decoders/ac97/__init__.py
Add a CFP decoder.
[libsigrokdecode.git] / decoders / ac97 / __init__.py
1 ##
2 ## This file is part of the libsigrokdecode project.
3 ##
4 ## Copyright (C) 2017 Gerhard Sittig <gerhard.sittig@gmx.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 AC'97 (Audio Codec '97) was specifically designed by Intel for audio and
22 modem I/O functionality in mainstream PC systems. See the specification in
23 http://download.intel.com/support/motherboards/desktop/sb/ac97_r23.pdf
24
25 AC'97 communicates full duplex data (SDATA_IN, SDATA_OUT), where bits
26 are clocked by the BIT_CLK and frames are signalled by the SYNC signals.
27 A low active RESET# line completes the set of signals.
28
29 Frames repeat at a nominal frequency of 48kHz, and consist of 256 bits
30 each. One 16bit slot contains management information, twelve 20bit slots
31 follow which carry data for three management and nine audio/modem channels.
32 Optionally two slots of one frame can get combined for higher resolution
33 on fewer channels, or double data rate.
34 '''
35
36 from .pd import Decoder