<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://f256wiki.wildbitscomputing.com/index.php?action=history&amp;feed=atom&amp;title=Use_the_CODEC</id>
	<title>Use the CODEC - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://f256wiki.wildbitscomputing.com/index.php?action=history&amp;feed=atom&amp;title=Use_the_CODEC"/>
	<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=Use_the_CODEC&amp;action=history"/>
	<updated>2026-04-16T03:13:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://f256wiki.wildbitscomputing.com/index.php?title=Use_the_CODEC&amp;diff=37998&amp;oldid=prev</id>
		<title>1BitFeverDreams: /* How to use the CODEC */ link to datasheet</title>
		<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=Use_the_CODEC&amp;diff=37998&amp;oldid=prev"/>
		<updated>2025-03-11T16:56:27Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;How to use the CODEC: &lt;/span&gt; link to datasheet&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:56, 11 March 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l2&quot;&gt;Line 2:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 2:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Codec chip is a way to mix and match audio signals together for their single audio output (headphones, RCA jacks).&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Codec chip is a way to mix and match audio signals together for their single audio output (headphones, RCA jacks).&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Its datasheet can be found in the goodies github repo: https://github.com/Mu0n/F256MiscGoodies/blob/main/datasheets/WM8776_v4.1-532420.pdf&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Codec Registers ===&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;=== Codec Registers ===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key f256wikiDB:diff:1.41:old-37969:rev-37998:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>1BitFeverDreams</name></author>
	</entry>
	<entry>
		<id>https://f256wiki.wildbitscomputing.com/index.php?title=Use_the_CODEC&amp;diff=37969&amp;oldid=prev</id>
		<title>1BitFeverDreams: Created page with &quot;== How to use the CODEC ==  The Codec chip is a way to mix and match audio signals together for their single audio output (headphones, RCA jacks).  === Codec Registers ===  {| class=&quot;wikitable&quot; ! Address !! R/W !! B7 !! B6 !! B5 !! B4 !! B3 !! B2 !! B1 !! B0 !! Purpose |- | 0xD620 || W|| D7|| D6|| D5|| D4|| D3|| D2|| D1|| D0|| Command Low |- | 0xD621 || W || R6|| R5|| R4|| R3|| R2|| R1|| R0|| D8|| Command High |- | 0xD622 || R|| X|| X|| X|| X|| X|| X|| X|| Busy|| Status...&quot;</title>
		<link rel="alternate" type="text/html" href="https://f256wiki.wildbitscomputing.com/index.php?title=Use_the_CODEC&amp;diff=37969&amp;oldid=prev"/>
		<updated>2025-02-16T07:41:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== How to use the CODEC ==  The Codec chip is a way to mix and match audio signals together for their single audio output (headphones, RCA jacks).  === Codec Registers ===  {| class=&amp;quot;wikitable&amp;quot; ! Address !! R/W !! B7 !! B6 !! B5 !! B4 !! B3 !! B2 !! B1 !! B0 !! Purpose |- | 0xD620 || W|| D7|| D6|| D5|| D4|| D3|| D2|| D1|| D0|| Command Low |- | 0xD621 || W || R6|| R5|| R4|| R3|| R2|| R1|| R0|| D8|| Command High |- | 0xD622 || R|| X|| X|| X|| X|| X|| X|| X|| Busy|| Status...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== How to use the CODEC ==&lt;br /&gt;
&lt;br /&gt;
The Codec chip is a way to mix and match audio signals together for their single audio output (headphones, RCA jacks).&lt;br /&gt;
&lt;br /&gt;
=== Codec Registers ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Address !! R/W !! B7 !! B6 !! B5 !! B4 !! B3 !! B2 !! B1 !! B0 !! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| 0xD620 || W|| D7|| D6|| D5|| D4|| D3|| D2|| D1|| D0|| Command Low&lt;br /&gt;
|-&lt;br /&gt;
| 0xD621 || W || R6|| R5|| R4|| R3|| R2|| R1|| R0|| D8|| Command High&lt;br /&gt;
|-&lt;br /&gt;
| 0xD622 || R|| X|| X|| X|| X|| X|| X|| X|| Busy|| Status&lt;br /&gt;
|-&lt;br /&gt;
| 0xD622 || W|| X|| X|| X|| X|| X|| X|| X|| Start|| Control&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== How to enable (unmute) every sound device ===&lt;br /&gt;
&lt;br /&gt;
* Loop-read 0xD622 and wait until bit0 is set to 1&lt;br /&gt;
* Send 0x1F to Command Low at 0xD620&lt;br /&gt;
* Send 0x2A to Command High at 0xD621&lt;br /&gt;
* Loop-read 0xD622 and wait until bit0 is set to 1&lt;br /&gt;
&lt;br /&gt;
=== Audio input devices on the various machines ===&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! CODEC inputs !! F256Jr !! F256K !! F256K2 !! F256Jr2&lt;br /&gt;
|-&lt;br /&gt;
| AIN1|| SID|| SID|| SAM2695 MIDI|| SAM2695 MIDI&lt;br /&gt;
|-&lt;br /&gt;
| AIN2|| Line in onboard header || OPL3|| MIDI wavetable|| &lt;br /&gt;
|-&lt;br /&gt;
| AIN3|| || || PWM|| PWM&lt;br /&gt;
|-&lt;br /&gt;
| AIN4|| || || VS1053b|| VS1053b&lt;br /&gt;
|-&lt;br /&gt;
| AIN5|| || Line in onboard header|| Line in onboard header|| Line in onboard header&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Here&amp;#039;s a precise pinout diagram of the F256K as an example&lt;br /&gt;
&lt;br /&gt;
[[File:Codec.png|none|thumb|Pinout diagram for the Codec chip]]&lt;/div&gt;</summary>
		<author><name>1BitFeverDreams</name></author>
	</entry>
</feed>