{"id":216,"date":"2026-01-20T05:16:36","date_gmt":"2026-01-19T21:16:36","guid":{"rendered":"https:\/\/gccircuit.com\/wordpress\/?p=216"},"modified":"2026-01-20T05:16:37","modified_gmt":"2026-01-19T21:16:37","slug":"sallen-key-high-pass-filter-%e9%ab%98%e9%80%9a%e6%bf%be%e6%b3%a2%e5%99%a8%e8%a8%88%e7%ae%97%e5%99%a8","status":"publish","type":"post","link":"https:\/\/gccircuit.com\/wordpress\/2026\/01\/20\/sallen-key-high-pass-filter-%e9%ab%98%e9%80%9a%e6%bf%be%e6%b3%a2%e5%99%a8%e8%a8%88%e7%ae%97%e5%99%a8\/","title":{"rendered":"Sallen-Key High Pass Filter \u9ad8\u901a\u6ffe\u6ce2\u5668\u8a08\u7b97\u5668"},"content":{"rendered":"\n<div style=\"background-color: #1e293b; color: #f8fafc; padding: 25px; border-radius: 15px; font-family: sans-serif; max-width: 800px; margin: auto; border: 1px solid #38bdf8; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.3); line-height: 1.5;\">\n    \n    <h2 style=\"color: #38bdf8; text-align: center; margin-top: 0; letter-spacing: 1px;\">Sallen-Key Butterworth \u9ad8\u901a\u6ffe\u6ce2\u5668\u8a08\u7b97\u5668<\/h2>\n    \n    <div style=\"background: white; padding: 15px; border-radius: 10px; margin-bottom: 20px; text-align: center;\">\n        <img decoding=\"async\" src=\"http:\/\/gccircuit.com\/wordpress\/wp-content\/uploads\/2026\/01\/image-74.png\" alt=\"Sallen-Key HPF \u96fb\u8def\u5716\" style=\"max-width: 100%; height: auto; display: block; margin: 0 auto;\">\n    <\/div>\n\n    <div style=\"font-size: 14px; background: #0f172a; padding: 12px; border-radius: 8px; margin-bottom: 20px; border-left: 4px solid #f472b6;\">\n        <b>\u4f7f\u7528\u8aaa\u660e\uff1a<\/b><br>\n        1. <b>\u7b97\u983b\u7387<\/b>\uff1a\u586b\u5165 C1, C2, R1, R2\uff0c\u7559\u7a7a\u300c\u622a\u6b62\u983b\u7387\u300d\u3002<br>\n        2. <b>\u7b97\u96fb\u963b<\/b>\uff1a\u586b\u5165 <b>\u622a\u6b62\u983b\u7387<\/b> \u53ca C1, C2\uff0c\u7559\u7a7a\u300c\u96fb\u963b\u300d\u6b04\u4f4d\u3002<br>\n        <span style=\"color: #fbbf24;\">\u203b \u9ad8\u901a\u6ffe\u6ce2\u5668\u6703\u8b93\u9ad8\u65bc\u622a\u6b62\u983b\u7387\u7684\u8a0a\u865f\u901a\u904e\uff0c\u4e26\u8870\u6e1b\u4f4e\u983b\u8a0a\u865f\u3002<\/span>\n    <\/div>\n\n    <div style=\"display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px;\">\n        <div style=\"grid-column: span 2;\">\n            <label style=\"display: block; font-size: 12px; margin-bottom: 5px; color: #fbbf24; font-weight: bold;\">\u622a\u6b62\u983b\u7387 fc (Hz)<\/label>\n            <input type=\"number\" id=\"hp_fc\" placeholder=\"\u6b32\u8a08\u7b97\u8acb\u7559\u7a7a\" style=\"width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #334155; background: #0f172a; color: white;\">\n        <\/div>\n        <div>\n            <label style=\"display: block; font-size: 12px; margin-bottom: 5px; color: #38bdf8;\">C1 \u96fb\u5bb9 (nF)<\/label>\n            <input type=\"number\" id=\"hp_c1\" value=\"10\" style=\"width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #334155; background: #0f172a; color: white;\">\n        <\/div>\n        <div>\n            <label style=\"display: block; font-size: 12px; margin-bottom: 5px; color: #38bdf8;\">C2 \u96fb\u5bb9 (nF)<\/label>\n            <input type=\"number\" id=\"hp_c2\" value=\"10\" style=\"width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #334155; background: #0f172a; color: white;\">\n        <\/div>\n        <div>\n            <label style=\"display: block; font-size: 12px; margin-bottom: 5px; color: #38bdf8;\">R1 \u96fb\u963b (K\u03a9)<\/label>\n            <input type=\"number\" id=\"hp_r1\" placeholder=\"\u6b32\u8a08\u7b97\u8acb\u7559\u7a7a\" style=\"width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #334155; background: #0f172a; color: white;\">\n        <\/div>\n        <div>\n            <label style=\"display: block; font-size: 12px; margin-bottom: 5px; color: #38bdf8;\">R2 \u96fb\u963b (K\u03a9)<\/label>\n            <input type=\"number\" id=\"hp_r2\" placeholder=\"\u6b32\u8a08\u7b97\u8acb\u7559\u7a7a\" style=\"width: 100%; padding: 10px; border-radius: 6px; border: 1px solid #334155; background: #0f172a; color: white;\">\n        <\/div>\n    <\/div>\n\n    <div style=\"display: flex; gap: 10px; margin-bottom: 20px;\">\n        <button onclick=\"calculateHPF()\" style=\"flex: 2; padding: 15px; border-radius: 8px; border: none; background: #f472b6; color: white; font-weight: bold; cursor: pointer; font-size: 16px;\">\u57f7\u884c\u8a08\u7b97<\/button>\n        <button onclick=\"clearHPF()\" style=\"flex: 1; padding: 15px; border-radius: 8px; border: 1px solid #94a3b8; background: transparent; color: #94a3b8; font-weight: bold; cursor: pointer; font-size: 16px;\">\u6e05\u9664<\/button>\n    <\/div>\n\n    <div id=\"hp_result_box\" style=\"display: none; background: #334155; padding: 15px; border-radius: 10px; border-left: 5px solid #f472b6;\">\n        <div style=\"font-size: 13px; color: #94a3b8; margin-bottom: 5px;\">\u8a08\u7b97\u7d50\u679c\uff1a<\/div>\n        <div id=\"hp_msg\" style=\"color: #f472b6; font-weight: bold; font-size: 18px;\"><\/div>\n    <\/div>\n\n    <script>\n        function calculateHPF() {\n            var fc = parseFloat(document.getElementById('hp_fc').value);\n            var c1 = parseFloat(document.getElementById('hp_c1').value) \/ 1e9;\n            var c2 = parseFloat(document.getElementById('hp_c2').value) \/ 1e9;\n            var r1 = parseFloat(document.getElementById('hp_r1').value) * 1000;\n            var r2 = parseFloat(document.getElementById('hp_r2').value) * 1000;\n            \n            var resBox = document.getElementById('hp_result_box');\n            var resMsg = document.getElementById('hp_msg');\n            resBox.style.display = \"block\";\n\n            \/\/ \u6a21\u5f0f A: \u7b97\u983b\u7387 (C, R \u90fd\u6709\u503c)\n            if (!isNaN(c1) && !isNaN(c2) && !isNaN(r1) && !isNaN(r2)) {\n                var result_fc = 1 \/ (2 * Math.PI * Math.sqrt(r1 * r2 * c1 * c2));\n                resMsg.innerText = \"\u622a\u6b62\u983b\u7387 fc = \" + (result_fc >= 1000 ? (result_fc\/1000).toFixed(3) + \" kHz\" : result_fc.toFixed(2) + \" Hz\");\n                document.getElementById('hp_fc').value = result_fc.toFixed(2);\n            } \n            \/\/ \u6a21\u5f0f B: \u7b97\u96fb\u963b (fc, C \u90fd\u6709\u503c)\n            else if (!isNaN(fc) && !isNaN(c1) && !isNaN(c2)) {\n                var c_avg = (c1 + c2) \/ 2;\n                \/\/ Butterworth HPF: R1 = 0.707 \/ (2*PI*fc*C), R2 = 1.414 \/ (2*PI*fc*C)\n                var calc_r1 = 0.7071 \/ (2 * Math.PI * fc * c_avg);\n                var calc_r2 = 1.4142 \/ (2 * Math.PI * fc * c_avg);\n                \n                document.getElementById('hp_r1').value = (calc_r1 \/ 1000).toFixed(3);\n                document.getElementById('hp_r2').value = (calc_r2 \/ 1000).toFixed(3);\n                resMsg.innerText = \"\u5df2\u8a08\u7b97\u51fa R1 \u8207 R2 \u6578\u503c (K\u03a9)\";\n            } else {\n                resMsg.style.color = \"#ef4444\";\n                resMsg.innerText = \"\u8acb\u586b\u5beb\u6b63\u78ba\u7684\u53c3\u6578\u7d44\u5408\";\n            }\n        }\n\n        function clearHPF() {\n            document.getElementById('hp_fc').value = \"\";\n            document.getElementById('hp_c1').value = \"10\";\n            document.getElementById('hp_c2').value = \"10\";\n            document.getElementById('hp_r1').value = \"\";\n            document.getElementById('hp_r2').value = \"\";\n            document.getElementById('hp_result_box').style.display = \"none\";\n        }\n    <\/script>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Sallen-Key Butterworth \u9ad8\u901a\u6ffe\u6ce2\u5668\u8a08\u7b97\u5668 \u4f7f\u7528\u8aaa\u660e\uff1a 1. \u7b97\u983b\u7387\uff1a\u586b\u5165 C1, C2, &#8230; <a title=\"Sallen-Key High Pass Filter \u9ad8\u901a\u6ffe\u6ce2\u5668\u8a08\u7b97\u5668\" class=\"read-more\" href=\"https:\/\/gccircuit.com\/wordpress\/2026\/01\/20\/sallen-key-high-pass-filter-%e9%ab%98%e9%80%9a%e6%bf%be%e6%b3%a2%e5%99%a8%e8%a8%88%e7%ae%97%e5%99%a8\/\" aria-label=\"Read more about Sallen-Key High Pass Filter \u9ad8\u901a\u6ffe\u6ce2\u5668\u8a08\u7b97\u5668\">\u95b1\u8b80\u5168\u6587<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-216","post","type-post","status-publish","format-standard","hentry","category-diy"],"_links":{"self":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts\/216","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/comments?post=216"}],"version-history":[{"count":1,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts\/216\/revisions"}],"predecessor-version":[{"id":218,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/posts\/216\/revisions\/218"}],"wp:attachment":[{"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/media?parent=216"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/categories?post=216"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gccircuit.com\/wordpress\/wp-json\/wp\/v2\/tags?post=216"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}