Skip to content

Replace the fake files #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
365 changes: 173 additions & 192 deletions backupHamsterWorkSite/File_I3c2_assemble.c
Original file line number Diff line number Diff line change
@@ -1,192 +1,173 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" dir="ltr">
<head>
<title>File:I3c2 assemble.c - Hamsterworks Wiki!</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="generator" content="MediaWiki 1.16.2" />
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="search" type="application/opensearchdescription+xml" href="/mediawiki/opensearch_desc.php" title="Hamsterworks Wiki! (en)" />
<link rel="alternate" type="application/atom+xml" title="Hamsterworks Wiki! Atom feed" href="/mediawiki/index.php?title=Special:RecentChanges&amp;feed=atom" />
<link rel="stylesheet" href="/mediawiki/skins/common/shared.css?270" media="screen" />
<link rel="stylesheet" href="/mediawiki/skins/common/commonPrint.css?270" media="print" />
<link rel="stylesheet" href="/mediawiki/skins/monobook/main.css?270" media="screen" />
<!--[if lt IE 5.5000]><link rel="stylesheet" href="/mediawiki/skins/monobook/IE50Fixes.css?270" media="screen" /><![endif]-->
<!--[if IE 5.5000]><link rel="stylesheet" href="/mediawiki/skins/monobook/IE55Fixes.css?270" media="screen" /><![endif]-->
<!--[if IE 6]><link rel="stylesheet" href="/mediawiki/skins/monobook/IE60Fixes.css?270" media="screen" /><![endif]-->
<!--[if IE 7]><link rel="stylesheet" href="/mediawiki/skins/monobook/IE70Fixes.css?270" media="screen" /><![endif]-->
<link rel="stylesheet" href="/mediawiki/index.php?title=MediaWiki:Common.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" />
<link rel="stylesheet" href="/mediawiki/index.php?title=MediaWiki:Print.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" media="print" />
<link rel="stylesheet" href="/mediawiki/index.php?title=MediaWiki:Monobook.css&amp;usemsgcache=yes&amp;ctype=text%2Fcss&amp;smaxage=18000&amp;action=raw&amp;maxage=18000" />
<link rel="stylesheet" href="/mediawiki/index.php?title=-&amp;action=raw&amp;maxage=18000&amp;gen=css" />
<script>
var skin="monobook",
stylepath="/mediawiki/skins",
wgUrlProtocols="http\\:\\/\\/|https\\:\\/\\/|ftp\\:\\/\\/|irc\\:\\/\\/|gopher\\:\\/\\/|telnet\\:\\/\\/|nntp\\:\\/\\/|worldwind\\:\\/\\/|mailto\\:|news\\:|svn\\:\\/\\/",
wgArticlePath="/mediawiki/index.php/$1",
wgScriptPath="/mediawiki",
wgScriptExtension=".php",
wgScript="/mediawiki/index.php",
wgVariantArticlePath=false,
wgActionPaths={},
wgServer="http://hamsterworks.co.nz",
wgCanonicalNamespace="File",
wgCanonicalSpecialPageName=false,
wgNamespaceNumber=6,
wgPageName="File:I3c2_assemble.c",
wgTitle="I3c2 assemble.c",
wgAction="view",
wgArticleId=469,
wgIsArticle=true,
wgUserName=null,
wgUserGroups=null,
wgUserLanguage="en",
wgContentLanguage="en",
wgBreakFrames=false,
wgCurRevisionId=3589,
wgVersion="1.16.2",
wgEnableAPI=true,
wgEnableWriteAPI=true,
wgSeparatorTransformTable=["", ""],
wgDigitTransformTable=["", ""],
wgMainPageTitle="Main Page",
wgFormattedNamespaces={"-2": "Media", "-1": "Special", "0": "", "1": "Talk", "2": "User", "3": "User talk", "4": "Hamsterworks Wiki!", "5": "Hamsterworks Wiki! talk", "6": "File", "7": "File talk", "8": "MediaWiki", "9": "MediaWiki talk", "10": "Template", "11": "Template talk", "12": "Help", "13": "Help talk", "14": "Category", "15": "Category talk"},
wgNamespaceIds={"media": -2, "special": -1, "": 0, "talk": 1, "user": 2, "user_talk": 3, "hamsterworks_wiki!": 4, "hamsterworks_wiki!_talk": 5, "file": 6, "file_talk": 7, "mediawiki": 8, "mediawiki_talk": 9, "template": 10, "template_talk": 11, "help": 12, "help_talk": 13, "category": 14, "category_talk": 15, "image": 6, "image_talk": 7},
wgSiteName="Hamsterworks Wiki!",
wgCategories=[],
wgRestrictionEdit=[],
wgRestrictionMove=[];
</script><script src="/mediawiki/skins/common/wikibits.js?270"></script>
<script src="/mediawiki/skins/common/ajax.js?270"></script>
<script src="/mediawiki/index.php?title=-&amp;action=raw&amp;gen=js&amp;useskin=monobook&amp;270"></script>

