Add simulations and schematic for next hardware revision, adding the missing variable bias to the opamp after the MDAC

This commit is contained in:
Jan-Henrik 2019-12-05 22:30:07 +01:00
parent 93a375435a
commit 5d857cdced
8 changed files with 1847 additions and 245 deletions

Binary file not shown.

View file

@ -1,42 +1,45 @@
Version 4
SHEET 1 1028 680
WIRE 928 -160 832 -160
WIRE 784 -64 768 -64
WIRE 800 -64 784 -64
WIRE 832 -64 832 -160
WIRE 848 -64 832 -64
WIRE 928 -48 928 -160
WIRE 928 -48 912 -48
WIRE 688 -32 688 -64
WIRE 784 -32 784 -64
WIRE 800 -32 800 -64
WIRE 848 -32 800 -32
SHEET 1 1208 680
WIRE 304 32 272 32
WIRE 624 32 608 32
WIRE 896 128 784 128
WIRE 96 144 80 144
WIRE 176 144 176 64
WIRE 192 144 192 32
WIRE 192 144 176 144
WIRE 208 144 192 144
WIRE 304 144 304 32
WIRE 400 144 304 144
WIRE 512 144 480 144
WIRE 384 144 384 32
WIRE 384 144 368 144
WIRE 400 144 384 144
WIRE 528 144 528 32
WIRE 528 144 512 144
WIRE 528 144 480 144
WIRE 544 144 528 144
WIRE 304 160 304 144
WIRE 304 160 304 32
WIRE 304 160 272 160
WIRE 624 160 624 32
WIRE 624 160 608 160
WIRE 208 176 192 176
WIRE 544 176 496 176
WIRE 784 176 784 128
WIRE 80 192 80 144
WIRE 192 192 192 176
WIRE 512 208 512 144
WIRE 512 208 496 208
WIRE 496 224 496 208
WIRE 368 256 368 144
WIRE 528 320 528 144
WIRE 528 320 512 320
WIRE 432 368 432 320
WIRE 464 368 432 368
WIRE 352 400 320 400
WIRE 464 400 464 368
WIRE 464 400 432 400
WIRE 320 480 320 400
WIRE 320 480 272 480
WIRE 368 480 320 480
WIRE 112 496 112 480
WIRE 192 496 192 480
WIRE 192 496 112 496
WIRE 464 496 464 400
WIRE 464 496 432 496
WIRE 112 512 112 496
WIRE 368 512 352 512
WIRE 352 560 352 512
FLAG -192 208 0
FLAG -192 352 0
FLAG -80 352 0
@ -52,14 +55,15 @@ FLAG 96 64 -10V
FLAG 192 192 0
FLAG 576 192 -12V
FLAG 576 128 +12V
FLAG 416 224 -10V
FLAG 496 176 0
FLAG 784 256 0
FLAG 880 -16 0
FLAG 880 -80 +5V
FLAG 832 0 0
FLAG 688 48 0
FLAG 784 48 0
FLAG 368 336 0
FLAG 112 592 0
FLAG -352 128 +4V096
FLAG -352 208 0
FLAG 112 400 +4V096
FLAG 400 528 -12V
FLAG 352 560 0
FLAG 400 464 +12V
SYMBOL voltage -80 256 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
@ -79,7 +83,7 @@ SYMBOL voltage 80 176 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V4
SYMATTR Value SINE(0 10 20)
SYMATTR Value PULSE(-10 10 0 .1 .1 0 .2)
SYMBOL res 192 128 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
@ -114,32 +118,43 @@ WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R5
SYMATTR Value 100k
SYMBOL res 512 208 R90
SYMBOL res 400 16 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R9
SYMATTR Value {X}
SYMBOL res 384 352 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R10
SYMATTR Value {100k-X}
SYMBOL res 528 304 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R11
SYMATTR Value 100k
SYMBOL res 96 384 R0
SYMATTR InstName R12
SYMATTR Value {X}
SYMBOL res 96 496 R0
SYMATTR InstName R13
SYMATTR Value {100k-X}
SYMBOL voltage -352 112 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V6
SYMATTR Value 4.096
SYMBOL TL072 400 432 R0
SYMATTR InstName U4
SYMBOL res 288 464 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R14
SYMATTR Value 43k
SYMBOL res 448 384 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R6
SYMATTR Value 100k
SYMBOL voltage 784 160 R0
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V6
SYMATTR Value SINE(0 5 20)
SYMBOL Opamps\\LT1677 880 -112 R0
SYMATTR InstName U3
SYMBOL voltage 688 -48 R0
WINDOW 3 23 87 Left 2
WINDOW 123 0 0 Left 0
WINDOW 39 0 0 Left 0
SYMATTR InstName V7
SYMATTR Value SINE(0 10 20)
SYMBOL res 784 -80 R90
WINDOW 0 0 56 VBottom 2
WINDOW 3 32 56 VTop 2
SYMATTR InstName R7
SYMATTR Value 100k
SYMBOL res 800 64 R180
WINDOW 0 36 76 Left 2
WINDOW 3 36 40 Left 2
SYMATTR InstName R8
SYMATTR Value 100k
TEXT -98 212 Left 2 !.tran 1
TEXT -96 216 Left 2 !.tran 1
TEXT 720 80 Left 2 !.step param X .1k 99.9k 1k

View file

