From 073386dce8d5ef4fbd33f7a3aae4e8471a319540 Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Tue, 19 Sep 2017 10:56:10 -0700 Subject: [PATCH 1/5] Added AP2127K fixed-output LDO regulators in SOT-23-5 package. https://www.diodes.com/assets/Datasheets/AP2127.pdf This is failing the KLC script, but I don't think any of the other regulators have their power input pin on the top, either. Checking symbol 'AP2127K-3.3': Violating Rule 4.5 - Pin orientation Wherever possible, pins should be arranged by function Positive power pins should be placed at top of symbol - Pin VIN (1) @ (-300,100) --- library/regul.dcm | 60 +++++++++++++++++++++++++++++++++++++++++++++++ library/regul.lib | 21 +++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/library/regul.dcm b/library/regul.dcm index d65a644b..d19d6a3b 100644 --- a/library/regul.dcm +++ b/library/regul.dcm @@ -90,6 +90,66 @@ K linear regulator ldo fixed positive F http://www.diodes.com/_files/datasheets/AP131.pdf $ENDCMP # +$CMP AP2127K-1.0 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.0V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-1.2 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.2V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-1.5 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.5V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-1.8 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.8V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-2.5 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 2.5V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-2.8 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 2.8V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-3.0 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 3.0V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-3.3 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 3.3V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-4.2 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 4.2V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127K-4.75 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 4.75V fixed positive output, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# $CMP AP2204K-1.5 D 150mA low dropout linear regulator, wide input voltage range, 1.5V fixed positive output, SOT-23-5 package K linear regulator ldo fixed positive diff --git a/library/regul.lib b/library/regul.lib index 6bd5876f..1c363069 100644 --- a/library/regul.lib +++ b/library/regul.lib @@ -60,6 +60,27 @@ X OUT 5 300 100 100 L 50 50 1 1 w ENDDRAW ENDDEF # +# AP2127K-3.3 +# +DEF AP2127K-3.3 U 0 10 Y Y 1 F N +F0 "U" -200 225 50 H V L CNN +F1 "AP2127K-3.3" 0 225 50 H V L CNN +F2 "TO_SOT_Packages_SMD:SOT-23-5" 0 325 50 H I C CNN +F3 "" 0 100 50 H I C CNN +ALIAS AP2127K-1.0 AP2127K-1.2 AP2127K-1.5 AP2127K-1.8 AP2127K-2.5 AP2127K-2.8 AP2127K-3.0 AP2127K-4.2 AP2127K-4.75 +$FPLIST + SOT?23?5* +$ENDFPLIST +DRAW +S -200 175 200 -200 0 1 10 f +X VIN 1 -300 100 100 R 50 50 1 1 W +X GND 2 0 -300 100 U 50 50 1 1 W +X EN 3 -300 0 100 R 50 50 1 1 I +X NC 4 300 0 100 L 50 50 1 1 N N +X VOUT 5 300 100 100 L 50 50 1 1 w +ENDDRAW +ENDDEF +# # AP2204K-1.5 # DEF AP2204K-1.5 U 0 10 Y Y 1 F N From ae9c0e0c646bf80ea1661eb34f648ac9bb111a43 Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Tue, 19 Sep 2017 21:25:46 -0700 Subject: [PATCH 2/5] AP2127: alias existing parts instead of creating new parts --- library/regul.dcm | 54 +++++++++++++++++++++++++++++++++++++++++++++++ library/regul.lib | 27 +++--------------------- 2 files changed, 57 insertions(+), 24 deletions(-) diff --git a/library/regul.dcm b/library/regul.dcm index d19d6a3b..532e1815 100644 --- a/library/regul.dcm +++ b/library/regul.dcm @@ -150,6 +150,60 @@ K linear regulator ldo fixed positive F https://www.diodes.com/assets/Datasheets/AP2127.pdf $ENDCMP # +$CMP AP2127N-1.0 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.0V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-1.2 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.2V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-1.5 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.5V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-1.8 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.8V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-2.5 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 2.5V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-2.8 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 2.8V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-3.0 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 3.0V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N-3.3 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 3.3V fixed positive output, SOT-23 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127R-3.3 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 3.3V fixed positive output, SOT-89 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# $CMP AP2204K-1.5 D 150mA low dropout linear regulator, wide input voltage range, 1.5V fixed positive output, SOT-23-5 package K linear regulator ldo fixed positive diff --git a/library/regul.lib b/library/regul.lib index 1c363069..d19ef49e 100644 --- a/library/regul.lib +++ b/library/regul.lib @@ -60,27 +60,6 @@ X OUT 5 300 100 100 L 50 50 1 1 w ENDDRAW ENDDEF # -# AP2127K-3.3 -# -DEF AP2127K-3.3 U 0 10 Y Y 1 F N -F0 "U" -200 225 50 H V L CNN -F1 "AP2127K-3.3" 0 225 50 H V L CNN -F2 "TO_SOT_Packages_SMD:SOT-23-5" 0 325 50 H I C CNN -F3 "" 0 100 50 H I C CNN -ALIAS AP2127K-1.0 AP2127K-1.2 AP2127K-1.5 AP2127K-1.8 AP2127K-2.5 AP2127K-2.8 AP2127K-3.0 AP2127K-4.2 AP2127K-4.75 -$FPLIST - SOT?23?5* -$ENDFPLIST -DRAW -S -200 175 200 -200 0 1 10 f -X VIN 1 -300 100 100 R 50 50 1 1 W -X GND 2 0 -300 100 U 50 50 1 1 W -X EN 3 -300 0 100 R 50 50 1 1 I -X NC 4 300 0 100 L 50 50 1 1 N N -X VOUT 5 300 100 100 L 50 50 1 1 w -ENDDRAW -ENDDEF -# # AP2204K-1.5 # DEF AP2204K-1.5 U 0 10 Y Y 1 F N @@ -88,7 +67,7 @@ F0 "U" -200 225 50 H V L CNN F1 "AP2204K-1.5" 0 225 50 H V L CNN F2 "TO_SOT_Packages_SMD:SOT-23-5" 0 325 50 H I C CNN F3 "" 0 100 50 H I C CNN -ALIAS AP2204K-1.8 AP2204K-2.5 AP2204K-2.8 AP2204K-3.0 AP2204K-3.3 AP2204K-5.0 +ALIAS AP2204K-1.8 AP2204K-2.5 AP2204K-2.8 AP2204K-3.0 AP2204K-3.3 AP2204K-5.0 AP2127K-1.0 AP2127K-1.2 AP2127K-1.5 AP2127K-1.8 AP2127K-2.5 AP2127K-2.8 AP2127K-3.0 AP2127K-3.3 AP2127K-4.2 AP2127K-4.75 $FPLIST SOT?23?5* $ENDFPLIST @@ -210,7 +189,7 @@ F0 "U" -150 125 50 H V C CNN F1 "APE8865N-12-HF-3" 0 125 50 H V L CNN F2 "TO_SOT_Packages_SMD:SOT-23" 0 225 50 H I C CIN F3 "" 0 0 50 H I C CNN -ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 +ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 AP2127N-1.0 AP2127N-1.2 AP2127N-1.5 AP2127N-1.8 AP2127N-2.5 AP2127N-2.8 AP2127N-3.0 AP2127N-3.3 $FPLIST SOT?23* $ENDFPLIST @@ -2234,7 +2213,7 @@ F0 "U" -150 125 50 H V C CNN F1 "MCP1703A-3302_SOT89" 0 125 50 H V L CNN F2 "TO_SOT_Packages_SMD:SOT89-3_Housing" 0 200 50 H I C CNN F3 "" 0 -50 50 H I C CNN -ALIAS MCP1703A-1202_SOT89 MCP1703A-1502_SOT89 MCP1703A-1802_SOT89 MCP1703A-2502_SOT89 MCP1703A-2802_SOT89 MCP1703A-3002_SOT89 MCP1703A-4002_SOT89 MCP1703A-5002_SOT89 MCP1700-3002E_SOT89 MCP1700-1202E_SOT89 MCP1700-1802E_SOT89 MCP1700-2502E_SOT89 MCP1700-2802E_SOT89 MCP1700-3302E_SOT89 MCP1700-5002E_SOT89 +ALIAS MCP1703A-1202_SOT89 MCP1703A-1502_SOT89 MCP1703A-1802_SOT89 MCP1703A-2502_SOT89 MCP1703A-2802_SOT89 MCP1703A-3002_SOT89 MCP1703A-4002_SOT89 MCP1703A-5002_SOT89 MCP1700-3002E_SOT89 MCP1700-1202E_SOT89 MCP1700-1802E_SOT89 MCP1700-2502E_SOT89 MCP1700-2802E_SOT89 MCP1700-3302E_SOT89 MCP1700-5002E_SOT89 AP2127R-3.3 $FPLIST SOT89* $ENDFPLIST From 3ffdfda2b508ed81c92eef118489d0c6de58d31e Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Tue, 19 Sep 2017 21:28:59 -0700 Subject: [PATCH 3/5] AP2127: add alias for adjustable version --- library/regul.dcm | 6 ++++++ library/regul.lib | 1 + 2 files changed, 7 insertions(+) diff --git a/library/regul.dcm b/library/regul.dcm index 532e1815..52cb7ef5 100644 --- a/library/regul.dcm +++ b/library/regul.dcm @@ -150,6 +150,12 @@ K linear regulator ldo fixed positive F https://www.diodes.com/assets/Datasheets/AP2127.pdf $ENDCMP # +$CMP AP2127K-ADJ +D 300mA low dropout adjustable linear regulator, shutdown pin, 2.5V-6V input voltage, SOT-23-5 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# $CMP AP2127N-1.0 D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.0V fixed positive output, SOT-23 package K linear regulator ldo fixed positive diff --git a/library/regul.lib b/library/regul.lib index d19ef49e..f8c51d71 100644 --- a/library/regul.lib +++ b/library/regul.lib @@ -88,6 +88,7 @@ F0 "U" -200 225 50 H V L CNN F1 "AP2204K-ADJ" 0 225 50 H V L CNN F2 "TO_SOT_Packages_SMD:SOT-23-5" 0 325 50 H I C CNN F3 "" 0 100 50 H I C CNN +ALIAS AP2127K-ADJ $FPLIST SOT?23?5* $ENDFPLIST From dc2af9df59c387950637ed1a91309132b1d93211 Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Wed, 20 Sep 2017 09:47:10 -0700 Subject: [PATCH 4/5] Add aliases for AP2127N3-1.2 and AP2127N3-1.5. We're using the same footprint for both the SOT-23 package and the SOT-23-3 package. See discussion in the PR: https://github.com/KiCad/kicad-library/pull/1634 --- library/regul.dcm | 14 +++++++++++++- library/regul.lib | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/library/regul.dcm b/library/regul.dcm index 52cb7ef5..a9669c93 100644 --- a/library/regul.dcm +++ b/library/regul.dcm @@ -152,7 +152,7 @@ $ENDCMP # $CMP AP2127K-ADJ D 300mA low dropout adjustable linear regulator, shutdown pin, 2.5V-6V input voltage, SOT-23-5 package -K linear regulator ldo fixed positive +K linear regulator ldo adjustable positive F https://www.diodes.com/assets/Datasheets/AP2127.pdf $ENDCMP # @@ -204,6 +204,18 @@ K linear regulator ldo fixed positive F https://www.diodes.com/assets/Datasheets/AP2127.pdf $ENDCMP # +$CMP AP2127N3-1.2 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.2V fixed positive output, SOT-23-3 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# +$CMP AP2127N3-1.5 +D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 1.5V fixed positive output, SOT-23-3 package +K linear regulator ldo fixed positive +F https://www.diodes.com/assets/Datasheets/AP2127.pdf +$ENDCMP +# $CMP AP2127R-3.3 D 300mA low dropout linear regulator, shutdown pin, 2.5V-6V input voltage, 3.3V fixed positive output, SOT-89 package K linear regulator ldo fixed positive diff --git a/library/regul.lib b/library/regul.lib index f8c51d71..8a02ae9c 100644 --- a/library/regul.lib +++ b/library/regul.lib @@ -190,7 +190,7 @@ F0 "U" -150 125 50 H V C CNN F1 "APE8865N-12-HF-3" 0 125 50 H V L CNN F2 "TO_SOT_Packages_SMD:SOT-23" 0 225 50 H I C CIN F3 "" 0 0 50 H I C CNN -ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 AP2127N-1.0 AP2127N-1.2 AP2127N-1.5 AP2127N-1.8 AP2127N-2.5 AP2127N-2.8 AP2127N-3.0 AP2127N-3.3 +ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 AP2127N-1.0 AP2127N-1.2 AP2127N-1.5 AP2127N-1.8 AP2127N-2.5 AP2127N-2.8 AP2127N-3.0 AP2127N-3.3 AP2127N3-1.2 AP2127N3-1.5 $FPLIST SOT?23* $ENDFPLIST From 1b7baf12d0757419a4748b9f8e79ad12a2bd1f7c Mon Sep 17 00:00:00 2001 From: Patrick Pelletier Date: Wed, 20 Sep 2017 14:02:40 -0700 Subject: [PATCH 5/5] AP2127N3: Use TSOT-23 footprint for "SOT-23-3" variants. It was determined in the discussion that this was a better fit. --- library/regul.lib | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/library/regul.lib b/library/regul.lib index 8a02ae9c..488957dc 100644 --- a/library/regul.lib +++ b/library/regul.lib @@ -60,6 +60,25 @@ X OUT 5 300 100 100 L 50 50 1 1 w ENDDRAW ENDDEF # +# AP2127N3-1.2 +# +DEF AP2127N3-1.2 U 0 10 Y Y 1 F N +F0 "U" -150 125 50 H V C CNN +F1 "AP2127N3-1.2" 0 125 50 H V L CNN +F2 "TO_SOT_Packages_SMD:TSOT-23" 0 225 50 H I C CIN +F3 "" 0 0 50 H I C CNN +ALIAS AP2127N3-1.5 +$FPLIST + TSOT?23* +$ENDFPLIST +DRAW +S -200 75 200 -200 0 1 10 f +X GND 1 0 -300 100 U 50 50 1 1 W +X VO 2 300 0 100 L 50 50 1 1 w +X VI 3 -300 0 100 R 50 50 1 1 W +ENDDRAW +ENDDEF +# # AP2204K-1.5 # DEF AP2204K-1.5 U 0 10 Y Y 1 F N @@ -190,7 +209,7 @@ F0 "U" -150 125 50 H V C CNN F1 "APE8865N-12-HF-3" 0 125 50 H V L CNN F2 "TO_SOT_Packages_SMD:SOT-23" 0 225 50 H I C CIN F3 "" 0 0 50 H I C CNN -ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 AP2127N-1.0 AP2127N-1.2 AP2127N-1.5 AP2127N-1.8 AP2127N-2.5 AP2127N-2.8 AP2127N-3.0 AP2127N-3.3 AP2127N3-1.2 AP2127N3-1.5 +ALIAS APE8865N-15-HF-3 APE8865N-16-HF-3 APE8865N-17-HF-3 APE8865N-18-HF-3 APE8865N-19-HF-3 APE8865N-20-HF-3 APE8865N-21-HF-3 APE8865N-22-HF-3 APE8865N-23-HF-3 APE8865N-24-HF-3 APE8865N-25-HF-3 APE8865N-26-HF-3 APE8865N-27-HF-3 APE8865N-28-HF-3 APE8865N-29-HF-3 APE8865N-30-HF-3 APE8865N-31-HF-3 APE8865N-32-HF-3 APE8865N-33-HF-3 AP2127N-1.0 AP2127N-1.2 AP2127N-1.5 AP2127N-1.8 AP2127N-2.5 AP2127N-2.8 AP2127N-3.0 AP2127N-3.3 $FPLIST SOT?23* $ENDFPLIST