</head>
<body class="mediawiki ltr ns-6 ns-subject page-File_I3c2_assemble_c skin-monobook">
<div id="globalWrapper">
<div id="column-content"><div id="content" >
<a id="top"></a>

<h1 id="firstHeading" class="firstHeading">File:I3c2 assemble.c</h1>
<div id="bodyContent">
<h3 id="siteSub">From Hamsterworks Wiki!</h3>
<div id="contentSub"></div>
<div id="jump-to-nav">Jump to: <a href="#column-one">navigation</a>, <a href="#searchInput">search</a></div>
<!-- start content -->
<ul id="filetoc"><li><a href="#file">File</a></li>
<li><a href="#filehistory">File history</a></li>
<li><a href="#filelinks">File links</a></li></ul><div class="fullMedia">
<p><span class="dangerousLink"><a href="/mediawiki/images/c/cc/I3c2_assemble.c" class="internal" title="I3c2 assemble.c">I3c2_assemble.c</a></span>‎
<span class="fileInfo">(file size: 15 KB, MIME type: unknown/unknown)</span>
</p>
</div>
<div class="mediaWarning"><b>Warning</b>: This file type may contain malicious code.
By executing it, your system may be compromised.</div>

<!--
NewPP limit report
Preprocessor node count: 0/1000000
Post-expand include size: 0/2097152 bytes
Template argument size: 0/2097152 bytes
Expensive parser function count: 0/100
-->

<!-- Saved in parser cache with key bitnami_mediawiki:pcache:idhash:469-0!1!0!!en!2!edit=0 and timestamp 20170531184506 -->
<h2 id="filehistory">File history</h2>
<div id="mw-imagepage-section-filehistory">
<p>Click on a date/time to view the file as it appeared at that time.
</p>
<table class="wikitable filehistory">
<tr><td></td><th>Date/Time</th><th>Dimensions</th><th>User</th><th>Comment</th></tr>
<tr><td>current</td><td class='filehistory-selected' style='white-space: nowrap;'><a href="/mediawiki/images/c/cc/I3c2_assemble.c">18:36, 6 June 2013</a></td><td> <span style='white-space: nowrap;'>(15 KB)</span></td><td><a href="/mediawiki/index.php?title=User:User&amp;action=edit&amp;redlink=1" class="new mw-userlink" title="User:User (page does not exist)">User</a> <span style='white-space: nowrap;'> <span class="mw-usertoollinks">(<a href="/mediawiki/index.php?title=User_talk:User&amp;action=edit&amp;redlink=1" class="new" title="User talk:User (page does not exist)">Talk</a> | <a href="/mediawiki/index.php/Special:Contributions/User" title="Special:Contributions/User">contribs</a>)</span></span></td><td></td></tr>
</table>

