another take on the master time module

This commit is contained in:
mirdejavel
2013-11-23 10:02:11 +00:00
parent 03d12599d7
commit 86f4fc273b
14 changed files with 21354 additions and 229 deletions
+148 -48
View File
@@ -8,23 +8,23 @@
</settings>
<grid distance="0.0125" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="yes"/>
<layer number="2" name="Route2" color="1" fill="3" visible="no" active="no"/>
<layer number="3" name="Route3" color="4" fill="3" visible="no" active="no"/>
<layer number="14" name="Route14" color="1" fill="6" visible="no" active="no"/>
<layer number="15" name="Route15" color="4" fill="6" visible="no" active="no"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="no" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="yes"/>
@@ -48,7 +48,7 @@
<layer number="48" name="Document" color="7" fill="1" visible="no" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="no" active="yes"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="yes"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="no" active="yes"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="no" active="yes"/>
<layer number="53" name="tPadExt" color="7" fill="1" visible="no" active="no"/>
<layer number="54" name="bPadExt" color="1" fill="1" visible="no" active="no"/>
@@ -529,61 +529,157 @@ design rules under a new name.</description>
</pass>
</autorouter>
<elements>
<element name="IC2" library="40xx" package="SO14" value="4011D" x="58.7012" y="66.2422" rot="R270"/>
<element name="IC2" library="40xx" package="SO14" value="4011D" x="58.7012" y="66.2422" smashed="yes" rot="R270">
<attribute name="VALUE" x="58.0662" y="69.7982" size="1.27" layer="27" ratio="10" rot="R270"/>
<attribute name="NAME" x="56.9232" y="70.9412" size="1.27" layer="25" ratio="10"/>
</element>
<element name="C1" library="rcl" package="C1206" value="100n" x="58.7391" y="72.5845" smashed="yes" rot="R180">
<attribute name="NAME" x="60.0091" y="71.3145" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="59.6916" y="74.807" size="1.27" layer="27" rot="R180"/>
<attribute name="VALUE" x="60.3266" y="74.807" size="1.27" layer="27" rot="R180"/>
</element>
<element name="C2" library="rcl" package="C1206" value="100n" x="3.4925" y="59.3725" smashed="yes">
<attribute name="NAME" x="2.2225" y="60.6425" size="1.27" layer="25"/>
<attribute name="VALUE" x="20.0025" y="61.9125" size="1.27" layer="27"/>
<attribute name="VALUE" x="2.2225" y="56.8325" size="1.27" layer="27"/>
</element>
<element name="C3" library="rcl" package="C1206" value="100n" x="14.2875" y="59.3725" smashed="yes" rot="R180">
<attribute name="NAME" x="15.5575" y="58.1025" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="15.875" y="58.1025" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R4" library="rcl" package="R1206" value="47k" x="5.3975" y="68.58" smashed="yes" rot="R180">
<attribute name="NAME" x="6.6675" y="67.31" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="6.6675" y="71.12" size="1.27" layer="27" rot="R180"/>
</element>
<element name="C3" library="rcl" package="C1206" value="100n" x="14.2875" y="59.3725" rot="R180"/>
<element name="R4" library="rcl" package="R1206" value="47k" x="5.3975" y="68.58" rot="R180"/>
<element name="R5" library="rcl" package="R1206" value="47k" x="15.5575" y="70.1675" smashed="yes" rot="R90">
<attribute name="NAME" x="14.2875" y="68.8975" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="14.2875" y="68.8975" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R6" library="rcl" package="R1206" value="100" x="9.2075" y="70.1675" rot="R90"/>
<element name="R7" library="rcl" package="R1206" value="100" x="65.405" y="75.565"/>
<element name="R8" library="rcl" package="R1206" value="100" x="18.0975" y="70.1675" rot="R90"/>
<element name="R9" library="rcl" package="R1206" value="100" x="20.6375" y="70.2945" rot="R270"/>
<element name="R6" library="rcl" package="R1206" value="100" x="9.2075" y="70.1675" smashed="yes" rot="R90">
<attribute name="NAME" x="7.9375" y="68.8975" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="11.7475" y="69.215" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R7" library="rcl" package="R1206" value="100" x="65.405" y="75.565" smashed="yes">
<attribute name="NAME" x="64.135" y="76.835" size="1.27" layer="25"/>
<attribute name="VALUE" x="63.5" y="77.47" size="1.27" layer="27"/>
</element>
<element name="R8" library="rcl" package="R1206" value="100" x="18.0975" y="70.1675" smashed="yes" rot="R90">
<attribute name="NAME" x="16.8275" y="68.8975" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="19.685" y="68.8975" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R9" library="rcl" package="R1206" value="100" x="20.6375" y="70.2945" smashed="yes" rot="R270">
<attribute name="NAME" x="21.9075" y="71.5645" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="21.59" y="71.5645" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R10" library="rcl" package="R1206" value="2k2" x="48.5775" y="66.675" smashed="yes" rot="R270">
<attribute name="NAME" x="49.8475" y="67.945" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="47.9425" y="65.405" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="46.355" y="68.8975" size="1.27" layer="27" rot="R270"/>
</element>
<element name="C4" library="rcl" package="C1206" value="120p" x="49.8475" y="62.865" smashed="yes">
<attribute name="NAME" x="48.5775" y="64.135" size="1.27" layer="25"/>
<attribute name="VALUE" x="46.0375" y="63.5" size="1.27" layer="27"/>
<attribute name="VALUE" x="49.2125" y="60.6425" size="1.27" layer="27"/>
</element>
<element name="D5" library="diode" package="SOT23" value="BAT54S-L44" x="9.2075" y="75.2475" smashed="yes" rot="R180">
<attribute name="NAME" x="11.1125" y="73.3425" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="11.1125" y="78.4225" size="1.27" layer="27" rot="R180"/>
</element>
<element name="D6" library="diode" package="SOT23" value="BAT54S-L44" x="18.0975" y="75.2475" smashed="yes" rot="R180">
<attribute name="NAME" x="20.0025" y="73.3425" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="20.0025" y="78.4225" size="1.27" layer="27" rot="R180"/>
</element>
<element name="D7" library="diode" package="SOT23" value="BAS70-04" x="52.3875" y="66.04" smashed="yes" rot="R180">
<attribute name="NAME" x="54.2925" y="64.135" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="55.245" y="71.12" size="1.27" layer="27" rot="R180"/>
</element>
<element name="IC3" library="linear" package="SO08" value="MAX4392" x="31.4325" y="71.12" smashed="yes" rot="R90">
<attribute name="NAME" x="33.3375" y="68.453" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="33.3375" y="75.057" size="1.27" layer="27" rot="R180"/>
</element>
<element name="C5" library="rcl" package="C1206" value="100n" x="31.75" y="67.31" smashed="yes">
<attribute name="NAME" x="30.48" y="68.58" size="1.27" layer="25"/>
<attribute name="VALUE" x="30.48" y="64.77" size="1.27" layer="27"/>
</element>
<element name="C6" library="rcl" package="C1206" value="100n" x="33.9725" y="76.2" smashed="yes" rot="R90">
<attribute name="NAME" x="32.7025" y="74.93" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="32.7025" y="75.2475" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C7" library="rcl" package="C1206" value="10p" x="36.83" y="68.58" smashed="yes" rot="R90">
<attribute name="NAME" x="35.56" y="67.31" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="36.83" y="63.5" size="1.27" layer="27" rot="R90"/>
</element>
<element name="D1" library="diode" package="SOT23" value="BAT54S-L44" x="40.005" y="66.675" smashed="yes" rot="R180">
<attribute name="NAME" x="41.91" y="64.77" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="46.99" y="65.0875" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R11" library="rcl" package="R1206" value="1k" x="40.64" y="71.12" smashed="yes" rot="R180">
<attribute name="NAME" x="41.91" y="69.85" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="41.91" y="73.66" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R12" library="rcl" package="R1206" value="1k" x="36.83" y="73.66" smashed="yes" rot="R270">
<attribute name="NAME" x="38.1" y="74.93" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="36.5125" y="77.7875" size="1.27" layer="27" rot="R270"/>
</element>
<element name="D2" library="diode" package="SOT23" value="1PS302" x="40.005" y="75.565" smashed="yes">
<attribute name="NAME" x="38.1" y="77.47" size="1.27" layer="25"/>
<attribute name="VALUE" x="40.64" y="77.47" size="1.27" layer="27"/>
</element>
<element name="SIFF-IN" library="wirepad" package="3,17/1,1" value="" x="18.0975" y="65.405" smashed="yes" rot="R180">
<attribute name="NAME" x="19.6215" y="63.5" size="1.27" layer="25" ratio="10" rot="R180"/>
<attribute name="VALUE" x="18.0975" y="64.205" size="0.0254" layer="27" rot="R180"/>
</element>
<element name="IC4" library="40xx" package="SO16" value="4053D" x="69.85" y="66.9925" smashed="yes" rot="R270">
<attribute name="VALUE" x="69.215" y="71.0565" size="1.27" layer="27" ratio="10" rot="R270"/>
<attribute name="NAME" x="67.818" y="72.4535" size="1.27" layer="25" ratio="10"/>
</element>
<element name="IC5" library="linear" package="SO08" value="MAX4392" x="87.63" y="68.2625" smashed="yes" rot="R270">
<attribute name="NAME" x="85.725" y="70.9295" size="1.27" layer="25"/>
<attribute name="VALUE" x="90.17" y="64.008" size="1.27" layer="27"/>
</element>
<element name="R14" library="rcl" package="R1206" value="75" x="80.01" y="73.3425" smashed="yes">
<attribute name="NAME" x="78.74" y="74.6125" size="1.27" layer="25"/>
<attribute name="VALUE" x="75.8825" y="74.295" size="1.27" layer="27"/>
</element>
<element name="R15" library="rcl" package="R1206" value="200" x="81.915" y="69.5325" smashed="yes" rot="R270">
<attribute name="NAME" x="83.185" y="70.8025" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="79.6925" y="70.8025" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R16" library="rcl" package="R1206" value="200" x="78.74" y="69.5325" smashed="yes" rot="R90">
<attribute name="NAME" x="77.47" y="68.2625" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="77.7875" y="67.945" size="1.27" layer="27" rot="R90"/>
</element>
<element name="D5" library="diode" package="SOT23" value="BAT54S-L44" x="9.2075" y="75.2475" rot="R180"/>
<element name="D6" library="diode" package="SOT23" value="BAT54S-L44" x="18.0975" y="75.2475" rot="R180"/>
<element name="D7" library="diode" package="SOT23" value="BAS70-04" x="52.3875" y="66.04" rot="R180"/>
<element name="IC3" library="linear" package="SO08" value="LM833D" x="31.4325" y="71.12" rot="R90"/>
<element name="C5" library="rcl" package="C1206" value="100n" x="31.75" y="67.31"/>
<element name="C6" library="rcl" package="C1206" value="100n" x="33.9725" y="76.2" rot="R90"/>
<element name="C7" library="rcl" package="C1206" value="10p" x="36.83" y="68.58" rot="R90"/>
<element name="D1" library="diode" package="SOT23" value="BAT54S-L44" x="40.005" y="66.675" rot="R180"/>
<element name="R11" library="rcl" package="R1206" value="1k" x="40.64" y="71.12" rot="R180"/>
<element name="R12" library="rcl" package="R1206" value="1k" x="36.83" y="73.66" rot="R270"/>
<element name="D2" library="diode" package="SOT23" value="1PS302" x="40.005" y="75.565"/>
<element name="SIFF-IN" library="wirepad" package="3,17/1,1" value="" x="18.0975" y="65.405" rot="R180"/>
<element name="IC4" library="40xx" package="SO16" value="4053D" x="69.85" y="66.9925" rot="R270"/>
<element name="IC5" library="linear" package="SO08" value="LM833D" x="87.63" y="68.2625" rot="R270"/>
<element name="R14" library="rcl" package="R1206" value="75" x="80.01" y="73.3425"/>
<element name="R15" library="rcl" package="R1206" value="200" x="81.915" y="69.5325" rot="R270"/>
<element name="R16" library="rcl" package="R1206" value="200" x="78.74" y="69.5325" rot="R90"/>
<element name="R17" library="rcl" package="R1206" value="200" x="93.0275" y="68.2625" rot="R270"/>
<element name="R18" library="rcl" package="R1206" value="200" x="95.25" y="68.2625" rot="R90"/>
<element name="R19" library="rcl" package="R1206" value="75" x="95.5675" y="73.025"/>
<element name="C8" library="rcl" package="C0805" value="100n" x="87.63" y="71.755" rot="R180"/>
<element name="C18" library="rcl" package="C0805" value="100n" x="87.63" y="64.77"/>
<element name="C9" library="rcl" package="C0805" value="100n" x="69.85" y="73.3425" rot="R180"/>
<element name="C10" library="rcl" package="C0805" value="100n" x="64.77" y="62.23" rot="R90"/>
<element name="R1" library="rcl" package="R1206" value="75" x="25.7175" y="70.485" rot="R90"/>
<element name="SIFF-OUT" library="wirepad" package="3,17/1,1" value="" x="25.7175" y="65.405" rot="R180"/>
<element name="C13" library="rcl" package="CT3528" value="2u2tantal" x="20.6375" y="60.0075" rot="R270"/>
<element name="C14" library="rcl" package="CT3528" value="2u2tantal" x="30.7975" y="59.69" rot="R270"/>
<element name="C8" library="rcl" package="C0805" value="100n" x="87.63" y="71.755" smashed="yes" rot="R180">
<attribute name="NAME" x="88.9" y="70.485" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="88.9" y="74.295" size="1.27" layer="27" rot="R180"/>
</element>
<element name="C18" library="rcl" package="C0805" value="100n" x="87.63" y="64.77" smashed="yes">
<attribute name="NAME" x="86.36" y="66.04" size="1.27" layer="25"/>
<attribute name="VALUE" x="86.36" y="62.23" size="1.27" layer="27"/>
</element>
<element name="C9" library="rcl" package="C0805" value="100n" x="69.85" y="73.3425" smashed="yes" rot="R180">
<attribute name="NAME" x="71.12" y="72.0725" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="71.12" y="75.8825" size="1.27" layer="27" rot="R180"/>
</element>
<element name="C10" library="rcl" package="C0805" value="100n" x="64.77" y="62.23" smashed="yes" rot="R90">
<attribute name="NAME" x="63.5" y="60.96" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="63.8175" y="60.325" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R1" library="rcl" package="R1206" value="75" x="25.7175" y="70.485" smashed="yes" rot="R90">
<attribute name="NAME" x="24.4475" y="69.215" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="24.4475" y="72.39" size="1.27" layer="27" rot="R90"/>
</element>
<element name="SIFF-OUT" library="wirepad" package="3,17/1,1" value="" x="25.7175" y="65.405" smashed="yes" rot="R180">
<attribute name="NAME" x="27.2415" y="63.5" size="1.27" layer="25" ratio="10" rot="R180"/>
<attribute name="VALUE" x="25.7175" y="64.205" size="0.0254" layer="27" rot="R180"/>
</element>
<element name="C13" library="rcl" package="CT3528" value="2u2tantal" x="20.6375" y="60.0075" smashed="yes" rot="R270">
<attribute name="NAME" x="22.5425" y="62.5475" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="17.4625" y="62.5475" size="1.27" layer="27" rot="R270"/>
</element>
<element name="C14" library="rcl" package="CT3528" value="2u2tantal" x="30.7975" y="59.69" smashed="yes" rot="R270">
<attribute name="NAME" x="32.7025" y="62.23" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="32.385" y="62.23" size="1.27" layer="27" rot="R270"/>
</element>
<element name="X1" library="con-molex" package="22-23-2031" value="22-23-2031" x="25.7175" y="59.69" rot="MR0">
<attribute name="OC_NEWARK" value="30C0862" x="35.8775" y="57.15" size="1.778" layer="28" font="vector" rot="MR0" display="off"/>
<attribute name="MPN" value="22-23-2031" x="35.8775" y="57.15" size="1.778" layer="28" font="vector" rot="MR0" display="off"/>
@@ -596,13 +692,17 @@ design rules under a new name.</description>
<attribute name="MF" value="MOLEX" x="43.815" y="59.69" size="1.778" layer="28" font="vector" rot="MR0" display="off"/>
<attribute name="OC_FARNELL" value="1462920" x="43.815" y="59.69" size="1.778" layer="28" font="vector" rot="MR0" display="off"/>
</element>
<element name="OUT1" library="wirepad" package="3,17/1,1" value="" x="80.01" y="76.5175"/>
<element name="OUT1" library="wirepad" package="3,17/1,1" value="" x="80.01" y="76.5175" smashed="yes">
<attribute name="NAME" x="78.486" y="78.4225" size="1.27" layer="25" ratio="10"/>
<attribute name="VALUE" x="80.01" y="77.7175" size="0.0254" layer="27"/>
</element>
<element name="OUT2" library="wirepad" package="3,17/1,1" value="" x="93.98" y="75.8825"/>
<element name="X3" library="con-molex" package="22-23-2021" value="22-23-2021" x="8.89" y="64.77" rot="R90">
<element name="X3" library="con-molex" package="22-23-2021" value="22-23-2021" x="8.89" y="64.77" smashed="yes" rot="R90">
<attribute name="OC_NEWARK" value="25C3832" x="8.89" y="64.77" size="1.778" layer="27" font="vector" rot="R90" display="off"/>
<attribute name="MPN" value="22-23-2021" x="8.89" y="64.77" size="1.778" layer="27" font="vector" rot="R90" display="off"/>
<attribute name="MF" value="MOLEX" x="8.89" y="64.77" size="1.778" layer="27" font="vector" rot="R90" display="off"/>
<attribute name="OC_FARNELL" value="1462926" x="8.89" y="64.77" size="1.778" layer="27" font="vector" rot="R90" display="off"/>
<attribute name="NAME" x="5.08" y="62.23" size="1.016" layer="25" ratio="10" rot="R90"/>
</element>
</elements>
<signals>
+2 -2
View File
@@ -11921,7 +11921,7 @@ NS Package M08A</description>
<part name="P-7" library="supply1" deviceset="-5V" device=""/>
<part name="P+9" library="supply1" deviceset="+5V" device=""/>
<part name="D7" library="diode" deviceset="BAS70-04" device=""/>
<part name="IC3" library="linear" deviceset="LM833" device="D"/>
<part name="IC3" library="linear" deviceset="LM833" device="D" value="MAX4392"/>
<part name="C5" library="rcl" deviceset="C-EU" device="C1206" value="100n"/>
<part name="P+6" library="supply1" deviceset="+5V" device=""/>
<part name="P-4" library="supply1" deviceset="-5V" device=""/>
@@ -11937,7 +11937,7 @@ NS Package M08A</description>
<part name="AGND16" library="supply1" deviceset="AGND" device=""/>
<part name="SIFF-IN" library="wirepad" deviceset="3,17/1,1" device=""/>
<part name="IC4" library="40xx" deviceset="4053" device="D"/>
<part name="IC5" library="linear" deviceset="LM833" device="D"/>
<part name="IC5" library="linear" deviceset="LM833" device="D" value="MAX4392"/>
<part name="R14" library="rcl" deviceset="R-EU_" device="R1206" value="75"/>
<part name="R15" library="rcl" deviceset="R-EU_" device="R1206" value="200"/>
<part name="R16" library="rcl" deviceset="R-EU_" device="R1206" value="200"/>
+7 -7
View File
@@ -8,16 +8,16 @@
</settings>
<grid distance="0.0125" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="no" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
@@ -512,7 +512,7 @@ design rules under a new name.</description>
<element name="GAIN-POT10K" library="anyma-lib" package="ALPS_RK09L1120" value="10k" x="38.4175" y="35.8775" rot="MR180"/>
<element name="IC3" library="anyma-lib" package="SO08" value="LT1228" x="68.2625" y="25.0825" smashed="yes" rot="R90">
<attribute name="NAME" x="70.1675" y="21.9075" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="65.405" y="24.4475" size="1.27" layer="27"/>
<attribute name="VALUE" x="64.77" y="21.9075" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R301" library="rcl" package="R1206" value="47k" x="62.865" y="35.8775" smashed="yes" rot="R180">
<attribute name="NAME" x="64.135" y="34.6075" size="1.27" layer="25" rot="R180"/>
@@ -6,18 +6,18 @@
<setting alwaysvectorfont="no"/>
<setting verticaltext="up"/>
</settings>
<grid distance="0.05" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<grid distance="0.0125" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="yes" active="yes"/>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="no" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
@@ -44,7 +44,7 @@
<layer number="48" name="Document" color="7" fill="1" visible="no" active="yes"/>
<layer number="49" name="Reference" color="7" fill="1" visible="no" active="yes"/>
<layer number="50" name="dxf" color="7" fill="1" visible="no" active="no"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="no" active="yes"/>
<layer number="51" name="tDocu" color="7" fill="1" visible="yes" active="yes"/>
<layer number="52" name="bDocu" color="7" fill="1" visible="no" active="yes"/>
<layer number="53" name="tPadExt" color="7" fill="1" visible="no" active="no"/>
<layer number="54" name="bPadExt" color="1" fill="1" visible="no" active="no"/>
@@ -425,73 +425,142 @@ design rules under a new name.</description>
</pass>
</autorouter>
<elements>
<element name="R7" library="rcl" package="R1206" value="4k7" x="83.82" y="21.59" rot="R180"/>
<element name="R10" library="rcl" package="R1206" value="100" x="88.5825" y="21.59"/>
<element name="R7" library="rcl" package="R1206" value="4k7" x="83.82" y="21.59" smashed="yes" rot="R180">
<attribute name="NAME" x="85.09" y="20.32" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="85.09" y="20.6375" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R10" library="rcl" package="R1206" value="100" x="88.5825" y="21.59" smashed="yes">
<attribute name="NAME" x="87.3125" y="22.86" size="1.27" layer="25"/>
<attribute name="VALUE" x="87.3125" y="19.05" size="1.27" layer="27"/>
</element>
<element name="R11" library="rcl" package="R1206" value="100k" x="89.8525" y="31.115" smashed="yes" rot="R90">
<attribute name="NAME" x="88.5825" y="29.845" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="93.6625" y="25.7175" size="1.27" layer="27" rot="R90"/>
<attribute name="VALUE" x="91.1225" y="29.845" size="1.27" layer="27" rot="R90"/>
</element>
<element name="D2" library="diode" package="SOT23" value="BAT54S-L44" x="89.8525" y="24.765" smashed="yes" rot="R180">
<attribute name="NAME" x="91.7575" y="22.86" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="91.7575" y="27.94" size="1.27" layer="27" rot="R180"/>
</element>
<element name="CV-IN" library="wirepad" package="3,17/1,1" value="" x="86.36" y="24.765" smashed="yes" rot="R90">
<attribute name="NAME" x="84.455" y="23.241" size="1.27" layer="25" ratio="10" rot="R90"/>
<attribute name="VALUE" x="85.16" y="24.765" size="0.0254" layer="27" rot="R90"/>
</element>
<element name="BUF" library="anyma-lib" package="SO08" value="LMH6643MA" x="89.2175" y="38.4175" smashed="yes">
<attribute name="NAME" x="86.0425" y="36.5125" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="94.615" y="41.91" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R16" library="rcl" package="R1206" value="1k" x="83.185" y="45.4025" smashed="yes" rot="R90">
<attribute name="NAME" x="81.915" y="44.1325" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="83.82" y="44.45" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C1" library="rcl" package="C1206" value="" x="85.725" y="38.4175" smashed="yes" rot="R90">
<attribute name="NAME" x="84.455" y="37.1475" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="88.265" y="37.1475" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C2" library="rcl" package="C1206" value="" x="93.0275" y="38.4175" smashed="yes" rot="R270">
<attribute name="NAME" x="94.2975" y="39.6875" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="90.4875" y="39.6875" size="1.27" layer="27" rot="R270"/>
</element>
<element name="U$1" library="anyma-lib" package="SO08" value="LT1228" x="87.9475" y="61.2775" smashed="yes" rot="R180">
<attribute name="NAME" x="91.1225" y="63.1825" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="85.725" y="60.325" size="1.27" layer="27"/>
</element>
<element name="R5" library="rcl" package="R1206" value="47k" x="88.265" y="75.8825" smashed="yes">
<attribute name="NAME" x="86.995" y="77.1525" size="1.27" layer="25"/>
<attribute name="VALUE" x="87.3125" y="77.1525" size="1.27" layer="27"/>
</element>
<element name="R8" library="rcl" package="R1206" value="100" x="85.09" y="71.4375" smashed="yes" rot="R270">
<attribute name="NAME" x="86.36" y="72.7075" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="82.55" y="72.7075" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R9" library="rcl" package="R1206" value="1k" x="87.3125" y="71.4375" smashed="yes" rot="R270">
<attribute name="NAME" x="88.5825" y="72.7075" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="85.725" y="72.0725" size="1.27" layer="27" rot="R270"/>
</element>
<element name="D6" library="diode" package="SOT23" value="BAT54S-L44" x="83.185" y="67.6275" smashed="yes">
<attribute name="NAME" x="81.28" y="69.5325" size="1.27" layer="25"/>
<attribute name="VALUE" x="81.28" y="64.4525" size="1.27" layer="27"/>
</element>
<element name="SIFF-IN" library="wirepad" package="3,17/1,1" value="" x="84.1375" y="75.8825" smashed="yes" rot="R270">
<attribute name="NAME" x="86.0425" y="77.4065" size="1.27" layer="25" ratio="10" rot="R270"/>
<attribute name="VALUE" x="85.3375" y="75.8825" size="0.0254" layer="27" rot="R270"/>
</element>
<element name="D2" library="diode" package="SOT23" value="BAT54S-L44" x="89.8525" y="24.765" rot="R180"/>
<element name="CV-IN" library="wirepad" package="3,17/1,1" value="" x="86.36" y="24.765" rot="R90"/>
<element name="BUF" library="anyma-lib" package="SO08" value="LMH6643MA" x="89.2175" y="38.4175"/>
<element name="R16" library="rcl" package="R1206" value="1k" x="83.185" y="45.4025" rot="R90"/>
<element name="C1" library="rcl" package="C1206" value="" x="85.725" y="38.4175" rot="R90"/>
<element name="C2" library="rcl" package="C1206" value="" x="93.0275" y="38.4175" rot="R270"/>
<element name="U$1" library="anyma-lib" package="SO08" value="LT1228" x="87.9475" y="61.2775" rot="R180"/>
<element name="R5" library="rcl" package="R1206" value="47k" x="88.265" y="75.8825"/>
<element name="R8" library="rcl" package="R1206" value="100" x="85.09" y="71.4375" rot="R270"/>
<element name="R9" library="rcl" package="R1206" value="1k" x="87.3125" y="71.4375" rot="R270"/>
<element name="D6" library="diode" package="SOT23" value="BAT54S-L44" x="83.185" y="67.6275"/>
<element name="SIFF-IN" library="wirepad" package="3,17/1,1" value="" x="84.1375" y="75.8825" rot="R270"/>
<element name="R1" library="rcl" package="R1206" value="100k" x="95.25" y="32.7025" smashed="yes">
<attribute name="NAME" x="93.98" y="33.9725" size="1.27" layer="25"/>
<attribute name="VALUE" x="97.79" y="28.8925" size="1.27" layer="27"/>
<attribute name="VALUE" x="93.6625" y="33.3375" size="1.27" layer="27"/>
</element>
<element name="R2" library="rcl" package="R1206" value="100k" x="85.4075" y="31.115" smashed="yes" rot="R90">
<attribute name="NAME" x="84.1375" y="29.845" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="85.4075" y="26.035" size="1.27" layer="27" rot="R90"/>
<attribute name="VALUE" x="85.09" y="29.845" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R3" library="rcl" package="R1206" value="100k" x="87.63" y="31.115" smashed="yes" rot="R270">
<attribute name="NAME" x="88.9" y="32.385" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="86.36" y="28.575" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="87.63" y="33.655" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R4" library="rcl" package="R1206" value="100k" x="92.075" y="45.4025" smashed="yes" rot="R270">
<attribute name="NAME" x="93.345" y="46.6725" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="90.805" y="50.4825" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="91.7575" y="47.9425" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R6" library="rcl" package="R1206" value="1k" x="85.4075" y="45.4025" smashed="yes" rot="R90">
<attribute name="NAME" x="84.1375" y="44.1325" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="86.0425" y="44.45" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R6" library="rcl" package="R1206" value="1k" x="85.4075" y="45.4025" rot="R90"/>
<element name="R12" library="rcl" package="R1206" value="100k" x="94.2975" y="45.4025" smashed="yes" rot="R90">
<attribute name="NAME" x="93.0275" y="44.1325" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="94.2975" y="47.9425" size="1.27" layer="27" rot="R90"/>
<attribute name="VALUE" x="95.885" y="44.1325" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R13" library="rcl" package="R1206" value="100k" x="87.63" y="45.4025" smashed="yes" rot="R270">
<attribute name="NAME" x="88.9" y="46.6725" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="87.63" y="50.4825" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="87.3125" y="47.3075" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R17" library="rcl" package="R1206" value="100k" x="89.8525" y="48.26" smashed="yes" rot="R90">
<attribute name="NAME" x="88.5825" y="46.99" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="91.1225" y="50.8" size="1.27" layer="27" rot="R90"/>
<attribute name="VALUE" x="89.2175" y="47.3075" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R18" library="rcl" package="R1206" value="1k6" x="82.2325" y="54.2925" smashed="yes" rot="R90">
<attribute name="NAME" x="80.9625" y="53.0225" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="83.5025" y="53.0225" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C6" library="rcl" package="C1206" value="" x="84.1375" y="61.2775" smashed="yes" rot="R270">
<attribute name="NAME" x="85.4075" y="62.5475" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="81.5975" y="62.5475" size="1.27" layer="27" rot="R270"/>
</element>
<element name="C7" library="rcl" package="C1206" value="" x="92.075" y="61.2775" smashed="yes" rot="R90">
<attribute name="NAME" x="90.805" y="60.0075" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="94.615" y="60.0075" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C8" library="rcl" package="CT6032" value="2u2tantal" x="81.5975" y="61.2775" smashed="yes" rot="R90">
<attribute name="NAME" x="79.6925" y="58.7375" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="80.645" y="58.1025" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C9" library="rcl" package="CT6032" value="2u2tantal" x="94.615" y="61.2775" smashed="yes" rot="R90">
<attribute name="NAME" x="92.71" y="58.7375" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="96.52" y="58.42" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R19" library="rcl" package="R1206" value="100" x="89.535" y="71.4375" smashed="yes" rot="R270">
<attribute name="NAME" x="90.805" y="72.7075" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="88.265" y="72.7075" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R20" library="rcl" package="R1206" value="300" x="91.7575" y="71.4375" smashed="yes" rot="R90">
<attribute name="NAME" x="90.4875" y="70.1675" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="93.98" y="70.8025" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R18" library="rcl" package="R1206" value="1k6" x="82.2325" y="54.2925" rot="R90"/>
<element name="C6" library="rcl" package="C1206" value="" x="84.1375" y="61.2775" rot="R270"/>
<element name="C7" library="rcl" package="C1206" value="" x="92.075" y="61.2775" rot="R90"/>
<element name="C8" library="rcl" package="CT6032" value="2u2tantal" x="81.5975" y="61.2775" rot="R90"/>
<element name="C9" library="rcl" package="CT6032" value="2u2tantal" x="94.615" y="61.2775" rot="R90"/>
<element name="R19" library="rcl" package="R1206" value="100" x="89.535" y="71.4375" rot="R270"/>
<element name="R20" library="rcl" package="R1206" value="300" x="91.7575" y="71.4375" rot="R90"/>
<element name="R21" library="rcl" package="R1206" value="22" x="89.8525" y="54.2925" smashed="yes" rot="R270">
<attribute name="NAME" x="91.1225" y="55.5625" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="89.8525" y="51.7525" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="91.1225" y="55.5625" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R22" library="rcl" package="R1206" value="180" x="87.3125" y="54.2925" smashed="yes" rot="R270">
<attribute name="NAME" x="88.5825" y="55.5625" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="87.3125" y="51.7525" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="87.63" y="55.88" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R23" library="rcl" package="R1206" value="75" x="84.7725" y="54.2925" smashed="yes" rot="R270">
<attribute name="NAME" x="86.0425" y="55.5625" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="84.7725" y="51.7525" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="85.09" y="55.5625" size="1.27" layer="27" rot="R270"/>
</element>
<element name="OUT-" library="wirepad" package="3,17/1,1" value="" x="84.7725" y="49.8475" smashed="yes">
<attribute name="NAME" x="83.2485" y="51.7525" size="1.27" layer="25" ratio="10"/>
<attribute name="VALUE" x="84.7725" y="51.0475" size="0.0254" layer="27"/>
</element>
<element name="OUT-" library="wirepad" package="3,17/1,1" value="" x="84.7725" y="49.8475"/>
<element name="X1" library="con-molex" package="22-23-2031" value="22-23-2031" x="13.0175" y="3.81" rot="MR180">
<attribute name="OC_NEWARK" value="30C0862" x="4.445" y="-7.3025" size="1.778" layer="28" font="vector" rot="MR180" display="off"/>
<attribute name="MPN" value="22-23-2031" x="4.445" y="-7.3025" size="1.778" layer="28" font="vector" rot="MR180" display="off"/>
@@ -500,44 +569,158 @@ design rules under a new name.</description>
</element>
<element name="C10" library="rcl" package="CT6032" value="" x="16.8275" y="8.255" rot="R180"/>
<element name="C12" library="rcl" package="CT6032" value="" x="8.5725" y="8.255" rot="R180"/>
<element name="R24" library="rcl" package="R1206" value="100" x="91.7575" y="67.31" rot="R180"/>
<element name="R14" library="rcl" package="R1206" value="4k7" x="83.82" y="14.2875" rot="R180"/>
<element name="R15" library="rcl" package="R1206" value="100" x="88.9" y="14.2875"/>
<element name="D1" library="diode" package="SOT23" value="BAT54S-L44" x="90.17" y="17.78" rot="R180"/>
<element name="CV-IN1" library="wirepad" package="3,17/1,1" value="" x="86.6775" y="17.78" rot="R90"/>
<element name="R25" library="rcl" package="R1206" value="4k7" x="69.215" y="22.225" rot="R180"/>
<element name="R26" library="rcl" package="R1206" value="100" x="73.9775" y="22.225"/>
<element name="R27" library="rcl" package="R1206" value="100k" x="75.565" y="31.75" rot="R90"/>
<element name="D3" library="diode" package="SOT23" value="BAT54S-L44" x="75.565" y="25.4" rot="R180"/>
<element name="CV-IN2" library="wirepad" package="3,17/1,1" value="" x="71.755" y="25.0825"/>
<element name="BUF1" library="anyma-lib" package="SO08" value="LMH6643MA" x="73.3425" y="38.735"/>
<element name="R28" library="rcl" package="R1206" value="1k" x="66.675" y="45.72" rot="R90"/>
<element name="C3" library="rcl" package="C1206" value="" x="69.5325" y="38.735" rot="R90"/>
<element name="C5" library="rcl" package="C1206" value="" x="77.1525" y="38.735" rot="R270"/>
<element name="U$2" library="anyma-lib" package="SO08" value="LT1228" x="73.66" y="61.595" rot="R180"/>
<element name="R29" library="rcl" package="R1206" value="47k" x="75.565" y="76.2"/>
<element name="R30" library="rcl" package="R1206" value="100" x="71.4375" y="71.755" rot="R270"/>
<element name="R31" library="rcl" package="R1206" value="1k" x="73.9775" y="71.755" rot="R270"/>
<element name="D4" library="diode" package="SOT23" value="BAT54S-L44" x="68.8975" y="67.945"/>
<element name="SIFF-IN1" library="wirepad" package="3,17/1,1" value="" x="71.4375" y="76.2"/>
<element name="R32" library="rcl" package="R1206" value="100k" x="79.375" y="33.02"/>
<element name="R33" library="rcl" package="R1206" value="100k" x="70.485" y="31.75" rot="R90"/>
<element name="R34" library="rcl" package="R1206" value="100k" x="72.7075" y="31.75" rot="R270"/>
<element name="R35" library="rcl" package="R1206" value="100k" x="75.565" y="45.72" rot="R270"/>
<element name="R36" library="rcl" package="R1206" value="1k" x="68.8975" y="45.72" rot="R90"/>
<element name="R37" library="rcl" package="R1206" value="100k" x="77.7875" y="45.72" rot="R90"/>
<element name="R38" library="rcl" package="R1206" value="100k" x="71.12" y="45.72" rot="R270"/>
<element name="R39" library="rcl" package="R1206" value="100k" x="73.3425" y="48.5775" rot="R90"/>
<element name="R40" library="rcl" package="R1206" value="1k6" x="66.675" y="54.61" rot="R90"/>
<element name="C13" library="rcl" package="C1206" value="" x="69.5325" y="61.595" rot="R270"/>
<element name="R41" library="rcl" package="R1206" value="100" x="76.2" y="71.755" rot="R270"/>
<element name="R43" library="rcl" package="R1206" value="22" x="75.565" y="54.61" rot="R270"/>
<element name="R46" library="rcl" package="R1206" value="100" x="78.74" y="71.755" rot="R270"/>
<element name="R47" library="rcl" package="R1206" value="4k7" x="69.215" y="14.605" rot="R180"/>
<element name="R48" library="rcl" package="R1206" value="100" x="73.9775" y="14.605"/>
<element name="D5" library="diode" package="SOT23" value="BAT54S-L44" x="75.565" y="18.0975" rot="R180"/>
<element name="CV-IN3" library="wirepad" package="3,17/1,1" value="" x="71.755" y="17.78"/>
<element name="C14" library="rcl" package="C1206" value="" x="77.7875" y="61.595" rot="R90"/>
<element name="R24" library="rcl" package="R1206" value="100" x="91.7575" y="67.31" smashed="yes" rot="R180">
<attribute name="NAME" x="93.0275" y="66.04" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="93.6625" y="69.215" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R14" library="rcl" package="R1206" value="4k7" x="83.82" y="14.2875" smashed="yes" rot="R180">
<attribute name="NAME" x="85.09" y="13.0175" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="84.455" y="13.335" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R15" library="rcl" package="R1206" value="100" x="88.9" y="14.2875" smashed="yes">
<attribute name="NAME" x="87.63" y="15.5575" size="1.27" layer="25"/>
<attribute name="VALUE" x="87.63" y="12.065" size="1.27" layer="27"/>
</element>
<element name="D1" library="diode" package="SOT23" value="BAT54S-L44" x="90.17" y="17.78" smashed="yes" rot="R180">
<attribute name="NAME" x="92.075" y="15.875" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="98.425" y="18.415" size="1.27" layer="27" rot="R180"/>
</element>
<element name="CV-IN1" library="wirepad" package="3,17/1,1" value="" x="86.6775" y="17.78" smashed="yes" rot="R90">
<attribute name="NAME" x="84.7725" y="16.256" size="1.27" layer="25" ratio="10" rot="R90"/>
<attribute name="VALUE" x="85.4775" y="17.78" size="0.0254" layer="27" rot="R90"/>
</element>
<element name="R25" library="rcl" package="R1206" value="4k7" x="69.215" y="22.225" smashed="yes" rot="R180">
<attribute name="NAME" x="70.485" y="20.955" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="70.1675" y="20.955" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R26" library="rcl" package="R1206" value="100" x="73.9775" y="22.225" smashed="yes">
<attribute name="NAME" x="72.7075" y="23.495" size="1.27" layer="25"/>
<attribute name="VALUE" x="72.7075" y="19.685" size="1.27" layer="27"/>
</element>
<element name="R27" library="rcl" package="R1206" value="100k" x="75.565" y="31.75" smashed="yes" rot="R90">
<attribute name="NAME" x="74.295" y="30.48" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="75.2475" y="30.1625" size="1.27" layer="27" rot="R90"/>
</element>
<element name="D3" library="diode" package="SOT23" value="BAT54S-L44" x="75.565" y="25.4" smashed="yes" rot="R180">
<attribute name="NAME" x="77.47" y="23.495" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="77.47" y="28.575" size="1.27" layer="27" rot="R180"/>
</element>
<element name="CV-IN2" library="wirepad" package="3,17/1,1" value="" x="71.755" y="25.0825" smashed="yes">
<attribute name="NAME" x="70.231" y="26.9875" size="1.27" layer="25" ratio="10"/>
<attribute name="VALUE" x="71.755" y="26.2825" size="0.0254" layer="27"/>
</element>
<element name="BUF1" library="anyma-lib" package="SO08" value="LMH6643MA" x="73.3425" y="38.735" smashed="yes">
<attribute name="NAME" x="70.1675" y="36.83" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="78.4225" y="42.2275" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R28" library="rcl" package="R1206" value="1k" x="66.675" y="45.72" smashed="yes" rot="R90">
<attribute name="NAME" x="65.405" y="44.45" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="67.6275" y="44.7675" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C3" library="rcl" package="C1206" value="" x="69.5325" y="38.735" smashed="yes" rot="R90">
<attribute name="NAME" x="68.2625" y="37.465" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="72.0725" y="37.465" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C5" library="rcl" package="C1206" value="" x="77.1525" y="38.735" smashed="yes" rot="R270">
<attribute name="NAME" x="78.4225" y="40.005" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="74.6125" y="40.005" size="1.27" layer="27" rot="R270"/>
</element>
<element name="U$2" library="anyma-lib" package="SO08" value="LT1228" x="73.66" y="61.595" smashed="yes" rot="R180">
<attribute name="NAME" x="76.835" y="63.5" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="71.12" y="60.325" size="1.27" layer="27"/>
</element>
<element name="R29" library="rcl" package="R1206" value="47k" x="75.565" y="76.2" smashed="yes">
<attribute name="NAME" x="74.295" y="77.47" size="1.27" layer="25"/>
<attribute name="VALUE" x="73.9775" y="77.47" size="1.27" layer="27"/>
</element>
<element name="R30" library="rcl" package="R1206" value="100" x="71.4375" y="71.755" smashed="yes" rot="R270">
<attribute name="NAME" x="72.7075" y="73.025" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="68.8975" y="73.025" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R31" library="rcl" package="R1206" value="1k" x="73.9775" y="71.755" smashed="yes" rot="R270">
<attribute name="NAME" x="75.2475" y="73.025" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="72.39" y="72.39" size="1.27" layer="27" rot="R270"/>
</element>
<element name="D4" library="diode" package="SOT23" value="BAT54S-L44" x="68.8975" y="67.945" smashed="yes">
<attribute name="NAME" x="66.9925" y="69.85" size="1.27" layer="25"/>
<attribute name="VALUE" x="66.9925" y="64.77" size="1.27" layer="27"/>
</element>
<element name="SIFF-IN1" library="wirepad" package="3,17/1,1" value="" x="71.4375" y="76.2" smashed="yes">
<attribute name="NAME" x="69.9135" y="78.105" size="1.27" layer="25" ratio="10"/>
<attribute name="VALUE" x="71.4375" y="77.4" size="0.0254" layer="27"/>
</element>
<element name="R32" library="rcl" package="R1206" value="100k" x="79.375" y="33.02" smashed="yes">
<attribute name="NAME" x="78.105" y="34.29" size="1.27" layer="25"/>
<attribute name="VALUE" x="78.4225" y="33.9725" size="1.27" layer="27"/>
</element>
<element name="R33" library="rcl" package="R1206" value="100k" x="70.485" y="31.75" smashed="yes" rot="R90">
<attribute name="NAME" x="69.215" y="30.48" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="69.85" y="30.1625" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R34" library="rcl" package="R1206" value="100k" x="72.7075" y="31.75" smashed="yes" rot="R270">
<attribute name="NAME" x="73.9775" y="33.02" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="71.4375" y="33.9725" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R35" library="rcl" package="R1206" value="100k" x="75.565" y="45.72" smashed="yes" rot="R270">
<attribute name="NAME" x="76.835" y="46.99" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="75.565" y="48.26" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R36" library="rcl" package="R1206" value="1k" x="68.8975" y="45.72" smashed="yes" rot="R90">
<attribute name="NAME" x="67.6275" y="44.45" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="70.1675" y="44.7675" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R37" library="rcl" package="R1206" value="100k" x="77.7875" y="45.72" smashed="yes" rot="R90">
<attribute name="NAME" x="76.5175" y="44.45" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="79.6925" y="44.7675" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R38" library="rcl" package="R1206" value="100k" x="71.12" y="45.72" smashed="yes" rot="R270">
<attribute name="NAME" x="72.39" y="46.99" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="71.12" y="47.3075" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R39" library="rcl" package="R1206" value="100k" x="73.3425" y="48.5775" smashed="yes" rot="R90">
<attribute name="NAME" x="72.0725" y="47.3075" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="72.39" y="48.26" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R40" library="rcl" package="R1206" value="1k6" x="66.675" y="54.61" smashed="yes" rot="R90">
<attribute name="NAME" x="65.405" y="53.34" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="69.215" y="53.34" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C13" library="rcl" package="C1206" value="" x="69.5325" y="61.595" smashed="yes" rot="R270">
<attribute name="NAME" x="70.8025" y="62.865" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="66.9925" y="62.865" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R41" library="rcl" package="R1206" value="100" x="76.2" y="71.755" smashed="yes" rot="R270">
<attribute name="NAME" x="77.47" y="73.025" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="76.2" y="73.025" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R43" library="rcl" package="R1206" value="22" x="75.565" y="54.61" smashed="yes" rot="R270">
<attribute name="NAME" x="76.835" y="55.88" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="73.025" y="55.88" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R46" library="rcl" package="R1206" value="100" x="78.74" y="71.755" smashed="yes" rot="R270">
<attribute name="NAME" x="80.01" y="73.025" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="79.0575" y="73.025" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R47" library="rcl" package="R1206" value="4k7" x="69.215" y="14.605" smashed="yes" rot="R180">
<attribute name="NAME" x="70.485" y="13.335" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="70.1675" y="13.6525" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R48" library="rcl" package="R1206" value="100" x="73.9775" y="14.605" smashed="yes">
<attribute name="NAME" x="72.7075" y="15.875" size="1.27" layer="25"/>
<attribute name="VALUE" x="72.7075" y="12.3825" size="1.27" layer="27"/>
</element>
<element name="D5" library="diode" package="SOT23" value="BAT54S-L44" x="75.565" y="18.0975" smashed="yes" rot="R180">
<attribute name="NAME" x="77.47" y="16.1925" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="84.1375" y="18.7325" size="1.27" layer="27" rot="R180"/>
</element>
<element name="CV-IN3" library="wirepad" package="3,17/1,1" value="" x="71.755" y="17.78" smashed="yes">
<attribute name="NAME" x="70.231" y="19.685" size="1.27" layer="25" ratio="10"/>
<attribute name="VALUE" x="71.755" y="18.98" size="0.0254" layer="27"/>
</element>
<element name="C14" library="rcl" package="C1206" value="" x="77.7875" y="61.595" smashed="yes" rot="R90">
<attribute name="NAME" x="76.5175" y="60.325" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="80.3275" y="60.325" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R42" library="rcl" package="R1206" value="4k7" x="53.975" y="21.59" rot="R180"/>
<element name="R44" library="rcl" package="R1206" value="100" x="58.7375" y="21.59"/>
<element name="R45" library="rcl" package="R1206" value="100k" x="58.7375" y="31.115" rot="R90"/>
+18 -18
View File
@@ -8,22 +8,22 @@
</settings>
<grid distance="0.0125" unitdist="inch" unit="inch" style="lines" multiple="1" display="no" altdistance="0.025" altunitdist="inch" altunit="inch"/>
<layers>
<layer number="1" name="Top" color="4" fill="1" visible="yes" active="yes"/>
<layer number="1" name="Top" color="4" fill="1" visible="no" active="yes"/>
<layer number="16" name="Bottom" color="1" fill="1" visible="no" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="yes" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="yes" active="yes"/>
<layer number="17" name="Pads" color="2" fill="1" visible="no" active="yes"/>
<layer number="18" name="Vias" color="2" fill="1" visible="no" active="yes"/>
<layer number="19" name="Unrouted" color="6" fill="1" visible="no" active="yes"/>
<layer number="20" name="Dimension" color="15" fill="1" visible="no" active="yes"/>
<layer number="21" name="tPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="no" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="22" name="bPlace" color="7" fill="1" visible="yes" active="yes"/>
<layer number="23" name="tOrigins" color="15" fill="1" visible="yes" active="yes"/>
<layer number="24" name="bOrigins" color="15" fill="1" visible="no" active="yes"/>
<layer number="25" name="tNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="26" name="bNames" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="27" name="tValues" color="7" fill="1" visible="yes" active="yes"/>
<layer number="28" name="bValues" color="7" fill="1" visible="no" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="yes" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="yes" active="yes"/>
<layer number="29" name="tStop" color="7" fill="3" visible="no" active="yes"/>
<layer number="30" name="bStop" color="7" fill="6" visible="no" active="yes"/>
<layer number="31" name="tCream" color="7" fill="4" visible="no" active="yes"/>
<layer number="32" name="bCream" color="7" fill="5" visible="no" active="yes"/>
<layer number="33" name="tFinish" color="6" fill="3" visible="no" active="yes"/>
@@ -485,13 +485,13 @@ design rules under a new name.</description>
</pass>
</autorouter>
<elements>
<element name="C1" library="rcl" package="C1206" value="" x="12.065" y="72.39" smashed="yes" rot="R90">
<element name="C1" library="rcl" package="C1206" value="100n" x="12.065" y="72.39" smashed="yes" rot="R90">
<attribute name="NAME" x="10.795" y="71.12" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="14.605" y="71.12" size="1.27" layer="27" rot="R90"/>
</element>
<element name="C2" library="rcl" package="C1206" value="" x="9.525" y="63.1825" smashed="yes" rot="R180">
<element name="C2" library="rcl" package="C1206" value="100n" x="9.525" y="63.1825" smashed="yes" rot="R180">
<attribute name="NAME" x="10.795" y="61.9125" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="10.795" y="65.7225" size="1.27" layer="27" rot="R180"/>
<attribute name="VALUE" x="9.8425" y="62.5475" size="1.27" layer="27" rot="R180"/>
</element>
<element name="IC1" library="linear" package="SO08" value="" x="9.525" y="66.9925" rot="R270"/>
<element name="R4" library="rcl" package="R1206" value="100k" x="3.81" y="67.6275" smashed="yes" rot="R90">
@@ -507,11 +507,11 @@ design rules under a new name.</description>
<element name="R6" library="rcl" package="R1206" value="10k" x="3.81" y="62.865" rot="R270"/>
<element name="R7" library="rcl" package="R1206" value="47" x="18.415" y="66.5298" smashed="yes">
<attribute name="NAME" x="17.145" y="67.7998" size="1.27" layer="25"/>
<attribute name="VALUE" x="20.32" y="64.3073" size="1.27" layer="27"/>
<attribute name="VALUE" x="20.0025" y="65.8948" size="1.27" layer="27"/>
</element>
<element name="R8" library="rcl" package="R1206" value="1k" x="18.415" y="68.7523" smashed="yes">
<attribute name="NAME" x="17.145" y="70.0223" size="1.27" layer="25"/>
<attribute name="VALUE" x="20.955" y="69.0698" size="1.27" layer="27"/>
<attribute name="VALUE" x="20.6375" y="68.4348" size="1.27" layer="27"/>
</element>
<element name="Q1" library="transistor-npn" package="SOT23" value="BC848ASMD" x="23.8125" y="75.8825" smashed="yes">
<attribute name="NAME" x="21.9075" y="77.7875" size="1.27" layer="25"/>
@@ -519,7 +519,7 @@ design rules under a new name.</description>
</element>
<element name="R9" library="rcl" package="R1206" value="330" x="18.415" y="71.12" smashed="yes" rot="R180">
<attribute name="NAME" x="19.685" y="69.85" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="19.685" y="73.66" size="1.27" layer="27" rot="R180"/>
<attribute name="VALUE" x="20.0025" y="73.3425" size="1.27" layer="27" rot="R180"/>
</element>
<element name="LED1" library="led" package="LED3MM" value="" x="20.6375" y="77.47"/>
<element name="C7" library="rcl" package="C1206" value="" x="45.085" y="72.39" smashed="yes" rot="R90">
@@ -583,11 +583,11 @@ design rules under a new name.</description>
<element name="CV_OUT_3" library="wirepad" package="3,17/1,1" value="" x="90.4875" y="66.9925" rot="R180"/>
<element name="R22" library="rcl" package="R1206" value="10k" x="9.525" y="72.39" smashed="yes" rot="R270">
<attribute name="NAME" x="10.795" y="73.66" size="1.27" layer="25" rot="R270"/>
<attribute name="VALUE" x="8.89" y="75.8825" size="1.27" layer="27" rot="R270"/>
<attribute name="VALUE" x="8.89" y="77.1525" size="1.27" layer="27" rot="R270"/>
</element>
<element name="R23" library="rcl" package="R1206" value="100k" x="6.985" y="72.39" smashed="yes" rot="R90">
<attribute name="NAME" x="5.715" y="71.12" size="1.27" layer="25" rot="R90"/>
<attribute name="VALUE" x="6.6675" y="73.3425" size="1.27" layer="27" rot="R90"/>
<attribute name="VALUE" x="7.3025" y="74.295" size="1.27" layer="27" rot="R90"/>
</element>
<element name="R24" library="rcl" package="R1206" value="10k" x="42.545" y="72.39" smashed="yes" rot="R270">
<attribute name="NAME" x="43.815" y="73.66" size="1.27" layer="25" rot="R270"/>
@@ -607,7 +607,7 @@ design rules under a new name.</description>
</element>
<element name="Q4" library="transistor-npn" package="SOT23-BEC" value="BC817-16SMD" x="15.5575" y="62.5475" smashed="yes" rot="R180">
<attribute name="NAME" x="17.4625" y="60.6425" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="16.1925" y="60.6425" size="1.27" layer="27" rot="R180"/>
<attribute name="VALUE" x="14.605" y="60.6425" size="1.27" layer="27" rot="R180"/>
</element>
<element name="R28" library="rcl" package="R1206" value="47k" x="25.0825" y="72.39" smashed="yes">
<attribute name="NAME" x="23.8125" y="73.66" size="1.27" layer="25"/>
@@ -638,7 +638,7 @@ design rules under a new name.</description>
</element>
<element name="D1" library="diode" package="SOT23" value="BAT54S" x="19.05" y="62.5475" smashed="yes" rot="R180">
<attribute name="NAME" x="20.955" y="60.6425" size="1.27" layer="25" rot="R180"/>
<attribute name="VALUE" x="23.1775" y="60.6425" size="1.27" layer="27" rot="R180"/>
<attribute name="VALUE" x="24.13" y="60.6425" size="1.27" layer="27" rot="R180"/>
</element>
<element name="C4" library="rcl" package="C1206" value="1u" x="61.2775" y="65.0875" smashed="yes" rot="R90">
<attribute name="NAME" x="60.0075" y="63.8175" size="1.27" layer="25" rot="R90"/>
+3 -3
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.2">
<eagle version="6.3">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
@@ -15190,8 +15190,8 @@ Based on the following sources:
<part name="P+1" library="supply1" deviceset="+5V" device=""/>
<part name="GND1" library="supply1" deviceset="GND" device=""/>
<part name="P-1" library="supply1" deviceset="-5V" device=""/>
<part name="C1" library="rcl" deviceset="C-EU" device="C1206"/>
<part name="C2" library="rcl" deviceset="C-EU" device="C1206"/>
<part name="C1" library="rcl" deviceset="C-EU" device="C1206" value="100n"/>
<part name="C2" library="rcl" deviceset="C-EU" device="C1206" value="100n"/>
<part name="GND4" library="supply1" deviceset="GND" device=""/>
<part name="GND5" library="supply1" deviceset="GND" device=""/>
<part name="P-2" library="supply1" deviceset="-5V" device=""/>
+15 -4
View File
@@ -637,6 +637,8 @@ design rules under a new name.</description>
<element name="L1" library="rcl" package="L3216C" value="" x="42.8625" y="55.245" rot="R90"/>
<element name="L2" library="rcl" package="L3216C" value="" x="10.795" y="55.245" rot="R90"/>
<element name="L3" library="rcl" package="L3216C" value="" x="17.4625" y="54.2925"/>
<element name="Y-OUT1" library="wirepad" package="3,17/1,1" value="" x="2.2225" y="-10.16"/>
<element name="R4" library="rcl" package="R1206" value="75" x="2.54" y="-3.4925"/>
</elements>
<signals>
<signal name="+5V">
@@ -704,8 +706,6 @@ design rules under a new name.</description>
<vertex x="2.2225" y="36.195"/>
</polygon>
<contactref element="TRIM2" pad="1"/>
<contactref element="IC2" pad="3"/>
<contactref element="IC2" pad="2"/>
<contactref element="O-DUB" pad="1"/>
<wire x1="87.0975" y1="49.53" x2="87.0975" y2="50.165" width="0.4064" layer="1"/>
<wire x1="87.0975" y1="50.165" x2="87.0975" y2="53.34" width="0.4064" layer="1"/>
@@ -715,9 +715,7 @@ design rules under a new name.</description>
<wire x1="74.295" y1="45.4025" x2="70.8025" y2="48.665" width="0.4064" layer="1"/>
<wire x1="88.58" y1="43.9625" x2="88.58" y2="44.6675" width="0.4064" layer="1"/>
<wire x1="88.58" y1="44.6675" x2="86.8925" y2="46.355" width="0.4064" layer="1"/>
<wire x1="89.595" y1="49.2125" x2="87.415" y2="49.2125" width="0.4064" layer="1"/>
<wire x1="87.415" y1="49.2125" x2="87.0975" y2="49.53" width="0.4064" layer="1"/>
<wire x1="89.595" y1="50.4825" x2="87.415" y2="50.4825" width="0.4064" layer="1"/>
<wire x1="87.415" y1="50.4825" x2="87.0975" y2="50.165" width="0.4064" layer="1"/>
<wire x1="60.6425" y1="43.3675" x2="60.6425" y2="41.91" width="0.4064" layer="1"/>
<wire x1="60.6425" y1="41.91" x2="60.96" y2="41.5925" width="0.4064" layer="1"/>
@@ -822,6 +820,8 @@ design rules under a new name.</description>
<wire x1="76.5175" y1="53.0225" x2="76.2" y2="52.705" width="0.4064" layer="1"/>
<wire x1="76.2" y1="52.705" x2="76.2" y2="51.9045" width="0.4064" layer="1"/>
<wire x1="76.2" y1="51.9045" x2="75.8825" y2="51.587" width="0.4064" layer="1"/>
<contactref element="IC2" pad="3"/>
<wire x1="84.395" y1="51.7525" x2="89.595" y2="50.4825" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$1">
<contactref element="JP1" pad="3"/>
@@ -913,6 +913,17 @@ design rules under a new name.</description>
<wire x1="15.9625" y1="54.2925" x2="15.9625" y2="48.3475" width="0.8128" layer="1"/>
<wire x1="15.9625" y1="48.3475" x2="15.875" y2="48.26" width="0.8128" layer="1"/>
</signal>
<signal name="N$16">
<contactref element="R4" pad="2"/>
<contactref element="IC2" pad="2"/>
<wire x1="3.962" y1="-3.4925" x2="89.595" y2="49.2125" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$17">
<contactref element="Y-OUT1" pad="1"/>
<contactref element="Y-OUT1" pad="1"/>
<contactref element="R4" pad="1"/>
<wire x1="1.118" y1="-3.4925" x2="2.2225" y2="-10.16" width="0" layer="19" extent="1-1"/>
</signal>
</signals>
</board>
</drawing>
+66 -54
View File
@@ -15083,13 +15083,13 @@ NS Package M08A</description>
<part name="TRIM2" library="rcl" deviceset="R-TRIMM" device="64Y" value="500"/>
<part name="GND13" library="supply1" deviceset="GND" device=""/>
<part name="X2" library="con-molex" deviceset="22-23-2041" device=""/>
<part name="GND3" library="supply1" deviceset="GND" device=""/>
<part name="GND14" library="supply1" deviceset="GND" device=""/>
<part name="GND2" library="supply1" deviceset="GND" device=""/>
<part name="O-DUB" library="pinhead" deviceset="PINHD-1X2" device=""/>
<part name="L1" library="rcl" deviceset="L-EU" device="L3216C"/>
<part name="L2" library="rcl" deviceset="L-EU" device="L3216C"/>
<part name="L3" library="rcl" deviceset="L-EU" device="L3216C"/>
<part name="Y-OUT1" library="wirepad" deviceset="3,17/1,1" device=""/>
<part name="R4" library="rcl" deviceset="R-EU_" device="R1206" value="75"/>
</parts>
<sheets>
<sheet>
@@ -15109,44 +15109,44 @@ NS Package M08A</description>
<instance part="IC1" gate="G$1" x="81.28" y="83.82"/>
<instance part="P+2" gate="1" x="63.5" y="93.98" rot="R90"/>
<instance part="GND1" gate="1" x="66.04" y="73.66"/>
<instance part="R1" gate="G$1" x="-99.06" y="101.6" rot="R270"/>
<instance part="R2" gate="G$1" x="-91.44" y="106.68"/>
<instance part="R3" gate="G$1" x="-68.58" y="106.68"/>
<instance part="D1" gate="-B1" x="-81.28" y="106.68" rot="R270"/>
<instance part="Y-IN" gate="1" x="-106.68" y="106.68"/>
<instance part="GND4" gate="1" x="-99.06" y="93.98"/>
<instance part="GND6" gate="1" x="-81.28" y="99.06"/>
<instance part="R1" gate="G$1" x="-48.26" y="76.2" rot="R270"/>
<instance part="R2" gate="G$1" x="-40.64" y="81.28"/>
<instance part="R3" gate="G$1" x="-17.78" y="81.28"/>
<instance part="D1" gate="-B1" x="-30.48" y="81.28" rot="R270"/>
<instance part="Y-IN" gate="1" x="-55.88" y="81.28"/>
<instance part="GND4" gate="1" x="-48.26" y="68.58"/>
<instance part="GND6" gate="1" x="-30.48" y="73.66"/>
<instance part="GND12" gate="1" x="38.1" y="45.72"/>
<instance part="C2" gate="G$1" x="88.9" y="60.96"/>
<instance part="GND15" gate="1" x="88.9" y="53.34"/>
<instance part="P+4" gate="1" x="88.9" y="66.04"/>
<instance part="R5" gate="G$1" x="144.78" y="121.92"/>
<instance part="GND16" gate="1" x="152.4" y="111.76"/>
<instance part="Y-OUT" gate="1" x="208.28" y="119.38" rot="R180"/>
<instance part="R5" gate="G$1" x="144.78" y="109.22"/>
<instance part="GND16" gate="1" x="152.4" y="99.06"/>
<instance part="Y-OUT" gate="1" x="208.28" y="106.68" rot="R180"/>
<instance part="JP1" gate="A" x="50.8" y="144.78"/>
<instance part="P+5" gate="1" x="45.72" y="149.86" rot="R90"/>
<instance part="GND17" gate="1" x="45.72" y="152.4" rot="R270"/>
<instance part="P+6" gate="1" x="-81.28" y="114.3"/>
<instance part="IC2" gate="B" x="172.72" y="119.38"/>
<instance part="C3" gate="G$1" x="152.4" y="119.38" smashed="yes" rot="MR0">
<attribute name="NAME" x="151.257" y="119.8626" size="1.778" layer="95" rot="MR0"/>
<attribute name="VALUE" x="154.9146" y="114.3829" size="1.778" layer="96" rot="MR90"/>
<instance part="P+6" gate="1" x="-30.48" y="88.9"/>
<instance part="IC2" gate="B" x="172.72" y="106.68"/>
<instance part="C3" gate="G$1" x="152.4" y="106.68" smashed="yes" rot="MR0">
<attribute name="NAME" x="151.257" y="107.1626" size="1.778" layer="95" rot="MR0"/>
<attribute name="VALUE" x="154.9146" y="101.6829" size="1.778" layer="96" rot="MR90"/>
</instance>
<instance part="IC2" gate="P" x="167.64" y="81.28"/>
<instance part="C4" gate="G$1" x="162.56" y="88.9" rot="R90"/>
<instance part="C5" gate="G$1" x="162.56" y="73.66" rot="R90"/>
<instance part="GND8" gate="1" x="157.48" y="88.9" rot="R270"/>
<instance part="GND9" gate="1" x="157.48" y="73.66" rot="R270"/>
<instance part="IC2" gate="P" x="114.3" y="25.4"/>
<instance part="C4" gate="G$1" x="109.22" y="33.02" rot="R90"/>
<instance part="C5" gate="G$1" x="109.22" y="17.78" rot="R90"/>
<instance part="GND8" gate="1" x="104.14" y="33.02" rot="R270"/>
<instance part="GND9" gate="1" x="104.14" y="17.78" rot="R270"/>
<instance part="C7" gate="G$1" x="-7.62" y="15.24" smashed="yes" rot="MR180">
<attribute name="NAME" x="-6.477" y="14.7574" size="1.778" layer="95" rot="MR180"/>
<attribute name="VALUE" x="-10.1346" y="20.2371" size="1.778" layer="96" rot="MR270"/>
</instance>
<instance part="GND11" gate="1" x="-7.62" y="10.16" rot="MR0"/>
<instance part="P-1" gate="1" x="-2.54" y="20.32" rot="R90"/>
<instance part="P-2" gate="1" x="167.64" y="71.12"/>
<instance part="P+3" gate="1" x="167.64" y="91.44"/>
<instance part="P-2" gate="1" x="114.3" y="15.24"/>
<instance part="P+3" gate="1" x="114.3" y="35.56"/>
<instance part="BTN" gate="G$1" x="35.56" y="58.42" rot="R180"/>
<instance part="R8" gate="G$1" x="193.04" y="119.38" rot="R180"/>
<instance part="R8" gate="G$1" x="193.04" y="106.68" rot="R180"/>
<instance part="TRIM2" gate="G$1" x="106.68" y="109.22"/>
<instance part="GND13" gate="1" x="106.68" y="101.6"/>
<instance part="X2" gate="-1" x="40.64" y="187.96" rot="R180"/>
@@ -15154,13 +15154,13 @@ NS Package M08A</description>
<instance part="X2" gate="-3" x="40.64" y="193.04" rot="R180"/>
<instance part="X2" gate="-4" x="40.64" y="195.58" rot="R180"/>
<instance part="IC2" gate="A" x="172.72" y="149.86"/>
<instance part="GND3" gate="1" x="162.56" y="152.4" rot="R270"/>
<instance part="GND14" gate="1" x="162.56" y="147.32" rot="R270"/>
<instance part="GND2" gate="1" x="7.62" y="45.72"/>
<instance part="O-DUB" gate="G$1" x="5.08" y="58.42" rot="R180"/>
<instance part="L1" gate="G$1" x="50.8" y="187.96" rot="R90"/>
<instance part="L2" gate="G$1" x="-12.7" y="25.4" rot="R90"/>
<instance part="L3" gate="G$1" x="-12.7" y="20.32" rot="R90"/>
<instance part="Y-OUT1" gate="1" x="205.74" y="149.86" rot="R180"/>
<instance part="R4" gate="G$1" x="190.5" y="149.86" rot="R180"/>
</instances>
<busses>
</busses>
@@ -15249,14 +15249,6 @@ NS Package M08A</description>
<pinref part="GND13" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="IC2" gate="A" pin="+IN"/>
<pinref part="GND3" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="IC2" gate="A" pin="-IN"/>
<pinref part="GND14" gate="1" pin="GND"/>
</segment>
<segment>
<pinref part="O-DUB" gate="G$1" pin="1"/>
<pinref part="GND2" gate="1" pin="GND"/>
<wire x1="7.62" y1="48.26" x2="7.62" y2="55.88" width="0.1524" layer="91"/>
@@ -15292,9 +15284,9 @@ NS Package M08A</description>
</net>
<net name="N$5" class="0">
<segment>
<wire x1="-104.14" y1="106.68" x2="-96.52" y2="106.68" width="0.1524" layer="91"/>
<wire x1="-104.14" y1="106.68" x2="-99.06" y2="106.68" width="0.1524" layer="91"/>
<junction x="-104.14" y="106.68"/>
<wire x1="-53.34" y1="81.28" x2="-45.72" y2="81.28" width="0.1524" layer="91"/>
<wire x1="-53.34" y1="81.28" x2="-48.26" y2="81.28" width="0.1524" layer="91"/>
<junction x="-53.34" y="81.28"/>
<pinref part="R2" gate="G$1" pin="1"/>
<pinref part="R1" gate="G$1" pin="1"/>
<pinref part="Y-IN" gate="1" pin="P"/>
@@ -15304,28 +15296,29 @@ NS Package M08A</description>
<segment>
<pinref part="R3" gate="G$1" pin="1"/>
<pinref part="D1" gate="-B1" pin="AC"/>
<wire x1="-78.74" y1="106.68" x2="-76.2" y2="106.68" width="0.1524" layer="91"/>
<pinref part="R2" gate="G$1" pin="2"/>
<wire x1="-76.2" y1="106.68" x2="-73.66" y2="106.68" width="0.1524" layer="91"/>
<wire x1="-86.36" y1="106.68" x2="-78.74" y2="106.68" width="0.1524" layer="91"/>
<wire x1="-27.94" y1="81.28" x2="-22.86" y2="81.28" width="0.1524" layer="91"/>
<wire x1="-35.56" y1="81.28" x2="-27.94" y2="81.28" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$7" class="0">
<segment>
<wire x1="-63.5" y1="106.68" x2="-53.34" y2="106.68" width="0.1524" layer="91"/>
<pinref part="R3" gate="G$1" pin="2"/>
<pinref part="IC1" gate="G$1" pin="PB4/PCINT4/0C1B/ADC2"/>
<wire x1="66.04" y1="81.28" x2="-53.34" y2="81.28" width="0.1524" layer="91"/>
<wire x1="-53.34" y1="81.28" x2="-53.34" y2="106.68" width="0.1524" layer="91"/>
<wire x1="66.04" y1="81.28" x2="-12.7" y2="81.28" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$9" class="0">
<segment>
<pinref part="R5" gate="G$1" pin="2"/>
<wire x1="149.86" y1="121.92" x2="152.4" y2="121.92" width="0.1524" layer="91"/>
<wire x1="149.86" y1="109.22" x2="152.4" y2="109.22" width="0.1524" layer="91"/>
<pinref part="C3" gate="G$1" pin="+"/>
<pinref part="IC2" gate="B" pin="+IN"/>
<wire x1="152.4" y1="121.92" x2="165.1" y2="121.92" width="0.1524" layer="91"/>
<wire x1="152.4" y1="109.22" x2="157.48" y2="109.22" width="0.1524" layer="91"/>
<pinref part="IC2" gate="A" pin="+IN"/>
<wire x1="157.48" y1="109.22" x2="165.1" y2="109.22" width="0.1524" layer="91"/>
<wire x1="165.1" y1="152.4" x2="157.48" y2="152.4" width="0.1524" layer="91"/>
<wire x1="157.48" y1="152.4" x2="157.48" y2="109.22" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$1" class="0">
@@ -15351,14 +15344,14 @@ NS Package M08A</description>
<net name="N$14" class="0">
<segment>
<pinref part="IC2" gate="B" pin="-IN"/>
<wire x1="165.1" y1="116.84" x2="162.56" y2="116.84" width="0.1524" layer="91"/>
<wire x1="162.56" y1="116.84" x2="162.56" y2="106.68" width="0.1524" layer="91"/>
<wire x1="162.56" y1="106.68" x2="182.88" y2="106.68" width="0.1524" layer="91"/>
<wire x1="182.88" y1="106.68" x2="182.88" y2="119.38" width="0.1524" layer="91"/>
<wire x1="165.1" y1="104.14" x2="162.56" y2="104.14" width="0.1524" layer="91"/>
<wire x1="162.56" y1="104.14" x2="162.56" y2="93.98" width="0.1524" layer="91"/>
<wire x1="162.56" y1="93.98" x2="182.88" y2="93.98" width="0.1524" layer="91"/>
<wire x1="182.88" y1="93.98" x2="182.88" y2="106.68" width="0.1524" layer="91"/>
<pinref part="IC2" gate="B" pin="OUT"/>
<wire x1="182.88" y1="119.38" x2="180.34" y2="119.38" width="0.1524" layer="91"/>
<wire x1="182.88" y1="106.68" x2="180.34" y2="106.68" width="0.1524" layer="91"/>
<pinref part="R8" gate="G$1" pin="2"/>
<wire x1="182.88" y1="119.38" x2="187.96" y2="119.38" width="0.1524" layer="91"/>
<wire x1="182.88" y1="106.68" x2="187.96" y2="106.68" width="0.1524" layer="91"/>
</segment>
</net>
<net name="-5V" class="0">
@@ -15380,7 +15373,7 @@ NS Package M08A</description>
<pinref part="Y-OUT" gate="1" pin="P"/>
<pinref part="Y-OUT" gate="1" pin="P"/>
<pinref part="R8" gate="G$1" pin="1"/>
<wire x1="198.12" y1="119.38" x2="205.74" y2="119.38" width="0.1524" layer="91"/>
<wire x1="198.12" y1="106.68" x2="205.74" y2="106.68" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$13" class="0">
@@ -15388,7 +15381,6 @@ NS Package M08A</description>
<pinref part="TRIM2" gate="G$1" pin="S"/>
<pinref part="R5" gate="G$1" pin="1"/>
<wire x1="111.76" y1="109.22" x2="139.7" y2="109.22" width="0.1524" layer="91"/>
<wire x1="139.7" y1="109.22" x2="139.7" y2="121.92" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$8" class="0">
@@ -15420,6 +15412,26 @@ NS Package M08A</description>
<wire x1="-17.78" y1="20.32" x2="-20.32" y2="20.32" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$16" class="0">
<segment>
<pinref part="R4" gate="G$1" pin="2"/>
<wire x1="180.34" y1="149.86" x2="182.88" y2="149.86" width="0.1524" layer="91"/>
<pinref part="IC2" gate="A" pin="-IN"/>
<wire x1="182.88" y1="149.86" x2="185.42" y2="149.86" width="0.1524" layer="91"/>
<wire x1="165.1" y1="147.32" x2="162.56" y2="147.32" width="0.1524" layer="91"/>
<wire x1="162.56" y1="147.32" x2="162.56" y2="139.7" width="0.1524" layer="91"/>
<wire x1="162.56" y1="139.7" x2="182.88" y2="139.7" width="0.1524" layer="91"/>
<wire x1="182.88" y1="139.7" x2="182.88" y2="149.86" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$17" class="0">
<segment>
<pinref part="Y-OUT1" gate="1" pin="P"/>
<pinref part="Y-OUT1" gate="1" pin="P"/>
<pinref part="R4" gate="G$1" pin="1"/>
<wire x1="195.58" y1="149.86" x2="203.2" y2="149.86" width="0.1524" layer="91"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
+67
View File
@@ -0,0 +1,67 @@
#---------------------------------------------------------------------------------------------
# MAKEFILE: SK56 Time module
#
# Part of the Synkie Project: www.synkie.net
#
# © 2013 Michael Egger, Licensed under GNU GPLv3
#
#--------------------------------------------------------------------------------------------
# Configure the following variables according to your AVR.
# Program the device with
# make fuse # to set the clock generator, boot section size etc.
# make flash # to load the boot loader into flash
# make lock # to protect the boot loader from overwriting
# make disablereset # for ATtiny85 target - to use external reset line for IO (CAUTION: this is not easy to enable again, see README)
F_CPU = 8000000
DEVICE = atmega88
PROGRAMMER = -c usbasp -P usb
AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
# Choose your favorite programmer and interface above.
FUSEOPT = -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0x01:m
COMPILE = avr-gcc -Wall -Os -I. -mmcu=$(DEVICE) -DF_CPU=$(F_CPU)#-DDEBUG_LEVEL=2
# NEVER compile the final product with debugging! Any debug output will
# distort timing so that the specs can't be met.
OBJECTS = build/main.o
# symbolic targets:
all: build/main.hex
build:
mkdir build
build/%.o: %.c build
$(COMPILE) -c $< -o $@
flash: all
$(AVRDUDE) -U flash:w:build/main.hex:i
clean:
rm -rf build
# file targets:
build/main.bin: $(OBJECTS)
$(COMPILE) -o $@ $(OBJECTS)
build/main.hex: build/main.bin
rm -f $@ build/main.eep.hex
avr-objcopy -j .text -j .data -O ihex $< $@
avr-size $@
disasm: main.bin
avr-objdump -d main.bin
cpp:
$(COMPILE) -E main.c
fuse:
$(AVRDUDE) $(FUSEOPT)
+405
View File
@@ -0,0 +1,405 @@
//---------------------------------------------------------------------------------------------
// SK556 Time ATMEGA88
//
// Part of the Synkie Project: www.synkie.net
//
// © 2013 Michael Egger, Licensed under GNU GPLv3
//
//--------------------------------------------------------------------------------------------
// ==============================================================================
// includes
// ------------------------------------------------------------------------------
// AVR Libc (see http://www.nongnu.org/avr-libc/)
#include <avr/io.h> // include I/O definitions (port names, pin names, etc)
#include <avr/wdt.h> // include watchdog timer support
#include <avr/interrupt.h> // include interrupt support
// ==============================================================================
// Globals
// ------------------------------------------------------------------------------
volatile uint32_t ticks;
volatile uint8_t bpm;
volatile uint8_t beats_per_bar;
volatile uint8_t beat_count;
volatile uint8_t did_tick;
volatile uint16_t beat_time;
volatile uint16_t wait_until_next_beat;
volatile uint16_t wait_until_next_bar;
volatile uint16_t wait_until_free_running;
volatile uint8_t beat_pulse;
volatile uint8_t bar_pulse;
#define PULSE_LENGTH 100
volatile uint8_t tap_count;
volatile uint16_t tap_start_time;
volatile uint16_t tap_time;
volatile uint32_t ramp_start;
volatile uint32_t ramp_length;
unsigned char mode, last_buttons;
unsigned char display_buf[3];
#define DEBOUNCE_MAX_CHECKS 10
unsigned char Debounced_State;
unsigned char Debounce_State[DEBOUNCE_MAX_CHECKS];
unsigned char Debounce_Index;
unsigned char last_encoder_state;
#define DISP_PORTB_MASK 0x3F
#define DISP_PORTD_MASK 0x80
// Set Display Brightness 0-100
#define DISPLAY_BRIGHTNESS 85
volatile uint16_t display_last_ticks;
volatile uint8_t display_idx;
#define led_toggle() PORTD ^= (1 << 2)
// ==============================================================================
// Functions
// ------------------------------------------------------------------------------
void ad_start_conversion(void) {
ADCSRA |= (1 << ADIF); // clear hardware "conversion complete" flag
ADCSRA |= (1 << ADSC); // start conversion
}
void ad_set_channel(uint8_t chan) {
ADMUX = (1 << REFS1) | (chan & 0x03); // Internal 1.1V Voltage Reference.
// Cannot use external reference (must be min 2 Volts)
}
uint16_t ad_Read10bit (void) {
return (ADCL | ADCH << 8);
}
// ------------------------------------------------------------------------------
// Init
// ------------------------------------------------------------------------------
void init (void) {
/* setup Ports
PORTB
7/6 Cathodes 1/2
5 SCK / TAP Tempo Btn
4 MISO / BEAT OUT
3 MOSI / BAR OUT
2 SYNC IN
1 RAMP OUT
0 LED
PORTC
5 Lock Btn
4 Left Btn
3 Middle
2 Right Btn
0/1 Rotary
PORTD
7 Cathode 3
0-6 Anodes
*/
DDRB = (1 << 7) | (1 << 6) | (1 << 4) | (1 << 3) | (1 << 1) | (1 << 0);;
PORTB = (1 << 5);
DDRC = 0;
PORTC = 0x3f;
DDRD = 0xff;
// timer 0 -> millisecond clock
ticks = 0;
TCCR0A = (1 << WGM01); // CTC
TCCR0B = (0 << CS02) | (1 << CS01) | (1 << CS00); // 64 prescaler @ 8Mhz -> 125'000 Hz
TIMSK0 = (1 << OCIE0A); // enable interrupt
OCR0A = 124; // 1000 Hz -> Milliseconds
// timer 1 -> 16bit pwm
/* TCCR1A = (1 << COM1A1);
TCCR1B = (1 << CS10);
*/
TCCR1A = (1 << COM1A1) | (1 << WGM10); // fast pwm 8bit, clear OC1A on compare match
TCCR1B = (1 << CS10) | (1 << WGM12); // start timer no prescaler -> 8Mhz / 256 -> 32 khz PWM
// setup analog converter.
ADCSRA = (1 << ADEN) | (1 << ADPS2) | (1 << ADPS1); // enable adc, prescaler 64
ad_set_channel(7);
ad_start_conversion();
wdt_enable(WDTO_30MS); // enable watchdog timer
sei();
}
unsigned char getDigit(unsigned char d, unsigned int n) {
if (d == 0) return n % 10;
n = n / 10;
if (d == 1) return n % 10;
n = n / 10;
return n % 10;
}
unsigned char numTo7Seg (unsigned char n) {
switch (n) {
// connectoions are gcedfab
case 0: return 0b0111111; break;
case 1: return 0b0100001; break;
case 2: return 0b1011011; break;
case 3: return 0b1101011; break;
case 4: return 0b1100101; break;
case 5: return 0b1101110; break;
case 6: return 0b1111110; break;
case 7: return 0b0100011; break;
case 8: return 0b1111111; break;
case 9: return 0b1101111; break;
default: break;
}
return 0;
}
void update_display_buffer(void) {
if (mode == 0) {
unsigned char i;
bpm = 60000 / beat_time;
for (i = 0; i < 3; i++) {
display_buf[i] = numTo7Seg(getDigit(i,bpm));
}
}
}
uint16_t bpm_to_ms (uint8_t b) {
// bpm min/max : 40 / 250
// ms : 1500 / 240
// -> frames : 60 / 9.6
uint16_t temp = 60000;
return temp / b;
}
void set_beat_here(void) {
wait_until_next_beat = 0;
wait_until_free_running = 2000; // stay in tapping mode
}
void debounce_switches(){
if (ticks % 4 > 0) return; // continue below ca all 4 ms
unsigned char i,j;
Debounce_State[Debounce_Index] = (PINC & 0x3F) | ((PINB & 0x20) << 1);
++Debounce_Index;
j=0xff;
for(i=0; i<DEBOUNCE_MAX_CHECKS;i++) j=j & Debounce_State[i];
Debounced_State = j;
if (Debounce_Index>=DEBOUNCE_MAX_CHECKS) Debounce_Index=0;
}
void refresh_display(void){
display_idx++;
display_idx %= 103-DISPLAY_BRIGHTNESS;
PORTB &= DISP_PORTB_MASK;
PORTD = display_buf[display_idx] & 0x7F;
switch (display_idx) {
case 0: PORTD |= (1 << 7); break;
case 1: PORTB |= (1 << 7); break;
case 2: PORTB |= (1 << 6); break;
default: break;
}
}
void check_rotary(void) {
unsigned char n;
unsigned char encoder_state = Debounced_State & 0x03;
if (encoder_state == last_encoder_state) return;
if (~Debounced_State & 0x1c) { // any button pressed
n = 10;
} else {
n = 1;
}
if (encoder_state & 1) {
if (~last_encoder_state & 1) {
if (encoder_state & 2) beat_time -= n;
else beat_time +=n;
}
}
if (beat_time < 240) beat_time = 240;
if (beat_time > 1500) beat_time = 1500;
last_encoder_state = encoder_state;
update_display_buffer();
}
void check_buttons() {
unsigned char m = ~(Debounced_State >> 2) & 0x1F;
if (m == last_buttons) return;
last_buttons = m;
if (m == 0) return;
if (m & (1 << 4)) {
if (wait_until_free_running) {
tap_time = ticks - tap_start_time;
tap_count++;
beat_time = tap_time / tap_count;
update_display_buffer();
} else {
tap_start_time = ticks;
tap_count = 0;
beat_count = beats_per_bar; // force beat pulse output
}
set_beat_here();
}
}
// ------------------------------------------------------------------------------
// Audio input
void check_ad(void) {
static uint32_t ad_samplecount;
static uint32_t ad_mean;
static uint16_t ad_peak;
static uint32_t ad_last_peak_time;
if ((ADCSRA & (1 << ADSC))) return; // not finished with last conversion
uint16_t temp;
temp = ad_Read10bit();
ad_start_conversion();
if (temp < 511 ) return; // disregard negative side of audio
temp -= 511;
if (ad_samplecount >= 0x1FFFDFF) ad_samplecount = 0xFF; // leave room in 32 bit calculation
/* idea: ad_samplecount * ad_mean + temp below should not roll around 32 bit value
ad_mean is probably not bigger than 128 (should tend to be 0), temp could be 511, so 0xFFFFFFFF / 128 - 512
i dont set it to 0 so we keep a small sample pool for running mean */
ad_mean = ad_samplecount * ad_mean;
ad_mean += temp;
ad_samplecount++;
ad_mean /= ad_samplecount;
if (temp > (3 * ad_mean)) {
ad_peak = (15 * ad_peak + temp ) / 16; // a bit of lowpass filtering..
if (ad_peak > (10 * ad_mean)) {
//seems like a peak. constrain beats to max 255 bpm
if ((ticks - ad_last_peak_time) > 240) {
set_beat_here();
beat_time = ticks - ad_last_peak_time;
if (beat_time > 1500) beat_time = 1500; // minimum 40 bpm
ad_last_peak_time = ticks;
update_display_buffer();
}
}
}
}
// ------------------------------------------------------------------------------
// Count Milliseconds
ISR(TIMER0_COMPA_vect)
{
ticks++;
did_tick = 1;
refresh_display();
}
// ==============================================================================
// main
// ------------------------------------------------------------------------------
int main (void) {
uint32_t ramp_pos;
init();
beat_time = 500; // 120 bpm
beats_per_bar = 4;
mode = 0;
update_display_buffer();
PORTB |= (1 << 1);
while(1) {
wdt_reset();
debounce_switches();
check_buttons();
check_rotary();
if (did_tick) { // happens every millisecond
did_tick = 0;
if (beat_pulse) {
beat_pulse--;
PORTB |= (1 << 4);
} else {
PORTB &= ~(1 << 4);
}
if (wait_until_next_beat) {
wait_until_next_beat--;
} else {
beat_count++;
if (beat_count >= beats_per_bar) {
beat_count = 0;
bar_pulse = PULSE_LENGTH;
ramp_start = ticks;
ramp_length = beats_per_bar * beat_time;
}
PORTB |= (1 << 4);
beat_pulse = PULSE_LENGTH;
wait_until_next_beat = beat_time - 1;
}
if (bar_pulse) {
bar_pulse--;
PORTB |= (1 << 3);
} else {
PORTB &= ~(1 << 3);
}
if (wait_until_free_running) {
PORTB |= (1 << 0);
wait_until_free_running--;
} else {
PORTB &= ~(1 << 0);
}
}
ramp_pos = (ticks - ramp_start) * 0xFF;
ramp_pos = ramp_pos / ramp_length;
// OCR1A = (uint16_t)ramp_pos;
OCR1AL = (uint8_t) 255 - ramp_pos;
}
return 0;
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -15,7 +15,7 @@ F_CPU = 1000000
PROGRAMMER = -c usbasp -P usb
AVRDUDE = avrdude $(PROGRAMMER) -p $(DEVICE)
# Choose your favorite programmer and interface above.
FUSEOPT = -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0xf9:m
FUSEOPT = -U lfuse:w:0xe2:m -U hfuse:w:0xdf:m -U efuse:w:0x01:m
+2 -9
View File
@@ -54,12 +54,7 @@ unsigned long delay_time;
unsigned char spi_idx;
#define DEBOUNCE_MAX_CHECKS 10
unsigned char Debounced_State;
unsigned char Debounce_State[DEBOUNCE_MAX_CHECKS];
unsigned char Debounce_Index;
unsigned char last_encoder_state;
unsigned char write_enable;
<unsigned char write_enable;
void recalculate_delay(void) {
double temp;
@@ -177,7 +172,6 @@ void refresh_display(void){
default: break;
}
}
void check_rotary(void) {
if (mode > state_change_mode) return;
unsigned char n;
@@ -260,8 +254,7 @@ void check_spi(void) {
ISR(SIG_OUTPUT_COMPARE0A) // gets called more or less 8 times per millisecond
{
ticks++;
refresh_display();
}
6}
// ==============================================================================
// - main