From 7ad4b56c041a69f7c9612c6c58763c2a8ce09613 Mon Sep 17 00:00:00 2001 From: Krisjanis Rijnieks <krisjanis.rijnieks@gmail.com> Date: Sun, 25 Apr 2021 12:50:51 +0300 Subject: [PATCH] Add power symbols --- fab.dcm | 46 ++++++++++++++++++++ fab.lib | 131 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 177 insertions(+) diff --git a/fab.dcm b/fab.dcm index 1d169ae..5857368 100644 --- a/fab.dcm +++ b/fab.dcm @@ -463,6 +463,52 @@ K phototransistor NPN F https://www.everlight.com/file/ProductFile/PT15-21C-TR8.pdf $ENDCMP # +$CMP Power_+12V +D Power symbol creates a global label with name "+12V" +K power-flag +$ENDCMP +# +$CMP Power_+24V +D Power symbol creates a global label with name "+24V" +K power-flag +$ENDCMP +# +$CMP Power_+36V +D Power symbol creates a global label with name "+36V" +K power-flag +$ENDCMP +# +$CMP Power_+3V3 +D Power symbol creates a global label with name "+3V3" +K power-flag +$ENDCMP +# +$CMP Power_+48V +D Power symbol creates a global label with name "+48V" +K power-flag +$ENDCMP +# +$CMP Power_+5V +D Power symbol creates a global label with name "+5V" +K power-flag +$ENDCMP +# +$CMP Power_+9V +D Power symbol creates a global label with name "+9V" +K power-flag +$ENDCMP +# +$CMP Power_GND +D Power symbol creates a global label with name "GND" , ground +K power-flag +$ENDCMP +# +$CMP Power_PWR_FLAG +D Special symbol for telling ERC where power comes from +K power-flag +F ~ +$ENDCMP +# $CMP R D Resistor K R res resistor diff --git a/fab.lib b/fab.lib index ec015ea..96cc301 100644 --- a/fab.lib +++ b/fab.lib @@ -2562,6 +2562,137 @@ X C 2 100 200 100 D 50 50 1 1 P ENDDRAW ENDDEF # +# Power_+12V +# +DEF Power_+12V #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+12V" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +12V 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_+24V +# +DEF Power_+24V #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+24V" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +24V 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_+36V +# +DEF Power_+36V #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+36V" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +36V 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_+3V3 +# +DEF Power_+3V3 #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+3V3" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +3V3 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_+48V +# +DEF Power_+48V #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+48V" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +48V 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_+5V +# +DEF Power_+5V #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+5V" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +5V 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_+9V +# +DEF Power_+9V #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -150 50 H I C CNN +F1 "Power_+9V" 0 140 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 2 0 1 0 -30 50 0 100 N +P 2 0 1 0 0 0 0 100 N +P 2 0 1 0 0 100 30 50 N +X +9V 1 0 0 0 U 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_GND +# +DEF Power_GND #PWR 0 0 Y Y 1 F P +F0 "#PWR" 0 -250 50 H I C CNN +F1 "Power_GND" 0 -150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N +X GND 1 0 0 0 D 50 50 1 1 W N +ENDDRAW +ENDDEF +# +# Power_PWR_FLAG +# +DEF Power_PWR_FLAG #FLG 0 0 N N 1 F P +F0 "#FLG" 0 75 50 H I C CNN +F1 "Power_PWR_FLAG" 0 150 50 H V C CNN +F2 "" 0 0 50 H I C CNN +F3 "" 0 0 50 H I C CNN +DRAW +P 6 0 1 0 0 0 0 50 -40 75 0 100 40 75 0 50 N +X pwr 1 0 0 0 U 50 50 0 0 w +ENDDRAW +ENDDEF +# # R # DEF R R 0 0 N Y 1 F N -- GitLab