</div>
<br /><ul>
<li id="mw-imagepage-edit-external"><a href="/mediawiki/index.php?title=File:I3c2_assemble.c&amp;action=edit&amp;externaledit=true&amp;mode=file" title="File:I3c2 assemble.c">Edit this file using an external application</a> <small>(See the <a href="http://www.mediawiki.org/wiki/Manual:External_editors" class="external text" rel="nofollow">setup instructions</a> for more information)</small></li>
</ul>
<h2 id="filelinks">File links</h2>
<div id='mw-imagepage-section-linkstoimage'>
<p>The following page links to this file:
</p><ul class='mw-imagepage-linkstoimage'>
<li><a href="/mediawiki/index.php/I3C2" title="I3C2">I3C2</a></li>
</ul>
</div>
<div class="printfooter">
Retrieved from "<a href="http://hamsterworks.co.nz/mediawiki/index.php/File:I3c2_assemble.c">http://hamsterworks.co.nz/mediawiki/index.php/File:I3c2_assemble.c</a>"</div>
<div id='catlinks' class='catlinks catlinks-allhidden'></div> <!-- end content -->
<div class="visualClear"></div>
</div>
</div></div>
<div id="column-one">
<div id="p-cactions" class="portlet">
<h5>Views</h5>
<div class="pBody">
<ul>
<li id="ca-nstab-image" class="selected"><a href="/mediawiki/index.php/File:I3c2_assemble.c" title="View the file page [c]" accesskey="c">File</a></li>
<li id="ca-talk" class="new"><a href="/mediawiki/index.php?title=File_talk:I3c2_assemble.c&amp;action=edit&amp;redlink=1" title="Discussion about the content page [t]" accesskey="t">Discussion</a></li>
<li id="ca-viewsource"><a href="/mediawiki/index.php?title=File:I3c2_assemble.c&amp;action=edit" title="This page is protected.&#10;You can view its source [e]" accesskey="e">View source</a></li>
<li id="ca-history"><a href="/mediawiki/index.php?title=File:I3c2_assemble.c&amp;action=history" title="Past revisions of this page [h]" accesskey="h">History</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-personal">
<h5>Personal tools</h5>
<div class="pBody">
<ul>
<li id="pt-login"><a href="/mediawiki/index.php?title=Special:UserLogin&amp;returnto=File:I3c2_assemble.c" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o">Log in</a></li>
</ul>
</div>
</div>
<div class="portlet" id="p-logo">
<a style="background-image: url(/mediawiki/skins/common/images/hamsterworks.png);" href="/mediawiki/index.php/Main_Page" title="Visit the main page"></a>
</div>
<script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
<div class='generated-sidebar portlet' id='p-navigation'>
<h5>Navigation</h5>
<div class='pBody'>
<ul>
<li id="n-mainpage-description"><a href="/mediawiki/index.php/Main_Page" title="Visit the main page [z]" accesskey="z">Main page</a></li>
<li id="n-portal"><a href="/mediawiki/index.php/Hamsterworks_Wiki!:Community_portal" title="About the project, what you can do, where to find things">Community portal</a></li>
<li id="n-currentevents"><a href="/mediawiki/index.php/Hamsterworks_Wiki!:Current_events" title="Find background information on current events">Current events</a></li>
<li id="n-recentchanges"><a href="/mediawiki/index.php/Special:RecentChanges" title="The list of recent changes in the wiki [r]" accesskey="r">Recent changes</a></li>
<li id="n-randompage"><a href="/mediawiki/index.php/Special:Random" title="Load a random page [x]" accesskey="x">Random page</a></li>
<li id="n-help"><a href="/mediawiki/index.php/Help:Contents" title="The place to find out">Help</a></li>
</ul>
</div>
</div>
<div id="p-search" class="portlet">
<h5><label for="searchInput">Search</label></h5>
<div id="searchBody" class="pBody">
<form action="/mediawiki/index.php" id="searchform">
<input type='hidden' name="title" value="Special:Search"/>
<input id="searchInput" title="Search Hamsterworks Wiki!" accesskey="f" type="search" name="search" />
<input type='submit' name="go" class="searchButton" id="searchGoButton" value="Go" title="Go to a page with this exact name if exists" />&nbsp;
<input type='submit' name="fulltext" class="searchButton" id="mw-searchButton" value="Search" title="Search the pages for this text" />
</form>
</div>
</div>
<div class="portlet" id="p-tb">
<h5>Toolbox</h5>
<div class="pBody">
<ul>
<li id="t-whatlinkshere"><a href="/mediawiki/index.php/Special:WhatLinksHere/File:I3c2_assemble.c" title="List of all wiki pages that link here [j]" accesskey="j">What links here</a></li>
<li id="t-recentchangeslinked"><a href="/mediawiki/index.php/Special:RecentChangesLinked/File:I3c2_assemble.c" title="Recent changes in pages linked from this page [k]" accesskey="k">Related changes</a></li>
<li id="t-specialpages"><a href="/mediawiki/index.php/Special:SpecialPages" title="List of all special pages [q]" accesskey="q">Special pages</a></li>
<li id="t-print"><a href="/mediawiki/index.php?title=File:I3c2_assemble.c&amp;printable=yes" rel="alternate" title="Printable version of this page [p]" accesskey="p">Printable version</a></li> <li id="t-permalink"><a href="/mediawiki/index.php?title=File:I3c2_assemble.c&amp;oldid=3589" title="Permanent link to this revision of the page">Permanent link</a></li> </ul>
</div>
</div>
</div><!-- end of the left (by default at least) column -->
<div class="visualClear"></div>
<div id="footer">
<div id="f-poweredbyico"><a href="http://www.mediawiki.org/"><img src="/mediawiki/skins/common/images/poweredby_mediawiki_88x31.png" height="31" width="88" alt="Powered by MediaWiki" /></a></div>
<ul id="f-list">
<li id="lastmod"> This page was last modified on 6 June 2013, at 18:36.</li>
<li id="viewcount">This page has been accessed 2,884 times.</li>
<li id="privacy"><a href="/mediawiki/index.php/Hamsterworks_Wiki!:Privacy_policy" title="Hamsterworks Wiki!:Privacy policy">Privacy policy</a></li>
<li id="about"><a href="/mediawiki/index.php/Hamsterworks_Wiki!:About" title="Hamsterworks Wiki!:About">About Hamsterworks Wiki!</a></li>
<li id="disclaimer"><a href="/mediawiki/index.php/Hamsterworks_Wiki!:General_disclaimer" title="Hamsterworks Wiki!:General disclaimer">Disclaimers</a></li>
</ul>
</div>
</div>

