michis mods

This commit is contained in:
Michael Egger
2018-03-19 17:04:27 +01:00
parent f5bafdb09f
commit 5a7ccd8603
7 changed files with 6369 additions and 1132 deletions
+59 -15
View File
@@ -14,9 +14,9 @@
<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="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="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="20" name="Dimension" color="15" fill="1" visible="yes" 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="yes" active="yes"/>
@@ -391,6 +391,26 @@ NS Package M08A</description>
</package>
</packages>
</library>
<library name="con-molex">
<description>&lt;b&gt;Molex Connectors&lt;/b&gt;&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="22-23-2021">
<description>.100" (2.54mm) Center Headers - 2 Pin</description>
<wire x1="-2.54" y1="3.175" x2="2.54" y2="3.175" width="0.254" layer="21"/>
<wire x1="2.54" y1="3.175" x2="2.54" y2="1.27" width="0.254" layer="21"/>
<wire x1="2.54" y1="1.27" x2="2.54" y2="-3.175" width="0.254" layer="21"/>
<wire x1="2.54" y1="-3.175" x2="-2.54" y2="-3.175" width="0.254" layer="21"/>
<wire x1="-2.54" y1="-3.175" x2="-2.54" y2="1.27" width="0.254" layer="21"/>
<wire x1="-2.54" y1="1.27" x2="-2.54" y2="3.175" width="0.254" layer="21"/>
<wire x1="-2.54" y1="1.27" x2="2.54" y2="1.27" width="0.254" layer="21"/>
<pad name="1" x="-1.27" y="0" drill="1" shape="long" rot="R90"/>
<pad name="2" x="1.27" y="0" drill="1" shape="long" rot="R90"/>
<text x="-2.54" y="3.81" size="1.016" layer="25" ratio="10">&gt;NAME</text>
<text x="-2.54" y="-5.08" size="1.016" layer="27" ratio="10">&gt;VALUE</text>
</package>
</packages>
</library>
</libraries>
<attributes>
</attributes>
@@ -1216,6 +1236,18 @@ design rules under a new name.</description>
<attribute name="NAME" x="73.9775" y="7.62" size="1.016" layer="25" rot="R270"/>
<attribute name="VALUE" x="69.215" y="8.89" size="1.27" layer="27" rot="R270"/>
</element>
<element name="TO-PHASE-DELAY" library="con-molex" package="22-23-2021" value="22-23-2021" x="1.27" y="-8.89">
<attribute name="MPN" value="22-23-2021" x="1.27" y="-8.89" size="1.778" layer="27" font="vector" display="off"/>
<attribute name="OC_FARNELL" value="1462926" x="1.27" y="-8.89" size="1.778" layer="27" font="vector" display="off"/>
<attribute name="MF" value="MOLEX" x="1.27" y="-8.89" size="1.778" layer="27" font="vector" display="off"/>
<attribute name="OC_NEWARK" value="25C3832" x="1.27" y="-8.89" size="1.778" layer="27" font="vector" display="off"/>
</element>
<element name="X4" library="con-molex" package="22-23-2021" value="22-23-2021" x="1.27" y="-24.13">
<attribute name="MPN" value="22-23-2021" x="1.27" y="-24.13" size="1.778" layer="27" font="vector" display="off"/>
<attribute name="OC_FARNELL" value="1462926" x="1.27" y="-24.13" size="1.778" layer="27" font="vector" display="off"/>
<attribute name="MF" value="MOLEX" x="1.27" y="-24.13" size="1.778" layer="27" font="vector" display="off"/>
<attribute name="OC_NEWARK" value="25C3832" x="1.27" y="-24.13" size="1.778" layer="27" font="vector" display="off"/>
</element>
</elements>
<signals>
<signal name="+5V">
@@ -2033,6 +2065,13 @@ design rules under a new name.</description>
<contactref element="IC4" pad="7"/>
<wire x1="67.31" y1="39.4716" x2="72.39" y2="39.4716" width="0.6096" layer="1"/>
<wire x1="72.39" y1="39.4716" x2="72.39" y2="39.37" width="0.6096" layer="1"/>
<contactref element="TO-PHASE-DELAY" pad="1"/>
<contactref element="X4" pad="1"/>
<wire x1="99.695" y1="53.975" x2="98.425" y2="53.34" width="0" layer="19" extent="1-1"/>
<wire x1="74.93" y1="48.26" x2="78.105" y2="50.165" width="0" layer="19" extent="1-1"/>
<wire x1="80.01" y1="29.21" x2="84.455" y2="28.26" width="0" layer="19" extent="1-1"/>
<wire x1="0" y1="-8.89" x2="14.605" y2="9.525" width="0" layer="19" extent="16-16"/>
<wire x1="0" y1="-24.13" x2="0" y2="-8.89" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$2">
<contactref element="JP2" pad="2"/>
@@ -2065,16 +2104,6 @@ design rules under a new name.</description>
<signal name="N$7">
<contactref element="U1" pad="6"/>
<contactref element="U3" pad="3"/>
<contactref element="IC3" pad="3"/>
<contactref element="IC3" pad="1"/>
<contactref element="IC3" pad="13"/>
<wire x1="76.7334" y1="55.88" x2="78.105" y2="55.88" width="0.6096" layer="1"/>
<wire x1="78.105" y1="55.88" x2="78.74" y2="56.515" width="0.6096" layer="1"/>
<wire x1="78.74" y1="56.515" x2="78.74" y2="57.785" width="0.6096" layer="1"/>
<wire x1="78.74" y1="57.785" x2="78.105" y2="58.42" width="0.6096" layer="1"/>
<wire x1="78.105" y1="58.42" x2="76.7334" y2="58.42" width="0.6096" layer="1"/>
<wire x1="73.025" y1="59.69" x2="74.295" y2="58.42" width="0.6096" layer="1"/>
<wire x1="74.295" y1="58.42" x2="76.7334" y2="58.42" width="0.6096" layer="1"/>
<contactref element="C6" pad="1"/>
<wire x1="68.9" y1="29.21" x2="68.58" y2="28.575" width="0.6096" layer="1"/>
<wire x1="68.58" y1="28.575" x2="68.58" y2="26.035" width="0.6096" layer="1"/>
@@ -2090,12 +2119,12 @@ design rules under a new name.</description>
<wire x1="35.56" y1="14.605" x2="38.04" y2="14.605" width="0.6096" layer="1"/>
<wire x1="25.46" y1="14.605" x2="35.56" y2="14.605" width="0.6096" layer="1"/>
<wire x1="35.56" y1="14.605" x2="35.56" y2="13.97" width="0.6096" layer="1"/>
<wire x1="70.5866" y1="59.69" x2="68.58" y2="59.69" width="0.6096" layer="1"/>
<via x="68.58" y="59.69" extent="1-16" drill="0.7" shape="square"/>
<wire x1="68.58" y1="59.69" x2="66.675" y2="59.69" width="0.6096" layer="16"/>
<wire x1="66.675" y1="59.69" x2="57.15" y2="50.165" width="0.6096" layer="16"/>
<wire x1="57.15" y1="50.165" x2="57.15" y2="16.51" width="0.6096" layer="16"/>
<wire x1="73.025" y1="59.69" x2="70.5866" y2="59.69" width="0.6096" layer="1"/>
<contactref element="TO-PHASE-DELAY" pad="2"/>
<wire x1="2.54" y1="-8.89" x2="25.46" y2="14.605" width="0" layer="19" extent="1-1"/>
</signal>
<signal name="N$8">
<contactref element="U3" pad="1"/>
@@ -2911,6 +2940,21 @@ design rules under a new name.</description>
<wire x1="88.585" y1="33.02" x2="88.585" y2="35.245" width="0.6096" layer="1"/>
<wire x1="88.585" y1="35.245" x2="89.535" y2="36.195" width="0.6096" layer="1"/>
</signal>
<signal name="N$90">
<contactref element="IC3" pad="3"/>
<contactref element="IC3" pad="1"/>
<contactref element="IC3" pad="13"/>
<wire x1="76.7334" y1="55.88" x2="78.105" y2="55.88" width="0.6096" layer="1"/>
<wire x1="78.105" y1="55.88" x2="78.74" y2="56.515" width="0.6096" layer="1"/>
<wire x1="78.74" y1="56.515" x2="78.74" y2="57.785" width="0.6096" layer="1"/>
<wire x1="78.74" y1="57.785" x2="78.105" y2="58.42" width="0.6096" layer="1"/>
<wire x1="78.105" y1="58.42" x2="76.7334" y2="58.42" width="0.6096" layer="1"/>
<wire x1="73.025" y1="59.69" x2="74.295" y2="58.42" width="0.6096" layer="1"/>
<wire x1="74.295" y1="58.42" x2="76.7334" y2="58.42" width="0.6096" layer="1"/>
<wire x1="73.025" y1="59.69" x2="70.5866" y2="59.69" width="0.6096" layer="1"/>
<contactref element="X4" pad="2"/>
<wire x1="2.54" y1="-24.13" x2="70.5866" y2="59.69" width="0" layer="19" extent="1-1"/>
</signal>
</signals>
<errors>
<approved hash="3,1,b255f70d8879cd21"/>
+95 -13
View File
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="7.5.0">
<eagle version="7.7.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
@@ -1291,6 +1291,64 @@ grid 5.08 mm, diameter 10.5 mm</description>
</deviceset>
</devicesets>
</library>
<library name="con-molex">
<description>&lt;b&gt;Molex Connectors&lt;/b&gt;&lt;p&gt;
&lt;author&gt;Created by librarian@cadsoft.de&lt;/author&gt;</description>
<packages>
<package name="22-23-2021">
<description>.100" (2.54mm) Center Headers - 2 Pin</description>
<wire x1="-2.54" y1="3.175" x2="2.54" y2="3.175" width="0.254" layer="21"/>
<wire x1="2.54" y1="3.175" x2="2.54" y2="1.27" width="0.254" layer="21"/>
<wire x1="2.54" y1="1.27" x2="2.54" y2="-3.175" width="0.254" layer="21"/>
<wire x1="2.54" y1="-3.175" x2="-2.54" y2="-3.175" width="0.254" layer="21"/>
<wire x1="-2.54" y1="-3.175" x2="-2.54" y2="1.27" width="0.254" layer="21"/>
<wire x1="-2.54" y1="1.27" x2="-2.54" y2="3.175" width="0.254" layer="21"/>
<wire x1="-2.54" y1="1.27" x2="2.54" y2="1.27" width="0.254" layer="21"/>
<pad name="1" x="-1.27" y="0" drill="1" shape="long" rot="R90"/>
<pad name="2" x="1.27" y="0" drill="1" shape="long" rot="R90"/>
<text x="-2.54" y="3.81" size="1.016" layer="25" ratio="10">&gt;NAME</text>
<text x="-2.54" y="-5.08" size="1.016" layer="27" ratio="10">&gt;VALUE</text>
</package>
</packages>
<symbols>
<symbol name="MV">
<wire x1="1.27" y1="0" x2="0" y2="0" width="0.6096" layer="94"/>
<text x="2.54" y="-0.762" size="1.524" layer="95">&gt;NAME</text>
<text x="-0.762" y="1.397" size="1.778" layer="96">&gt;VALUE</text>
<pin name="S" x="-2.54" y="0" visible="off" length="short" direction="pas"/>
</symbol>
<symbol name="M">
<wire x1="1.27" y1="0" x2="0" y2="0" width="0.6096" layer="94"/>
<text x="2.54" y="-0.762" size="1.524" layer="95">&gt;NAME</text>
<pin name="S" x="-2.54" y="0" visible="off" length="short" direction="pas"/>
</symbol>
</symbols>
<devicesets>
<deviceset name="22-23-2021" prefix="X">
<description>.100" (2.54mm) Center Header - 2 Pin</description>
<gates>
<gate name="-1" symbol="MV" x="0" y="0" addlevel="always" swaplevel="1"/>
<gate name="-2" symbol="M" x="0" y="-2.54" addlevel="always" swaplevel="1"/>
</gates>
<devices>
<device name="" package="22-23-2021">
<connects>
<connect gate="-1" pin="S" pad="1"/>
<connect gate="-2" pin="S" pad="2"/>
</connects>
<technologies>
<technology name="">
<attribute name="MF" value="MOLEX" constant="no"/>
<attribute name="MPN" value="22-23-2021" constant="no"/>
<attribute name="OC_FARNELL" value="1462926" constant="no"/>
<attribute name="OC_NEWARK" value="25C3832" constant="no"/>
</technology>
</technologies>
</device>
</devices>
</deviceset>
</devicesets>
</library>
</libraries>
<attributes>
</attributes>
@@ -1565,6 +1623,10 @@ grid 5.08 mm, diameter 10.5 mm</description>
<part name="P+28" library="synkie" deviceset="+5V" device=""/>
<part name="P-23" library="synkie" deviceset="-5V" device=""/>
<part name="GND45" library="synkie" deviceset="0V" device=""/>
<part name="TO-PHASE-DELAY" library="con-molex" deviceset="22-23-2021" device=""/>
<part name="X4" library="con-molex" deviceset="22-23-2021" device=""/>
<part name="GND56" library="synkie" deviceset="0V" device=""/>
<part name="GND57" library="synkie" deviceset="0V" device=""/>
</parts>
<sheets>
<sheet>
@@ -1573,6 +1635,7 @@ grid 5.08 mm, diameter 10.5 mm</description>
<text x="43.18" y="132.08" size="1.778" layer="91">check footprint!</text>
<text x="43.18" y="187.96" size="1.778" layer="91">check footprint!</text>
<text x="43.18" y="241.3" size="1.778" layer="91">check footprint!</text>
<text x="294.64" y="73.66" size="1.778" layer="91">AC COUPLE</text>
</plain>
<instances>
<instance part="D1" gate="-B1" x="-22.86" y="73.66" rot="R270"/>
@@ -1879,6 +1942,12 @@ grid 5.08 mm, diameter 10.5 mm</description>
<instance part="P+28" gate="1" x="210.82" y="-27.94"/>
<instance part="P-23" gate="1" x="210.82" y="-43.18"/>
<instance part="GND45" gate="1" x="223.52" y="-43.18"/>
<instance part="TO-PHASE-DELAY" gate="-1" x="68.58" y="10.16"/>
<instance part="TO-PHASE-DELAY" gate="-2" x="68.58" y="15.24"/>
<instance part="X4" gate="-1" x="213.36" y="10.16"/>
<instance part="X4" gate="-2" x="213.36" y="15.24"/>
<instance part="GND56" gate="1" x="66.04" y="7.62"/>
<instance part="GND57" gate="1" x="210.82" y="7.62"/>
</instances>
<busses>
</busses>
@@ -2602,6 +2671,14 @@ grid 5.08 mm, diameter 10.5 mm</description>
<wire x1="220.98" y1="-38.1" x2="223.52" y2="-38.1" width="0.1524" layer="91"/>
<junction x="223.52" y="-38.1"/>
</segment>
<segment>
<pinref part="TO-PHASE-DELAY" gate="-1" pin="S"/>
<pinref part="GND56" gate="1" pin="0V"/>
</segment>
<segment>
<pinref part="X4" gate="-1" pin="S"/>
<pinref part="GND57" gate="1" pin="0V"/>
</segment>
</net>
<net name="N$2" class="0">
<segment>
@@ -2641,25 +2718,14 @@ grid 5.08 mm, diameter 10.5 mm</description>
<pinref part="U3" gate="G$1" pin="+IN"/>
<wire x1="35.56" y1="68.58" x2="66.04" y2="68.58" width="0.1524" layer="91"/>
<wire x1="66.04" y1="68.58" x2="68.58" y2="68.58" width="0.1524" layer="91"/>
<wire x1="210.82" y1="33.02" x2="210.82" y2="15.24" width="0.1524" layer="91"/>
<wire x1="210.82" y1="15.24" x2="66.04" y2="15.24" width="0.1524" layer="91"/>
<wire x1="66.04" y1="68.58" x2="66.04" y2="40.64" width="0.1524" layer="91"/>
<junction x="66.04" y="68.58"/>
<pinref part="IC3" gate="A" pin="Z1"/>
<wire x1="66.04" y1="40.64" x2="66.04" y2="15.24" width="0.1524" layer="91"/>
<wire x1="210.82" y1="33.02" x2="223.52" y2="33.02" width="0.1524" layer="91"/>
<pinref part="IC3" gate="A" pin="Y1"/>
<wire x1="223.52" y1="40.64" x2="210.82" y2="40.64" width="0.1524" layer="91"/>
<wire x1="210.82" y1="40.64" x2="210.82" y2="33.02" width="0.1524" layer="91"/>
<junction x="210.82" y="33.02"/>
<pinref part="IC3" gate="A" pin="X1"/>
<wire x1="223.52" y1="48.26" x2="210.82" y2="48.26" width="0.1524" layer="91"/>
<wire x1="210.82" y1="48.26" x2="210.82" y2="40.64" width="0.1524" layer="91"/>
<junction x="210.82" y="40.64"/>
<pinref part="C6" gate="G$1" pin="1"/>
<wire x1="0" y1="38.1" x2="0" y2="40.64" width="0.1524" layer="91"/>
<wire x1="0" y1="40.64" x2="66.04" y2="40.64" width="0.1524" layer="91"/>
<junction x="66.04" y="40.64"/>
<pinref part="TO-PHASE-DELAY" gate="-2" pin="S"/>
</segment>
</net>
<net name="N$8" class="0">
@@ -3558,6 +3624,22 @@ grid 5.08 mm, diameter 10.5 mm</description>
<pinref part="R43" gate="G$1" pin="2"/>
</segment>
</net>
<net name="N$90" class="0">
<segment>
<pinref part="IC3" gate="A" pin="Z1"/>
<wire x1="210.82" y1="33.02" x2="210.82" y2="15.24" width="0.1524" layer="91"/>
<pinref part="IC3" gate="A" pin="Y1"/>
<wire x1="223.52" y1="40.64" x2="210.82" y2="40.64" width="0.1524" layer="91"/>
<pinref part="IC3" gate="A" pin="X1"/>
<wire x1="223.52" y1="48.26" x2="210.82" y2="48.26" width="0.1524" layer="91"/>
<wire x1="210.82" y1="48.26" x2="210.82" y2="40.64" width="0.1524" layer="91"/>
<junction x="210.82" y="40.64"/>
<wire x1="210.82" y1="40.64" x2="210.82" y2="33.02" width="0.1524" layer="91"/>
<junction x="210.82" y="33.02"/>
<wire x1="210.82" y1="33.02" x2="223.52" y2="33.02" width="0.1524" layer="91"/>
<pinref part="X4" gate="-2" pin="S"/>
</segment>
</net>
</nets>
</sheet>
</sheets>
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE eagle SYSTEM "eagle.dtd">
<eagle version="6.3">
<eagle version="7.7.0">
<drawing>
<settings>
<setting alwaysvectorfont="no"/>
@@ -11796,6 +11796,8 @@ In this library the device names are the same as the pin names of the symbols, t
<sheets>
<sheet>
<plain>
<text x="-50.8" y="83.82" size="1.778" layer="91">100k durtch 10 ersetzen?</text>
<text x="-58.42" y="48.26" size="1.778" layer="91">kondenser</text>
</plain>
<instances>
<instance part="R7" gate="G$1" x="-60.96" y="63.5" rot="R270"/>
@@ -11868,7 +11870,7 @@ In this library the device names are the same as the pin names of the symbols, t
<instance part="P+2" gate="1" x="38.1" y="124.46" rot="R90"/>
<instance part="P-2" gate="1" x="38.1" y="119.38" rot="R270"/>
<instance part="GND18" gate="1" x="38.1" y="121.92" rot="R270"/>
<instance part="R24" gate="G$1" x="50.8" y="55.88"/>
<instance part="R24" gate="G$1" x="58.42" y="55.88"/>
<instance part="R25" gate="G$1" x="-60.96" y="2.54" rot="R270"/>
<instance part="R26" gate="G$1" x="-53.34" y="7.62"/>
<instance part="R27" gate="G$1" x="-35.56" y="7.62"/>
@@ -11999,7 +12001,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF" gate="G$3" pin="+5V"/>
<pinref part="P+6" gate="1" pin="+5V"/>
<pinref part="C1" gate="G$1" pin="2"/>
<pinref part="C1" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="D6" gate="-B1" pin="C"/>
@@ -12026,7 +12027,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF1" gate="G$3" pin="+5V"/>
<pinref part="P+7" gate="1" pin="+5V"/>
<pinref part="C3" gate="G$1" pin="2"/>
<pinref part="C3" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="D4" gate="-B1" pin="C"/>
@@ -12058,7 +12058,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="C15" gate="G$1" pin="2"/>
<pinref part="BUF2" gate="G$3" pin="+5V"/>
<pinref part="P+17" gate="1" pin="+5V"/>
<pinref part="P+17" gate="1" pin="+5V"/>
</segment>
</net>
<net name="-5V" class="0">
@@ -12070,7 +12069,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF" gate="G$3" pin="-5V"/>
<pinref part="P-8" gate="1" pin="-5V"/>
<pinref part="C2" gate="G$1" pin="2"/>
<pinref part="C2" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="D6" gate="-B1" pin="A"/>
@@ -12096,7 +12094,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF1" gate="G$3" pin="-5V"/>
<pinref part="P-9" gate="1" pin="-5V"/>
<pinref part="C5" gate="G$1" pin="2"/>
<pinref part="C5" gate="G$1" pin="2"/>
</segment>
<segment>
<pinref part="D4" gate="-B1" pin="A"/>
@@ -12128,7 +12125,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="C16" gate="G$1" pin="2"/>
<pinref part="BUF2" gate="G$3" pin="-5V"/>
<pinref part="P-17" gate="1" pin="-5V"/>
<pinref part="P-17" gate="1" pin="-5V"/>
</segment>
</net>
<net name="N$10" class="0">
@@ -12165,7 +12161,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF" gate="G$1" pin="OUT"/>
<pinref part="R16" gate="G$1" pin="1"/>
<pinref part="R2" gate="G$1" pin="2"/>
<pinref part="R2" gate="G$1" pin="2"/>
<wire x1="-10.16" y1="66.04" x2="-15.24" y2="66.04" width="0.1524" layer="91"/>
</segment>
</net>
@@ -12243,6 +12238,7 @@ In this library the device names are the same as the pin names of the symbols, t
<segment>
<pinref part="GND7" gate="1" pin="GND"/>
<pinref part="R24" gate="G$1" pin="1"/>
<wire x1="53.34" y1="55.88" x2="45.72" y2="55.88" width="0.1524" layer="91"/>
</segment>
<segment>
<pinref part="R25" gate="G$1" pin="2"/>
@@ -12410,7 +12406,6 @@ In this library the device names are the same as the pin names of the symbols, t
<segment>
<pinref part="R6" gate="G$1" pin="1"/>
<pinref part="R13" gate="G$1" pin="2"/>
<pinref part="R13" gate="G$1" pin="2"/>
<wire x1="-10.16" y1="40.64" x2="-15.24" y2="40.64" width="0.1524" layer="91"/>
<pinref part="BUF" gate="G$2" pin="OUT"/>
</segment>
@@ -12465,7 +12460,7 @@ In this library the device names are the same as the pin names of the symbols, t
<segment>
<pinref part="R24" gate="G$1" pin="2"/>
<pinref part="U$1" gate="G$1" pin="-IN"/>
<wire x1="55.88" y1="55.88" x2="68.58" y2="55.88" width="0.1524" layer="91"/>
<wire x1="63.5" y1="55.88" x2="68.58" y2="55.88" width="0.1524" layer="91"/>
</segment>
</net>
<net name="N$3" class="0">
@@ -12502,7 +12497,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF1" gate="G$1" pin="OUT"/>
<pinref part="R28" gate="G$1" pin="1"/>
<pinref part="R33" gate="G$1" pin="2"/>
<pinref part="R33" gate="G$1" pin="2"/>
<wire x1="-10.16" y1="5.08" x2="-15.24" y2="5.08" width="0.1524" layer="91"/>
</segment>
</net>
@@ -12573,7 +12567,6 @@ In this library the device names are the same as the pin names of the symbols, t
<segment>
<pinref part="R36" gate="G$1" pin="1"/>
<pinref part="R38" gate="G$1" pin="2"/>
<pinref part="R38" gate="G$1" pin="2"/>
<wire x1="-10.16" y1="-20.32" x2="-15.24" y2="-20.32" width="0.1524" layer="91"/>
<pinref part="BUF1" gate="G$2" pin="OUT"/>
</segment>
@@ -12655,7 +12648,6 @@ In this library the device names are the same as the pin names of the symbols, t
<pinref part="BUF2" gate="G$1" pin="OUT"/>
<pinref part="R49" gate="G$1" pin="1"/>
<pinref part="R54" gate="G$1" pin="2"/>
<pinref part="R54" gate="G$1" pin="2"/>
<wire x1="-10.16" y1="-55.88" x2="-15.24" y2="-55.88" width="0.1524" layer="91"/>
</segment>
</net>
@@ -12726,7 +12718,6 @@ In this library the device names are the same as the pin names of the symbols, t
<segment>
<pinref part="R57" gate="G$1" pin="1"/>
<pinref part="R59" gate="G$1" pin="2"/>
<pinref part="R59" gate="G$1" pin="2"/>
<wire x1="-10.16" y1="-81.28" x2="-15.24" y2="-81.28" width="0.1524" layer="91"/>
<pinref part="BUF2" gate="G$2" pin="OUT"/>
</segment>
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+27 -19
View File
@@ -54,15 +54,15 @@ void init (void) {
// Pin change Interrupts
// HSYNC on PC5 = PCINT13
// Odd/EVEN on PB2 = PCINT2
// HSYNC on PC5 = PCINT13
// Odd/EVEN on PB2 = PCINT2
PCICR = (1 << PCIE1) | (1 << PCIE0);
PCMSK1 = (1 << PCINT13);
PCMSK0 = (1 << PCINT2);
PCMSK0 = (1 << PCINT2); // PB2 - O/E
// Timer 0 : H-Sync Pulse Delay max 64us @ 20Mhz = 1280 Clock Cycles
// Prescaler 8 -> OCR0 0-160 (better something like 10-150...?)
x_pos = 150;
set_x_pos(50);
TCCR0A = 0; // Normal mode, no OC= pins connected
TIMSK0 = ( 1 << OCIE0A); // Output compare interrupt enabled
// Timer still stopped
@@ -97,17 +97,17 @@ void init (void) {
// odd/even - vertical blanking
// on one field sample cv, on other video
ISR (PCINT0_vect) {
line_idx = 0;
line_idx = 0;
if (PINB & (1 << PB2)) {
if (PINB & (1 << PB3)) {
if (PINB & (1 << PB3)) { // field 1
do_sample_video = 1;
ADCSRA |= (1 << ADPS2) | (1 << ADPS1); // prescaler 64
ADMUX = (1 << ADLAR); // adc0
ADMUX = (1 << ADLAR); // adc0 = VIDEO
}
} else {
ADCSRA |= (1 << ADPS2) | (1 << ADPS1) | (1 << ADPS1); // prescaler 128 for 10bit resolution
ADMUX = (1 << ADLAR) | 1;
ADMUX = (1 << ADLAR) | 1; // adc 1 = CV
do_sample_video = 0;
}
@@ -123,7 +123,7 @@ ISR (PCINT0_vect) {
} else {
ramp_input = 1;
TCCR1B &= ~(1 << CS10); //stop timer
}
}
}
// ------------------------------------------------------------------------------
@@ -131,19 +131,26 @@ ISR (PCINT0_vect) {
ISR (PCINT1_vect) {
// Start Timer -> Pulse delay
OCR0A = x_pos;
TCCR0B |= ( 1 << CS01 ); // clk/8 prescaler -> start timer
line_idx++;
if ( PINC & (1 << PC5)) {
TCNT0 = 0;
OCR0A = x_pos;
TCCR0B |= ( 1 << CS01 ); // clk/8 prescaler -> start timer
line_idx++;
}
}
// ------------------------------------------------------------------------------
// Pulse Start
ISR (TIMER0_COMPA_vect) {
PORTC |= (1 << 4);
PORTC |= (1 << 4); //Pulse High
TCCR0B &= ~( 1 << CS01 ); // stop timer - adc is started automatically by interrupt
}
void set_x_pos(unsigned char n) {
if (n < 10) x_pos = 10;
else if (n > 130) x_pos = 130;
else x_pos = n;
}
// ------------------------------------------------------------------------------
// ADC complete interrupt
@@ -164,14 +171,13 @@ ISR (ADC_vect) {
cv_input = (ADCL | ADCH << 2); // Left adjusted ADC result
cv_input = 1024 - cv_input;
cv_input = cv_input + 20; // keep minimum 20 clks -> 1MHZ overflow / 256 Table size -> 3.9kHz fastest
if (!fast_mode) {
cv_input *= 16;
}
OCR1AL = (unsigned char)cv_input;
OCR1AH = (unsigned char)(cv_input >> 8);
// keep minimum 20 clks -> 1MHZ overflow / 256 Table size -> 3.9kHz fastest
if (cv_input < 100) OCR1A = 100;
else OCR1A = cv_input;
}
ADCSRA |= (1 << ADPS2) | (1 << ADPS1); // prescaler 64
@@ -182,7 +188,9 @@ ISR (ADC_vect) {
cv_input = ADCH;
cv_input /= 2;
if (cv_input > 1) { // only if there seems to be signal
x_pos = cv_input + 10;
set_x_pos(cv_input);
} else {
set_x_pos(50);
}
ADCSRA |= (1 << ADPS2) | (1 << ADPS1); // prescaler 64
ADMUX = (1 << ADLAR) ; // adc0
Binary file not shown.