@ -1,90 +1,158 @@
Circuit: * Z:\home\jhbruhn\eurorack\eurorack-dev-environment\eurorack-modules\stereo_mix\simulation\digital_tests.asc
Circuit: * Z:\home\jhbruhn\eurorack\eurorack-dev-environment\eurorack-modules\stereo_mix\hardware_design\pcb\simulation\digital_tests.asc
WARNING: Less than two connections to node N006. This node is used by V6.
Early termination of direct N-R iteration.
Direct Newton iteration failed to find .op point. (Use ".option noopiter" to skip.)
Starting Gmin stepping
Increasing initial diagonal Gmin to 100
Gmin = 100
Gmin = 10
vernier = 0.5
vernier = 0.25
Gmin = 34.2672
vernier = 0.125
Gmin = 5.5165
vernier = 0.0625
vernier = 0.03125
vernier = 0.015625
Gmin = 33.0995
vernier = 0.0078125
Gmin = 5.49501
vernier = 0.00390625
vernier = 0.00195313
Gmin = 32.9705
vernier = 0.000976563
vernier = 0.000488281
Gmin = 5.50104
Gmin = 0
Gmin stepping failed
Starting source stepping with srcstepmethod=0
Source Step = 3.0303%
vernier = 0.25
Source Step = 0.0177557%
Source Step = 0.0473485%
Source Step = 0.0769413%
Source Step = 0.106534%
Source Step = 0.136127%
Source Step = 0.16572%
vernier = 0.00146484
Source Step = 0.208629%
Source Step = 0.253018%
Source Step = 0.297408%
Source Step = 0.341797%
Source Step = 0.386186%
vernier = 0.00219727
Source Step = 0.448331%
Source Step = 0.514915%
Source Step = 0.581499%
Source Step = 0.648082%
Source Step = 0.714666%
vernier = 0.0032959
Source Step = 0.804554%
Source Step = 0.90443%
Source Step = 1.00431%
Source Step = 1.10418%
Source Step = 1.20406%
vernier = 0.00494385
Source Step = 1.3339%
Source Step = 1.48371%
Source Step = 1.63352%
Source Step = 1.78334%
Source Step = 1.93315%
vernier = 0.00741577
Source Step = 2.12042%
Source Step = 2.34514%
Source Step = 2.56986%
Source Step = 2.79458%
Source Step = 2.96312%
Source Step = 3.0193%
Starting source stepping with srcstepmethod=1
Source Step = 3.0303%
Source Step = 7.48106%
Source stepping failed
Source Step = 9.84848%
Source Step = 17.4242%
Source Step = 25%
Source Step = 32.5758%
Source Step = 40.1515%
vernier = 0.375
Source Step = 50.7576%
Source Step = 62.1212%
Source Step = 73.4848%
Source Step = 84.8485%
Source Step = 96.2121%
vernier = 0.5625
Source stepping succeeded in finding the operating point.
Pseudo Transient succeeded in finding the operating point at 274.067 ms.
Heightened Def Con from 0.463185 to 0.463185
.step x=100
.step x=1100
.step x=2100
.step x=3100
.step x=4100
.step x=5100
.step x=6100
.step x=7100
.step x=8100
.step x=9100
.step x=10100
.step x=11100
.step x=12100
.step x=13100
.step x=14100
.step x=15100
.step x=16100
.step x=17100
.step x=18100
.step x=19100
.step x=20100
.step x=21100
.step x=22100
.step x=23100
.step x=24100
.step x=25100
.step x=26100
.step x=27100
.step x=28100
.step x=29100
.step x=30100
.step x=31100
.step x=32100
.step x=33100
.step x=34100
.step x=35100
.step x=36100
.step x=37100
.step x=38100
.step x=39100
.step x=40100
.step x=41100
.step x=42100
.step x=43100
.step x=44100
.step x=45100
.step x=46100
.step x=47100
.step x=48100
.step x=49100
.step x=50100
.step x=51100
.step x=52100
.step x=53100
.step x=54100
.step x=55100
.step x=56100
.step x=57100
.step x=58100
.step x=59100
.step x=60100
.step x=61100
.step x=62100
.step x=63100
.step x=64100
.step x=65100
.step x=66100
.step x=67100
.step x=68100
.step x=69100
.step x=70100
.step x=71100
.step x=72100
.step x=73100
.step x=74100
.step x=75100
.step x=76100
.step x=77100
.step x=78100
.step x=79100
.step x=80100
.step x=81100
.step x=82100
.step x=83100
.step x=84100
.step x=85100
.step x=86100
.step x=87100
.step x=88100
.step x=89100
.step x=90100
.step x=91100
.step x=92100
.step x=93100
.step x=94100
.step x=95100
.step x=96100
.step x=97100
.step x=98100
.step x=99100
.step x=99900
Date: Wed Nov 13 23:02:23 2019
Total elapsed time: 80.796 seconds.
Date: Thu Dec 05 21:47:55 2019
Total elapsed time: 43.862 seconds.
tnom = 27
temp = 27
method = modified trap
totiter = 3586130
traniter = 3577585
tranpoints = 1609521
accept = 1147239
rejected = 462294
matrix size = 61
fillins = 90
totiter = 8318
traniter = 5030
tranpoints = 2376
accept = 1996
rejected = 380
matrix size = 72
fillins = 224
solver = Normal
Thread vector: 14.0/12.0[3] 4.0/2.9[3] 4.0/2.7[3] 0.4/1.2[1] 2592/500
Matrix Compiler1: 8.46 KB object code size 2.5/1.4/[0.9]
Matrix Compiler2: 6.89 KB object code size 1.3/1.7/[0.5]
Matrix Compiler1: 18.84 KB object code size 5.1/2.7/[1.4]
Matrix Compiler2: 10.08 KB object code size 2.1/2.8/[0.9]

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="9.5.1">
<eagle version="9.5.2">
<drawing>
<settings>
<setting alwaysvectorfont="yes"/>
@ -6338,6 +6338,62 @@ OSHW_LOGO</description>
</package3d>
</packages3d>
</library>
<library name="dac">
<description>&lt;b&gt;Digital to Analogue Converters&lt;/b&gt;&lt;br&gt;
From Texas, Microchip
Vaguely based on Farnell provided libs, but they're too ugly to use directly</description>
<packages>
<package name="SOIC-8">
<wire x1="-1.9558" y1="1.651" x2="-1.9558" y2="2.159" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="2.159" x2="-2.9972" y2="2.159" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="2.159" x2="-2.9972" y2="1.651" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="1.651" x2="-1.9558" y2="1.651" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="0.381" x2="-1.9558" y2="0.889" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="0.889" x2="-2.9972" y2="0.889" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="0.889" x2="-2.9972" y2="0.381" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="0.381" x2="-1.9558" y2="0.381" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="-0.889" x2="-1.9558" y2="-0.381" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="-0.381" x2="-2.9972" y2="-0.381" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="-0.381" x2="-2.9972" y2="-0.889" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="-0.889" x2="-1.9558" y2="-0.889" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="-2.159" x2="-1.9558" y2="-1.651" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="-1.651" x2="-2.9972" y2="-1.651" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="-1.651" x2="-2.9972" y2="-2.159" width="0.1524" layer="51"/>
<wire x1="-2.9972" y1="-2.159" x2="-1.9558" y2="-2.159" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="-1.651" x2="1.9558" y2="-2.159" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="-2.159" x2="2.9972" y2="-2.159" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="-2.159" x2="2.9972" y2="-1.651" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="-1.651" x2="1.9558" y2="-1.651" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="-0.381" x2="1.9558" y2="-0.889" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="-0.889" x2="2.9972" y2="-0.889" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="-0.889" x2="2.9972" y2="-0.381" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="-0.381" x2="1.9558" y2="-0.381" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="0.889" x2="1.9558" y2="0.381" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="0.381" x2="2.9972" y2="0.381" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="0.381" x2="2.9972" y2="0.889" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="0.889" x2="1.9558" y2="0.889" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="2.159" x2="1.9558" y2="1.651" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="1.651" x2="2.9972" y2="1.651" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="1.651" x2="2.9972" y2="2.159" width="0.1524" layer="51"/>
<wire x1="2.9972" y1="2.159" x2="1.9558" y2="2.159" width="0.1524" layer="51"/>
<wire x1="1.9558" y1="-2.5972" x2="1.9558" y2="2.5971" width="0.1524" layer="51"/>
<wire x1="-1.9558" y1="2.5971" x2="-1.9558" y2="-2.5972" width="0.1524" layer="51"/>
<wire x1="-1.9621" y1="-2.5972" x2="1.9621" y2="-2.5972" width="0.1524" layer="21"/>
<wire x1="1.9622" y1="2.5971" x2="-1.9621" y2="2.5971" width="0.1524" layer="21"/>
<wire x1="-0.4763" y1="2.54" x2="0.4763" y2="2.54" width="0.127" layer="21" curve="180"/>
<smd name="1" x="-2.54" y="1.905" dx="1.72" dy="0.6" layer="1"/>
<smd name="2" x="-2.54" y="0.635" dx="1.72" dy="0.6" layer="1"/>
<smd name="3" x="-2.54" y="-0.635" dx="1.72" dy="0.6" layer="1"/>
<smd name="4" x="-2.54" y="-1.905" dx="1.72" dy="0.6" layer="1"/>
<smd name="5" x="2.54" y="-1.905" dx="1.72" dy="0.6" layer="1"/>
<smd name="6" x="2.54" y="-0.635" dx="1.72" dy="0.6" layer="1"/>
<smd name="7" x="2.54" y="0.635" dx="1.72" dy="0.6" layer="1"/>
<smd name="8" x="2.54" y="1.905" dx="1.72" dy="0.6" layer="1"/>
<text x="-2.2352" y="2.9464" size="1.016" layer="25" font="vector" ratio="15" rot="SR0">&gt;NAME</text>
<text x="-2.54" y="-3.81" size="0.8128" layer="27" font="vector" ratio="15" rot="SR0">&gt;VALUE</text>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
@ -7345,6 +7401,154 @@ design rules under a new name.</description>
<attribute name="VALUE" x="33.655" y="48.895" size="1.27" layer="28" rot="MR0"/>
</element>
<element name="LOGO1" library="SparkFun-Aesthetics" library_urn="urn:adsk.eagle:library:507" package="OSHW-LOGO-S" package3d_urn="urn:adsk.eagle:package:37099/1" value="OSHW-LOGOS" x="53.086" y="37.973" smashed="yes" rot="MR0"/>
<element name="IC11" library="dac" package="SOIC-8" value="MCP4822E-SN" x="-8.89" y="1.27" smashed="yes">
<attribute name="NAME" x="-11.1252" y="4.2164" size="1.016" layer="25" font="vector" ratio="15" rot="SR0"/>
<attribute name="VALUE" x="-11.43" y="-2.54" size="0.8128" layer="27" font="vector" ratio="15" rot="SR0"/>
</element>
<element name="IC12" library="dac" package="SOIC-8" value="MCP4822E-SN" x="-16.51" y="1.27" smashed="yes">
<attribute name="NAME" x="-18.7452" y="4.2164" size="1.016" layer="25" font="vector" ratio="15" rot="SR0"/>
<attribute name="VALUE" x="-19.05" y="-2.54" size="0.8128" layer="27" font="vector" ratio="15" rot="SR0"/>
</element>
<element name="IC13" library="dac" package="SOIC-8" value="MCP4822E-SN" x="-24.13" y="1.27" smashed="yes">
<attribute name="NAME" x="-26.3652" y="4.2164" size="1.016" layer="25" font="vector" ratio="15" rot="SR0"/>
<attribute name="VALUE" x="-26.67" y="-2.54" size="0.8128" layer="27" font="vector" ratio="15" rot="SR0"/>
</element>
<element name="IC14" library="dac" package="SOIC-8" value="MCP4822E-SN" x="-31.75" y="1.27" smashed="yes">
<attribute name="NAME" x="-33.9852" y="4.2164" size="1.016" layer="25" font="vector" ratio="15" rot="SR0"/>
<attribute name="VALUE" x="-34.29" y="-2.54" size="0.8128" layer="27" font="vector" ratio="15" rot="SR0"/>
</element>
<element name="IC15" library="linear" library_urn="urn:adsk.eagle:library:262" package="SO08" package3d_urn="urn:adsk.eagle:package:16404/2" value="TL072D" x="-40.64" y="0" smashed="yes">
<attribute name="NAME" x="-43.307" y="-1.905" size="1.27" layer="25" rot="R90"/>
<attribute name="POPULARITY" value="0" x="-40.64" y="0" size="1.778" layer="27" display="off"/>
<attribute name="VALUE" x="-36.703" y="-1.905" size="1.27" layer="27" rot="R90"/>
</element>
<element name="IC16" library="linear" library_urn="urn:adsk.eagle:library:262" package="SO08" package3d_urn="urn:adsk.eagle:package:16404/2" value="TL072D" x="-40.64" y="-8.89" smashed="yes">
<attribute name="NAME" x="-43.307" y="-10.795" size="1.27" layer="25" rot="R90"/>
<attribute name="POPULARITY" value="0" x="-50.8" y="0" size="1.778" layer="27" display="off"/>
<attribute name="VALUE" x="-36.703" y="-10.795" size="1.27" layer="27" rot="R90"/>
</element>
<element name="IC17" library="linear" library_urn="urn:adsk.eagle:library:262" package="SO08" package3d_urn="urn:adsk.eagle:package:16404/2" value="TL072D" x="-40.64" y="-17.78" smashed="yes">
<attribute name="NAME" x="-43.307" y="-19.685" size="1.27" layer="25" rot="R90"/>
<attribute name="POPULARITY" value="0" x="-50.8" y="-8.89" size="1.778" layer="27" display="off"/>
<attribute name="VALUE" x="-36.703" y="-19.685" size="1.27" layer="27" rot="R90"/>
</element>
<element name="IC18" library="linear" library_urn="urn:adsk.eagle:library:262" package="SO08" package3d_urn="urn:adsk.eagle:package:16404/2" value="TL072D" x="-40.64" y="-26.67" smashed="yes">
<attribute name="NAME" x="-43.307" y="-28.575" size="1.27" layer="25" rot="R90"/>
<attribute name="POPULARITY" value="0" x="-50.8" y="-17.78" size="1.778" layer="27" display="off"/>
<attribute name="VALUE" x="-36.703" y="-28.575" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R109" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-33.02" smashed="yes">
<attribute name="NAME" x="-43.815" y="-32.385" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-34.925" size="1.27" layer="27"/>
</element>
<element name="R110" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-38.1" smashed="yes">
<attribute name="NAME" x="-43.815" y="-37.465" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-40.005" size="1.27" layer="27"/>
</element>
<element name="R111" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-43.18" smashed="yes">
<attribute name="NAME" x="-43.815" y="-42.545" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-45.085" size="1.27" layer="27"/>
</element>
<element name="R112" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-48.26" smashed="yes">
<attribute name="NAME" x="-43.815" y="-47.625" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-50.165" size="1.27" layer="27"/>
</element>
<element name="R113" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-53.34" smashed="yes">
<attribute name="NAME" x="-43.815" y="-52.705" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-55.245" size="1.27" layer="27"/>
</element>
<element name="R114" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-58.42" smashed="yes">
<attribute name="NAME" x="-43.815" y="-57.785" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-60.325" size="1.27" layer="27"/>
</element>
<element name="R115" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-63.5" smashed="yes">
<attribute name="NAME" x="-43.815" y="-62.865" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-65.405" size="1.27" layer="27"/>
</element>
<element name="R116" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="100k" x="-43.18" y="-68.58" smashed="yes">
<attribute name="NAME" x="-43.815" y="-67.945" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-70.485" size="1.27" layer="27"/>
</element>
<element name="R117" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-73.66" smashed="yes">
<attribute name="NAME" x="-43.815" y="-73.025" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-75.565" size="1.27" layer="27"/>
</element>
<element name="R118" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-78.74" smashed="yes">
<attribute name="NAME" x="-43.815" y="-78.105" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-80.645" size="1.27" layer="27"/>
</element>
<element name="R119" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-83.82" smashed="yes">
<attribute name="NAME" x="-43.815" y="-83.185" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-85.725" size="1.27" layer="27"/>
</element>
<element name="R120" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-88.9" smashed="yes">
<attribute name="NAME" x="-43.815" y="-88.265" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-90.805" size="1.27" layer="27"/>
</element>
<element name="R121" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-93.98" smashed="yes">
<attribute name="NAME" x="-43.815" y="-93.345" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-95.885" size="1.27" layer="27"/>
</element>
<element name="R122" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-99.06" smashed="yes">
<attribute name="NAME" x="-43.815" y="-98.425" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-100.965" size="1.27" layer="27"/>
</element>
<element name="R123" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-104.14" smashed="yes">
<attribute name="NAME" x="-43.815" y="-103.505" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-106.045" size="1.27" layer="27"/>
</element>
<element name="R124" library="resistor" library_urn="urn:adsk.eagle:library:348" package="R0402" package3d_urn="urn:adsk.eagle:package:26058/2" value="43k" x="-43.18" y="-109.22" smashed="yes">
<attribute name="NAME" x="-43.815" y="-108.585" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-111.125" size="1.27" layer="27"/>
</element>
<element name="C52" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-114.3" smashed="yes">
<attribute name="NAME" x="-43.815" y="-113.665" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-116.205" size="1.27" layer="27"/>
</element>
<element name="C53" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-119.38" smashed="yes">
<attribute name="NAME" x="-43.815" y="-118.745" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-121.285" size="1.27" layer="27"/>
</element>
<element name="C54" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-124.46" smashed="yes">
<attribute name="NAME" x="-43.815" y="-123.825" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-126.365" size="1.27" layer="27"/>
</element>
<element name="C55" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-129.54" smashed="yes">
<attribute name="NAME" x="-43.815" y="-128.905" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-131.445" size="1.27" layer="27"/>
</element>
<element name="C56" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-134.62" smashed="yes">
<attribute name="NAME" x="-43.815" y="-133.985" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-136.525" size="1.27" layer="27"/>
</element>
<element name="C57" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-139.7" smashed="yes">
<attribute name="NAME" x="-43.815" y="-139.065" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-141.605" size="1.27" layer="27"/>
</element>
<element name="C58" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-144.78" smashed="yes">
<attribute name="NAME" x="-43.815" y="-144.145" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-146.685" size="1.27" layer="27"/>
</element>
<element name="C59" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-149.86" smashed="yes">
<attribute name="NAME" x="-43.815" y="-149.225" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-151.765" size="1.27" layer="27"/>
</element>
<element name="C60" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-154.94" smashed="yes">
<attribute name="NAME" x="-43.815" y="-154.305" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-156.845" size="1.27" layer="27"/>
</element>
<element name="C61" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-160.02" smashed="yes">
<attribute name="NAME" x="-43.815" y="-159.385" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-161.925" size="1.27" layer="27"/>
</element>
<element name="C62" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-165.1" smashed="yes">
<attribute name="NAME" x="-43.815" y="-164.465" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-167.005" size="1.27" layer="27"/>
</element>
<element name="C63" library="resistor" library_urn="urn:adsk.eagle:library:348" package="C0402" package3d_urn="urn:adsk.eagle:package:23626/2" value="100nF" x="-43.18" y="-170.18" smashed="yes">
<attribute name="NAME" x="-43.815" y="-169.545" size="1.27" layer="25"/>
<attribute name="VALUE" x="-43.815" y="-172.085" size="1.27" layer="27"/>
</element>
</elements>
<signals>
<signal name="GND" class="1">
@ -7402,8 +7606,6 @@ design rules under a new name.</description>
<contactref element="R76" pad="1"/>
<contactref element="C36" pad="2"/>
<contactref element="C37" pad="2"/>
<contactref element="U16" pad="2"/>
<contactref element="C38" pad="2"/>
<contactref element="C29" pad="1"/>
<contactref element="C28" pad="1"/>
<contactref element="C27" pad="1"/>
@ -7450,7 +7652,6 @@ design rules under a new name.</description>
<contactref element="U13" pad="5"/>
<contactref element="U13" pad="21"/>
<contactref element="C22" pad="2"/>
<contactref element="C24" pad="2"/>
<contactref element="U5" pad="8"/>
<contactref element="U6" pad="8"/>
<contactref element="U12" pad="8"/>
@ -7875,14 +8076,12 @@ design rules under a new name.</description>
<wire x1="5.08" y1="34.3408" x2="5.08" y2="36.05" width="0.4064" layer="16"/>
<wire x1="7.62" y1="31.8008" x2="5.08" y2="34.3408" width="0.4064" layer="16"/>
<wire x1="7.62" y1="31.8008" x2="7.62" y2="31.75" width="0.4064" layer="16"/>
<wire x1="10.16" y1="22.86" x2="10.78" y2="22.86" width="0.4064" layer="16"/>
<wire x1="7.62" y1="25.4" x2="10.16" y2="22.86" width="0.4064" layer="16"/>
<wire x1="16.1544" y1="22.352" x2="16.3576" y2="22.352" width="0.4064" layer="16"/>
<wire x1="14.8336" y1="23.6728" x2="16.1544" y2="22.352" width="0.4064" layer="16"/>
<wire x1="11.5824" y1="23.6728" x2="14.8336" y2="23.6728" width="0.4064" layer="16"/>
<wire x1="10.8712" y1="22.9616" x2="11.5824" y2="23.6728" width="0.4064" layer="16"/>
<wire x1="16.3576" y1="22.352" x2="16.41249375" y2="22.253190625" width="0.4064" layer="16"/>
<wire x1="10.8712" y1="22.9616" x2="10.78" y2="22.86" width="0.4064" layer="16"/>
<wire x1="7.62" y1="29.6672" x2="7.62" y2="31.75" width="0.4064" layer="1"/>
<wire x1="6.4008" y1="28.448" x2="7.62" y2="29.6672" width="0.4064" layer="1"/>
<wire x1="6.4008" y1="26.6192" x2="6.4008" y2="28.448" width="0.4064" layer="1"/>
@ -7933,8 +8132,6 @@ design rules under a new name.</description>
<wire x1="39.3192" y1="4.7752" x2="39.3192" y2="5.2832" width="0.4064" layer="1"/>
<wire x1="37.7952" y1="3.2512" x2="39.3192" y2="4.7752" width="0.4064" layer="1"/>
<wire x1="38.5064" y1="2.54" x2="37.7952" y2="3.2512" width="0.4064" layer="16"/>
<wire x1="38.72" y1="2.54" x2="38.5064" y2="2.54" width="0.4064" layer="16"/>
<wire x1="38.5064" y1="5.2832" x2="38.42" y2="5.25" width="0.4064" layer="16"/>
<wire x1="44.704" y1="6.1976" x2="44.704" y2="5.2832" width="0.4064" layer="16"/>
<wire x1="41.4528" y1="6.1976" x2="43.2816" y2="6.1976" width="0.4064" layer="1"/>
<wire x1="43.2816" y1="6.1976" x2="44.704" y2="6.1976" width="0.4064" layer="1"/>
@ -8080,6 +8277,60 @@ design rules under a new name.</description>
<via x="50.8" y="68.58" extent="1-16" drill="0.35"/>
<via x="48.26" y="59.69" extent="1-16" drill="0.35"/>
<via x="36.83" y="41.91" extent="1-16" drill="0.35"/>
<contactref element="IC16" pad="3"/>
<contactref element="IC15" pad="3"/>
<contactref element="IC15" pad="5"/>
<contactref element="IC16" pad="5"/>
<contactref element="IC17" pad="3"/>
<contactref element="IC17" pad="5"/>
<contactref element="IC18" pad="3"/>
<contactref element="IC18" pad="5"/>
<contactref element="IC11" pad="5"/>
<contactref element="IC12" pad="5"/>
<contactref element="IC13" pad="5"/>
<contactref element="IC14" pad="5"/>
<contactref element="C56" pad="1"/>
<contactref element="C57" pad="1"/>
<contactref element="C58" pad="1"/>
<contactref element="C59" pad="1"/>
<contactref element="C63" pad="2"/>
<contactref element="C60" pad="2"/>
<contactref element="C61" pad="2"/>
<contactref element="C62" pad="2"/>
<contactref element="U16" pad="1"/>
<contactref element="C38" pad="2"/>
<contactref element="C24" pad="2"/>
<wire x1="-42.53" y1="-165.1" x2="-42.53" y2="-170.18" width="0" layer="19" extent="1-1"/>
<wire x1="-42.53" y1="-160.02" x2="-42.53" y2="-165.1" width="0" layer="19" extent="1-1"/>
<wire x1="-42.53" y1="-154.94" x2="-42.53" y2="-160.02" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-149.86" x2="-42.53" y2="-154.94" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-144.78" x2="-43.83" y2="-149.86" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-139.7" x2="-43.83" y2="-144.78" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-134.62" x2="-43.83" y2="-139.7" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-29.27" x2="-43.83" y2="-134.62" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-24.07" x2="-40.005" y2="-29.27" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-20.38" x2="-38.735" y2="-24.07" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-15.18" x2="-40.005" y2="-20.38" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-11.49" x2="-38.735" y2="-15.18" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-6.29" x2="-40.005" y2="-11.49" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-2.6" x2="-38.735" y2="-6.29" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="2.6" x2="-40.005" y2="-2.6" width="0" layer="19" extent="1-1"/>
<wire x1="-29.21" y1="-0.635" x2="-38.735" y2="2.6" width="0" layer="19" extent="1-1"/>
<wire x1="-21.59" y1="-0.635" x2="-29.21" y2="-0.635" width="0" layer="19" extent="1-1"/>
<wire x1="-13.97" y1="-0.635" x2="-21.59" y2="-0.635" width="0" layer="19" extent="1-1"/>
<wire x1="-6.35" y1="-0.635" x2="-13.97" y2="-0.635" width="0" layer="19" extent="1-1"/>
<wire x1="7.13" y1="3.81" x2="-6.35" y2="-0.635" width="0" layer="19" extent="1-16"/>
<wire x1="10.78" y1="22.86" x2="10.8712" y2="22.9616" width="0" layer="19" extent="16-16"/>
<wire x1="38.72" y1="2.54" x2="38.5064" y2="2.54" width="0" layer="19" extent="16-16"/>
<wire x1="10.16" y1="22.86" x2="10.78" y2="22.86" width="0" layer="19" extent="16-16"/>
<wire x1="40.32" y1="5.25" x2="39.3192" y2="5.2832" width="0" layer="19" extent="16-16"/>
<wire x1="36.83" y1="41.91" x2="36.77" y2="45.085" width="0" layer="19" extent="16-16"/>
<wire x1="2.54" y1="90.17" x2="5.7" y2="88.9" width="0" layer="19" extent="16-16"/>
<wire x1="48.26" y1="59.69" x2="50.74" y2="62.23" width="0" layer="19" extent="16-16"/>
<wire x1="50.8" y1="68.58" x2="50.74" y2="72.39" width="0" layer="19" extent="16-16"/>
<wire x1="12.7" y1="45.72" x2="11.37" y2="50.165" width="0" layer="19" extent="16-16"/>
<wire x1="22.86" y1="48.26" x2="27.94" y2="46.99" width="0" layer="19" extent="1-1"/>
<wire x1="46.99" y1="83.82" x2="50.74" y2="87.63" width="0" layer="19" extent="16-16"/>
</signal>
<signal name="REF_5">
<contactref element="JP2" pad="8"/>
@ -8309,6 +8560,22 @@ design rules under a new name.</description>
<via x="11.8872" y="88.9" extent="1-16" drill="0.35"/>
<via x="8.0264" y="49.3776" extent="1-16" drill="0.35"/>
<via x="9.2456" y="52.5272" extent="1-16" drill="0.35"/>
<contactref element="IC15" pad="8"/>
<contactref element="C60" pad="1"/>
<contactref element="IC16" pad="8"/>
<contactref element="IC17" pad="8"/>
<contactref element="IC18" pad="8"/>
<contactref element="C61" pad="1"/>
<contactref element="C62" pad="1"/>
<contactref element="C63" pad="1"/>
<wire x1="-43.83" y1="-165.1" x2="-43.83" y2="-170.18" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-160.02" x2="-43.83" y2="-165.1" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-154.94" x2="-43.83" y2="-160.02" width="0" layer="19" extent="1-1"/>
<wire x1="-42.545" y1="-24.07" x2="-43.83" y2="-154.94" width="0" layer="19" extent="1-1"/>
<wire x1="-42.545" y1="-15.18" x2="-42.545" y2="-24.07" width="0" layer="19" extent="1-1"/>
<wire x1="-42.545" y1="-6.29" x2="-42.545" y2="-15.18" width="0" layer="19" extent="1-1"/>
<wire x1="-42.545" y1="2.6" x2="-42.545" y2="-6.29" width="0" layer="19" extent="1-1"/>
<wire x1="3.03" y1="3.81" x2="-42.545" y2="2.6" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="-12V" class="1">
<contactref element="JP1" pad="19"/>
@ -8486,6 +8753,22 @@ design rules under a new name.</description>
<via x="43.0784" y="55.5752" extent="1-16" drill="0.35"/>
<via x="37.4904" y="52.6288" extent="1-16" drill="0.35"/>
<via x="16.256" y="42.5704" extent="1-16" drill="0.35"/>
<contactref element="IC18" pad="4"/>
<contactref element="C59" pad="2"/>
<contactref element="IC15" pad="4"/>
<contactref element="IC16" pad="4"/>
<contactref element="IC17" pad="4"/>
<contactref element="C56" pad="2"/>
<contactref element="C57" pad="2"/>
<contactref element="C58" pad="2"/>
<wire x1="-42.53" y1="-144.78" x2="-42.53" y2="-149.86" width="0" layer="19" extent="1-1"/>
<wire x1="-42.53" y1="-139.7" x2="-42.53" y2="-144.78" width="0" layer="19" extent="1-1"/>
<wire x1="-42.53" y1="-134.62" x2="-42.53" y2="-139.7" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-29.27" x2="-42.53" y2="-134.62" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-20.38" x2="-38.735" y2="-29.27" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-11.49" x2="-38.735" y2="-20.38" width="0" layer="19" extent="1-1"/>
<wire x1="-38.735" y1="-2.6" x2="-38.735" y2="-11.49" width="0" layer="19" extent="1-1"/>
<wire x1="13.97" y1="36.05" x2="-38.735" y2="-2.6" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="2_IN_L">
<contactref element="JP1" pad="8"/>
@ -8867,25 +9150,16 @@ design rules under a new name.</description>
<signal name="AREF_-10">
<contactref element="R9" pad="1"/>
<contactref element="R11" pad="1"/>
<contactref element="R29" pad="1"/>
<contactref element="R32" pad="1"/>
<contactref element="R21" pad="1"/>
<contactref element="R13" pad="1"/>
<contactref element="R15" pad="1"/>
<contactref element="R33" pad="1"/>
<contactref element="R36" pad="1"/>
<contactref element="R55" pad="1"/>
<contactref element="R57" pad="1"/>
<contactref element="R77" pad="1"/>
<contactref element="R80" pad="1"/>
<contactref element="R59" pad="1"/>
<contactref element="R61" pad="1"/>
<contactref element="R81" pad="1"/>
<contactref element="R84" pad="1"/>
<contactref element="R23" pad="1"/>
<contactref element="R69" pad="1"/>
<contactref element="R71" pad="1"/>
<contactref element="U16" pad="1"/>
<contactref element="R108" pad="1"/>
<contactref element="C38" pad="1"/>
<wire x1="32.4104" y1="49.276" x2="32.4104" y2="48.26" width="0.254" layer="16"/>
@ -8933,7 +9207,6 @@ design rules under a new name.</description>
<wire x1="40.9448" y1="4.2672" x2="40.3352" y2="4.8768" width="0.254" layer="1"/>
<wire x1="40.4368" y1="4.2672" x2="40.9448" y2="4.2672" width="0.254" layer="16"/>
<wire x1="40.0304" y1="3.8608" x2="40.4368" y2="4.2672" width="0.254" layer="16"/>
<wire x1="40.3352" y1="5.2832" x2="40.32" y2="5.25" width="0.254" layer="16"/>
<wire x1="40.0304" y1="3.8608" x2="40.02" y2="3.81" width="0.254" layer="16"/>
<wire x1="40.0304" y1="3.7592" x2="40.0304" y2="2.54" width="0.254" layer="16"/>
<wire x1="40.0304" y1="2.54" x2="40.02" y2="2.54" width="0.254" layer="16"/>
@ -8982,33 +9255,27 @@ design rules under a new name.</description>
<wire x1="58.3184" y1="47.5488" x2="58.3184" y2="31.9024" width="0.254" layer="16"/>
<wire x1="59.0296" y1="48.26" x2="58.3184" y2="47.5488" width="0.254" layer="16"/>
<wire x1="52.7304" y1="26.7208" x2="52.72" y2="26.67" width="0.254" layer="16"/>
<wire x1="59.0296" y1="48.26" x2="59.04" y2="48.26" width="0.254" layer="16"/>
<wire x1="72.136" y1="51.6128" x2="72.9488" y2="50.8" width="0.254" layer="16"/>
<wire x1="67.4624" y1="51.6128" x2="72.136" y2="51.6128" width="0.254" layer="16"/>
<wire x1="65.1256" y1="49.276" x2="67.4624" y2="51.6128" width="0.254" layer="16"/>
<wire x1="61.7728" y1="49.276" x2="65.1256" y2="49.276" width="0.254" layer="1"/>
<wire x1="59.7408" y1="47.244" x2="61.7728" y2="49.276" width="0.254" layer="1"/>
<wire x1="58.928" y1="48.0568" x2="59.7408" y2="47.244" width="0.254" layer="16"/>
<wire x1="72.9488" y1="50.8" x2="73.04" y2="50.8" width="0.254" layer="16"/>
<wire x1="58.928" y1="48.0568" x2="59.04" y2="48.26" width="0.254" layer="16"/>
<wire x1="59.1312" y1="62.6872" x2="59.1312" y2="63.5" width="0.254" layer="16"/>
<wire x1="59.7408" y1="62.0776" x2="59.1312" y2="62.6872" width="0.254" layer="16"/>
<wire x1="59.7408" y1="51.4096" x2="59.7408" y2="62.0776" width="0.254" layer="1"/>
<wire x1="61.7728" y1="49.3776" x2="59.7408" y2="51.4096" width="0.254" layer="1"/>
<wire x1="59.1312" y1="63.5" x2="59.04" y2="63.5" width="0.254" layer="16"/>
<wire x1="61.7728" y1="49.3776" x2="61.7728" y2="49.276" width="0.254" layer="1"/>
<wire x1="72.136" y1="66.8528" x2="72.9488" y2="66.04" width="0.254" layer="16"/>
<wire x1="67.9704" y1="66.8528" x2="72.136" y2="66.8528" width="0.254" layer="16"/>
<wire x1="64.6176" y1="63.5" x2="67.9704" y2="66.8528" width="0.254" layer="16"/>
<wire x1="61.2648" y1="63.5" x2="64.6176" y2="63.5" width="0.254" layer="16"/>
<wire x1="59.8424" y1="62.0776" x2="61.2648" y2="63.5" width="0.254" layer="1"/>
<wire x1="72.9488" y1="66.04" x2="73.04" y2="66.04" width="0.254" layer="16"/>
<wire x1="59.8424" y1="62.0776" x2="59.7408" y2="62.0776" width="0.254" layer="1"/>
<wire x1="59.1312" y1="77.216" x2="59.1312" y2="78.74" width="0.254" layer="16"/>
<wire x1="59.1312" y1="73.152" x2="59.1312" y2="77.216" width="0.254" layer="1"/>
<wire x1="61.2648" y1="71.0184" x2="59.1312" y2="73.152" width="0.254" layer="1"/>
<wire x1="61.2648" y1="63.5" x2="61.2648" y2="71.0184" width="0.254" layer="1"/>
<wire x1="59.1312" y1="78.74" x2="59.04" y2="78.74" width="0.254" layer="16"/>
<wire x1="72.9488" y1="81.6864" x2="72.9488" y2="81.28" width="0.254" layer="16"/>
<wire x1="72.3392" y1="82.296" x2="72.9488" y2="81.6864" width="0.254" layer="16"/>
<wire x1="72.3392" y1="78.3336" x2="72.3392" y2="82.296" width="0.254" layer="1"/>
@ -9016,7 +9283,6 @@ design rules under a new name.</description>
<wire x1="72.644" y1="67.4624" x2="72.644" y2="78.0288" width="0.254" layer="1"/>
<wire x1="72.3392" y1="67.1576" x2="72.644" y2="67.4624" width="0.254" layer="1"/>
<wire x1="72.136" y1="66.9544" x2="72.3392" y2="67.1576" width="0.254" layer="16"/>
<wire x1="72.9488" y1="81.28" x2="73.04" y2="81.28" width="0.254" layer="16"/>
<wire x1="72.136" y1="66.9544" x2="72.136" y2="66.8528" width="0.254" layer="16"/>
<wire x1="59.0296" y1="92.456" x2="59.0296" y2="93.98" width="0.254" layer="16"/>
<wire x1="59.0296" y1="80.9752" x2="59.0296" y2="92.456" width="0.254" layer="1"/>
@ -9024,7 +9290,6 @@ design rules under a new name.</description>
<wire x1="58.1152" y1="78.3336" x2="58.1152" y2="79.0448" width="0.254" layer="1"/>
<wire x1="58.1152" y1="79.0448" x2="58.1152" y2="80.0608" width="0.254" layer="1"/>
<wire x1="59.1312" y1="77.3176" x2="58.1152" y2="78.3336" width="0.254" layer="1"/>
<wire x1="59.0296" y1="93.98" x2="59.04" y2="93.98" width="0.254" layer="16"/>
<wire x1="59.1312" y1="77.3176" x2="59.1312" y2="77.216" width="0.254" layer="1"/>
<wire x1="72.9488" y1="96.9264" x2="72.9488" y2="96.52" width="0.254" layer="16"/>
<wire x1="72.3392" y1="97.536" x2="72.9488" y2="96.9264" width="0.254" layer="16"/>
@ -9032,7 +9297,6 @@ design rules under a new name.</description>
<wire x1="73.0504" y1="93.2688" x2="72.3392" y2="93.98" width="0.254" layer="1"/>
<wire x1="73.0504" y1="83.1088" x2="73.0504" y2="93.2688" width="0.254" layer="1"/>
<wire x1="72.3392" y1="82.3976" x2="73.0504" y2="83.1088" width="0.254" layer="1"/>
<wire x1="72.9488" y1="96.52" x2="73.04" y2="96.52" width="0.254" layer="16"/>
<wire x1="72.3392" y1="82.3976" x2="72.3392" y2="82.296" width="0.254" layer="1"/>
<wire x1="55.372" y1="97.7392" x2="42.9768" y2="97.7392" width="0.254" layer="1"/>
<wire x1="60.96" y1="92.1512" x2="55.372" y2="97.7392" width="0.254" layer="1"/>
@ -9077,6 +9341,9 @@ design rules under a new name.</description>
<via x="51.7144" y="17.9832" extent="1-16" drill="0.35"/>
<via x="51.9176" y="27.7368" extent="1-16" drill="0.35"/>
<via x="57.8104" y="62.3824" extent="1-16" drill="0.35"/>
<contactref element="U16" pad="2"/>
<wire x1="59.0296" y1="48.26" x2="58.928" y2="48.0568" width="0" layer="19" extent="16-16"/>
<wire x1="38.42" y1="5.25" x2="40.3352" y2="5.2832" width="0" layer="19" extent="16-16"/>
</signal>
<signal name="N$2">
<contactref element="R12" pad="2"/>
@ -11045,13 +11312,6 @@ design rules under a new name.</description>
<via x="41.5544" y="33.4264" extent="1-16" drill="0.35"/>
<via x="46.736" y="42.672" extent="1-16" drill="0.35"/>
</signal>
<signal name="N$58">
<contactref element="U13" pad="20"/>
<contactref element="C24" pad="1"/>
<wire x1="14.732" y1="22.86" x2="12.08" y2="22.86" width="0.254" layer="16"/>
<wire x1="15.8496" y1="21.7424" x2="14.732" y2="22.86" width="0.254" layer="16"/>
<wire x1="15.8496" y1="21.7424" x2="15.846809375" y2="21.68750625" width="0.254" layer="16"/>
</signal>
<signal name="CS_DAC_1">
<contactref element="U5" pad="3"/>
<contactref element="U13" pad="30"/>
@ -11259,6 +11519,14 @@ design rules under a new name.</description>
<via x="18.0848" y="27.94" extent="1-16" drill="0.35"/>
<via x="21.844" y="27.7368" extent="1-16" drill="0.35"/>
<via x="50.292" y="36.2712" extent="1-16" drill="0.35"/>
<contactref element="IC11" pad="4"/>
<contactref element="IC12" pad="4"/>
<contactref element="IC13" pad="4"/>
<contactref element="IC14" pad="4"/>
<wire x1="-26.67" y1="-0.635" x2="-34.29" y2="-0.635" width="0" layer="19" extent="1-1"/>
<wire x1="-19.05" y1="-0.635" x2="-26.67" y2="-0.635" width="0" layer="19" extent="1-1"/>
<wire x1="-11.43" y1="-0.635" x2="-19.05" y2="-0.635" width="0" layer="19" extent="1-1"/>
<wire x1="12.4968" y1="17.9832" x2="-11.43" y2="-0.635" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="SCK">
<contactref element="U13" pad="17"/>
@ -11326,6 +11594,14 @@ design rules under a new name.</description>
<via x="31.496" y="47.5488" extent="1-16" drill="0.35"/>
<via x="40.0304" y="50.1904" extent="1-16" drill="0.35"/>
<via x="57.0992" y="54.1528" extent="1-16" drill="0.35"/>
<contactref element="IC11" pad="3"/>
<contactref element="IC12" pad="3"/>
<contactref element="IC13" pad="3"/>
<contactref element="IC14" pad="3"/>
<wire x1="-26.67" y1="0.635" x2="-34.29" y2="0.635" width="0" layer="19" extent="1-1"/>
<wire x1="-19.05" y1="0.635" x2="-26.67" y2="0.635" width="0" layer="19" extent="1-1"/>
<wire x1="-11.43" y1="0.635" x2="-19.05" y2="0.635" width="0" layer="19" extent="1-1"/>
<wire x1="5.08" y1="27.94" x2="-11.43" y2="0.635" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="MISO">
<contactref element="U13" pad="16"/>
@ -11377,6 +11653,215 @@ design rules under a new name.</description>
<wire x1="20.6248" y1="14.6304" x2="20.5561375" y2="14.715434375" width="0.254" layer="16"/>
<wire x1="22.5552" y1="6.4008" x2="22.606" y2="6.35" width="0.254" layer="16"/>
</signal>
<signal name="N$14">
<contactref element="IC11" pad="8"/>
<contactref element="R117" pad="1"/>
<wire x1="-6.35" y1="3.175" x2="-43.83" y2="-73.66" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$16">
<contactref element="IC11" pad="6"/>
<contactref element="R118" pad="1"/>
<wire x1="-6.35" y1="0.635" x2="-43.83" y2="-78.74" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$67">
<contactref element="IC12" pad="8"/>
<contactref element="R119" pad="1"/>
<wire x1="-13.97" y1="3.175" x2="-43.83" y2="-83.82" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$68">
<contactref element="IC12" pad="6"/>
<contactref element="R120" pad="1"/>
<wire x1="-13.97" y1="0.635" x2="-43.83" y2="-88.9" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$70">
<contactref element="IC13" pad="8"/>
<contactref element="R121" pad="1"/>
<wire x1="-21.59" y1="3.175" x2="-43.83" y2="-93.98" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$71">
<contactref element="IC13" pad="6"/>
<contactref element="R122" pad="1"/>
<wire x1="-21.59" y1="0.635" x2="-43.83" y2="-99.06" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$72">
<contactref element="IC14" pad="8"/>
<contactref element="R123" pad="1"/>
<wire x1="-29.21" y1="3.175" x2="-43.83" y2="-104.14" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$73">
<contactref element="IC14" pad="6"/>
<contactref element="R124" pad="1"/>
<wire x1="-29.21" y1="0.635" x2="-43.83" y2="-109.22" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$74">
<contactref element="R117" pad="2"/>
<contactref element="IC15" pad="2"/>
<contactref element="R109" pad="1"/>
<wire x1="-43.83" y1="-33.02" x2="-42.53" y2="-73.66" width="0" layer="19" extent="1-1"/>
<wire x1="-41.275" y1="-2.6" x2="-43.83" y2="-33.02" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$75">
<contactref element="R118" pad="2"/>
<contactref element="IC15" pad="6"/>
<contactref element="R110" pad="1"/>
<wire x1="-43.83" y1="-38.1" x2="-42.53" y2="-78.74" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="2.6" x2="-43.83" y2="-38.1" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$76">
<contactref element="R119" pad="2"/>
<contactref element="IC16" pad="2"/>
<contactref element="R111" pad="1"/>
<wire x1="-43.83" y1="-43.18" x2="-42.53" y2="-83.82" width="0" layer="19" extent="1-1"/>
<wire x1="-41.275" y1="-11.49" x2="-43.83" y2="-43.18" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$77">
<contactref element="R120" pad="2"/>
<contactref element="IC16" pad="6"/>
<contactref element="R112" pad="1"/>
<wire x1="-43.83" y1="-48.26" x2="-42.53" y2="-88.9" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-6.29" x2="-43.83" y2="-48.26" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$78">
<contactref element="R121" pad="2"/>
<contactref element="IC17" pad="2"/>
<contactref element="R113" pad="1"/>
<wire x1="-43.83" y1="-53.34" x2="-42.53" y2="-93.98" width="0" layer="19" extent="1-1"/>
<wire x1="-41.275" y1="-20.38" x2="-43.83" y2="-53.34" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$79">
<contactref element="R122" pad="2"/>
<contactref element="IC17" pad="6"/>
<contactref element="R114" pad="1"/>
<wire x1="-43.83" y1="-58.42" x2="-42.53" y2="-99.06" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-15.18" x2="-43.83" y2="-58.42" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$80">
<contactref element="R123" pad="2"/>
<contactref element="IC18" pad="2"/>
<contactref element="R115" pad="1"/>
<wire x1="-43.83" y1="-63.5" x2="-42.53" y2="-104.14" width="0" layer="19" extent="1-1"/>
<wire x1="-41.275" y1="-29.27" x2="-43.83" y2="-63.5" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$81">
<contactref element="R124" pad="2"/>
<contactref element="IC18" pad="6"/>
<contactref element="R116" pad="1"/>
<wire x1="-43.83" y1="-68.58" x2="-42.53" y2="-109.22" width="0" layer="19" extent="1-1"/>
<wire x1="-40.005" y1="-24.07" x2="-43.83" y2="-68.58" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC3_L">
<contactref element="R113" pad="2"/>
<contactref element="IC17" pad="1"/>
<contactref element="R77" pad="1"/>
<wire x1="-42.545" y1="-20.38" x2="73.04" y2="66.04" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-53.34" x2="-42.545" y2="-20.38" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC1_L">
<contactref element="IC15" pad="1"/>
<contactref element="R109" pad="2"/>
<contactref element="R29" pad="1"/>
<wire x1="-42.545" y1="-2.6" x2="73.04" y2="96.52" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-33.02" x2="-42.545" y2="-2.6" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC1_R">
<contactref element="R110" pad="2"/>
<contactref element="IC15" pad="7"/>
<contactref element="R32" pad="1"/>
<wire x1="-41.275" y1="2.6" x2="59.04" y2="93.98" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-38.1" x2="-41.275" y2="2.6" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC2_L">
<contactref element="R111" pad="2"/>
<contactref element="IC16" pad="1"/>
<contactref element="R33" pad="1"/>
<wire x1="-42.545" y1="-11.49" x2="73.04" y2="81.28" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-43.18" x2="-42.545" y2="-11.49" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC2_R">
<contactref element="R112" pad="2"/>
<contactref element="IC16" pad="7"/>
<contactref element="R36" pad="1"/>
<wire x1="-41.275" y1="-6.29" x2="59.04" y2="78.74" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-48.26" x2="-41.275" y2="-6.29" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC3_R">
<contactref element="R114" pad="2"/>
<contactref element="IC17" pad="7"/>
<contactref element="R80" pad="1"/>
<wire x1="-41.275" y1="-15.18" x2="59.04" y2="63.5" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-58.42" x2="-41.275" y2="-15.18" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC4_L">
<contactref element="R115" pad="2"/>
<contactref element="IC18" pad="1"/>
<contactref element="R81" pad="1"/>
<wire x1="-42.545" y1="-29.27" x2="73.04" y2="50.8" width="0" layer="19" extent="1-16"/>
<wire x1="-42.53" y1="-63.5" x2="-42.545" y2="-29.27" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="BIAS_DAC4_R">
<contactref element="R116" pad="2"/>
<contactref element="IC18" pad="7"/>
<contactref element="R84" pad="1"/>
<wire x1="-41.275" y1="-24.07" x2="-42.53" y2="-68.58" width="0" layer="19" extent="1-1"/>
<wire x1="59.04" y1="48.26" x2="-41.275" y2="-24.07" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="CS_BIAS_DAC_1">
<contactref element="IC11" pad="2"/>
<contactref element="U13" pad="2"/>
<wire x1="-11.43" y1="1.905" x2="23.384565625" y2="17.5438625" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="CS_BIAS_DAC_2">
<contactref element="IC12" pad="2"/>
<contactref element="U13" pad="9"/>
<wire x1="-19.05" y1="1.905" x2="18.10955" y2="14.14975" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="CS_BIAS_DAC_3">
<contactref element="IC13" pad="2"/>
<contactref element="U13" pad="10"/>
<wire x1="-26.67" y1="1.905" x2="17.543865625" y2="14.715434375" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="CS_BIAS_DAC_4">
<contactref element="IC14" pad="2"/>
<contactref element="U13" pad="11"/>
<wire x1="16.978178125" y1="15.28111875" x2="-34.29" y2="1.905" width="0" layer="19" extent="1-16"/>
</signal>
<signal name="N$84">
<contactref element="C55" pad="1"/>
<contactref element="C53" pad="1"/>
<contactref element="IC11" pad="1"/>
<contactref element="IC12" pad="1"/>
<contactref element="IC13" pad="1"/>
<contactref element="IC14" pad="1"/>
<contactref element="C52" pad="1"/>
<contactref element="C54" pad="1"/>
<wire x1="-43.83" y1="-124.46" x2="-43.83" y2="-129.54" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-119.38" x2="-43.83" y2="-124.46" width="0" layer="19" extent="1-1"/>
<wire x1="-43.83" y1="-114.3" x2="-43.83" y2="-119.38" width="0" layer="19" extent="1-1"/>
<wire x1="-34.29" y1="3.175" x2="-43.83" y2="-114.3" width="0" layer="19" extent="1-1"/>
<wire x1="-26.67" y1="3.175" x2="-34.29" y2="3.175" width="0" layer="19" extent="1-1"/>
<wire x1="-19.05" y1="3.175" x2="-26.67" y2="3.175" width="0" layer="19" extent="1-1"/>
<wire x1="-11.43" y1="3.175" x2="-19.05" y2="3.175" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$85">
<contactref element="C53" pad="2"/>
<contactref element="IC14" pad="7"/>
<contactref element="C52" pad="2"/>
<contactref element="C55" pad="2"/>
<contactref element="IC11" pad="7"/>
<contactref element="IC12" pad="7"/>
<contactref element="IC13" pad="7"/>
<wire x1="-42.53" y1="-119.38" x2="-42.53" y2="-129.54" width="0" layer="19" extent="1-1"/>
<wire x1="-42.53" y1="-114.3" x2="-42.53" y2="-119.38" width="0" layer="19" extent="1-1"/>
<wire x1="-29.21" y1="1.905" x2="-42.53" y2="-114.3" width="0" layer="19" extent="1-1"/>
<wire x1="-21.59" y1="1.905" x2="-29.21" y2="1.905" width="0" layer="19" extent="1-1"/>
<wire x1="-13.97" y1="1.905" x2="-21.59" y2="1.905" width="0" layer="19" extent="1-1"/>
<wire x1="-6.35" y1="1.905" x2="-13.97" y2="1.905" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$58">
<contactref element="U13" pad="20"/>
<contactref element="C24" pad="1"/>
<wire x1="12.08" y1="22.86" x2="15.846809375" y2="21.68750625" width="0" layer="19" extent="16-16"/>
</signal>
</signals>
<mfgpreviewcolors>
<mfgpreviewcolor name="soldermaskcolor" color="0xC8008000"/>