<script>if (window.runOnloadHook) runOnloadHook();</script>
<!-- Served in 0.353 secs. --></body></html>
restart:
; Wait a while, for the FPGA clock to settle.
DELAY 32768 ; a while

; Set up the PLL, by first turing it off
; reg[0] <= 0x0E
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x00
WRITE 0x0E
STOP

; then write the configuration values
; reg[2] <= 0x02 0x71 0x01 0x00 0x1b 0x01 (it requires 6 bytes written to it)
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x02
WRITE 0x00
WRITE 0x7D
WRITE 0x00
WRITE 0x0C
WRITE 0x23
WRITE 0x01
STOP

; Wait until bit 1 on the last byte of register 2 is '1',
; indicating that the CODEC's
;
; I cheat and wait 32,768 I2C clock cycles (about 64ms)
DELAY 32768 ; a while

; Enable the core by setting reg[0] to 0x0F
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x0
WRITE 0xF
STOP

; Wait a short while for the core to power up.
DELAY 32768 ; a while

; At this point the core is powered up and all the other registers can be set.

; Become the I2S master.
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x15 ; R15 Serial Port 0
WRITE 0x1
STOP


; Setting all the input mixers
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; Reg[4] - Record mixer left control 0
WRITE 0x0A
WRITE 0x01 ; Enable the mixer
STOP

WRITE 0x76 ; dev_write_address
WRITE 0x40 ; Reg[5] - Record mixer left control 1
WRITE 0x0B
WRITE 0x05 ; MX1AUXG = 0db
STOP

WRITE 0x76 ; dev_write_address
WRITE 0x40 ; Reg[6] - Record mixer right control 0
WRITE 0x0C
WRITE 0x01 ; Just enable the mixer
STOP

WRITE 0x76 ; dev_write_address
WRITE 0x40 ; Reg[7] - Record mixer right control 1
WRITE 0x0D
WRITE 0x05 ; Record mixer right Control 1 - MX2AUXG = 0db
STOP

; Setting all the output mixers
; reg[0x1C] <= 0x2D Playback mixer left 0
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x1C
WRITE 0x21
STOP

; reg[0x1E] <= 0x4E Playback Mixer right 0
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x1E
WRITE 0x41
STOP

; reg[0x23] <= 0xE7 Playback Headphone volume left
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x23
WRITE 0xE7
STOP

; reg[0x24] <= 0xE7 Playback Headphone volume right
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x24
WRITE 0xE7
STOP

; reg[0x25] <= 0xE7 Playback Line out volume left
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x25
WRITE 0xE7
STOP

; reg[0x26] <= 0xE7 Playback Line out volume right
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x26
WRITE 0xE7
STOP


; Set up the ADC
; reg[0x19] <= 0x???
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x19
WRITE 0x03
STOP

; Set up the DAC
; reg[0x29] <= 0x???
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x29
WRITE 0x03
STOP

; reg[0x2A] <= 0x03
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; subaddress MSB
WRITE 0x2A
WRITE 0x03
STOP

; Set up the signal routing
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; R58 - Serial Input Route Control
WRITE 0xF2
WRITE 0x01
STOP

; Power up the various parts of the cores
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; R59 - Serial Output Route Control
WRITE 0xF3
WRITE 0x01
STOP

; Power up the various parts of the cores
WRITE 0x76 ; dev_write_address
WRITE 0x40 ; Reg[65] - Clock enable 0
WRITE 0xF9
WRITE 0x7F ; Power up all the modules
STOP

WRITE 0x76 ; dev_write_address
WRITE 0x40 ; Reg[66] - Clock enable 1
WRITE 0xFA
WRITE 0x03 ; Enable the two clocks
STOP

done:
DELAY 32768
JUMP done
Binary file modified backupHamsterWorkSite/File_Zedboard_dsp_base_project.zip
Binary file not shown.
Binary file modified backupHamsterWorkSite/File_Zedboard_dsp_base_project_24bit.zip
Binary file not shown.
Binary file not shown.