File diff suppressed because it is too large Load diff

View file

@ -2,12 +2,14 @@
#include "avrlib/adc.h"
#include "avrlib/avrlib.h"
#include "avrlib/boot.h"
#include "avrlib/deprecated/devices/input_array.h"
#include "avrlib/devices/mcp492x.h"
#include "avrlib/gpio.h"
#include "avrlib/spi.h"
#include "avrlib/watchdog_timer.h"
#include "stereo_mix/resources.h"
#include "avrlib/time.h"
#define degToRad(angleInDegrees) ((angleInDegrees)*M_PI / 180.0)
@ -24,6 +26,9 @@ typedef SpiMaster<NumberedGpio<3>, MSB_FIRST, 2> dac4Spi;
typedef Dac<dac4Spi, BUFFERED_REFERENCE, 1> Dac4;
typedef AdcInputScanner AnalogInputs;
typedef InputArray<AnalogInputs, 8, 4> Pots;
Pots pots;
#define NUM_CHANNELS 4
@ -32,32 +37,54 @@ uint16_t pan[NUM_CHANNELS];
int main(void)
{
Boot(true);
Dac1::Init();
Dac2::Init();
Dac3::Init();
Dac4::Init();
AnalogInputs::Init();
pots.Init();
//Adc::set_reference(ADC_DEFAULT);
//Adc::set_alignment(ADC_LEFT_ALIGNED);
AnalogInputs::set_num_inputs(8);
while (true) {
ResetWatchdog();
Pots::Event event = pots.Read();
if (event.event != EVENT_NONE) {
if (event.id < NUM_CHANNELS) { // volume pots
volume[event.id] = event.value; //pgm_read_word_near(lut_res_linear_to_exp + (event.value >> 6));
} else { // pan pots
pan[event.id - NUM_CHANNELS] = event.value >> 6;
}
} else {
//volume[1] = 4095;
}
AnalogInputs::Scan();
/*AnalogInputs.Scan();
for (int i = 0; i < NUM_CHANNELS; i++) {
volume[i] = pgm_read_word_near(lut_res_linear_to_exp + AnalogInputs::Read(i));
volume[i] = pgm_read_word_near(lut_res_linear_to_exp + (AnalogInputs.Read8(i) << 2));
if (volume[i] < 7) // some ADSRs dont seem to close completely, lets gate very low voltages...
volume[i] = 0;
pan[i] = AnalogInputs::Read(i + NUM_CHANNELS);
}
pan[i] = AnalogInputs.Read8(i + NUM_CHANNELS) << 2;
}*/
Dac1::Write(((uint32_t)(volume[0]) * pgm_read_word(lut_res_left_sin_pan + pan[0])) >> 8, 0);
Dac1::Write(((uint32_t)(volume[0]) * pgm_read_word(lut_res_right_cos_pan + pan[0])) >> 8, 1);
Dac2::Write(((uint32_t)(volume[1]) * pgm_read_word(lut_res_left_sin_pan + pan[1])) >> 8, 0);
Dac2::Write(((uint32_t)(volume[1]) * pgm_read_word(lut_res_right_cos_pan + pan[1])) >> 8, 1);
Dac3::Write(((uint32_t)(volume[2]) * pgm_read_word(lut_res_left_sin_pan + pan[2])) >> 8, 0);
Dac3::Write(((uint32_t)(volume[2]) * pgm_read_word(lut_res_right_cos_pan + pan[2])) >> 8, 1);
Dac4::Write(((uint32_t)(volume[3]) * pgm_read_word(lut_res_left_sin_pan + pan[3])) >> 8, 0);
Dac4::Write(((uint32_t)(volume[3]) * pgm_read_word(lut_res_right_cos_pan + pan[3])) >> 8, 1);
Dac1::Write(4095, 0);
Dac1::Write(4095, 1);
//Dac1::Write(((uint32_t)(volume[0]) * /*pgm_read_word_near(lut_res_left_sin_pan + */ (pan[0])) >> 8, 0);
//Dac1::Write(((uint32_t)(volume[0]) * /*pgm_read_word_near(lut_res_right_cos_pan +*/ (1024 - pan[0])) >> 8, 1);
Dac2::Write(volume[1] >> 4, 0);
Dac2::Write(volume[1] >> 4, 1);
//Dac2::Write(((uint32_t)(volume[1]) * /*pgm_read_word_near(lut_res_left_sin_pan + */ (pan[1])) >> 8, 0);
//Dac2::Write(((uint32_t)(volume[1]) * /*pgm_read_word_near(lut_res_right_cos_pan +*/ (1024 - pan[1])) >> 8, 1);
//Dac3::Write(((uint32_t)(volume[2]) * /*pgm_read_word_near(lut_res_left_sin_pan + */ (pan[2])) >> 8, 0);
//Dac3::Write(((uint32_t)(volume[2]) * /*pgm_read_word_near(lut_res_right_cos_pan +*/ (1024 - pan[2])) >> 8, 1);
//Dac4::Write(((uint32_t)(volume[3]) * /*pgm_read_word_near(lut_res_left_sin_pan + */ (pan[3])) >> 8, 0);
//Dac4::Write(((uint32_t)(volume[3]) * /*pgm_read_word_near(lut_res_right_cos_pan +*/ (1024 - pan[3])) >> 8, 1);
}
}
TIMER_0_TICK {
TickSystemClock();
}