{"id":7740,"date":"2013-08-09T15:19:08","date_gmt":"2013-08-09T19:19:08","guid":{"rendered":"http:\/\/embedded-lab.com\/blog\/?p=7740"},"modified":"2013-08-09T15:19:08","modified_gmt":"2013-08-09T19:19:08","slug":"interfacing-ac-power-lines-with-pic-microcontrollers","status":"publish","type":"post","link":"https:\/\/embedded-lab.com\/blog\/interfacing-ac-power-lines-with-pic-microcontrollers\/","title":{"rendered":"Interfacing AC power lines with PIC microcontrollers"},"content":{"rendered":"<p>Applications like automatic power factor correction, power measurement, and power line monitor require interfacing the high voltage AC power lines to microcontrollers. This <strong><a href=\"http:\/\/ww1.microchip.com\/downloads\/en\/AppNotes\/00521c.pdf\" target=\"_blank\">application note from Microchip<\/a><\/strong> describes a simple method for measuring parameters from the AC power line by using only one external resistor, and is more reliable than using a bulky and expensive transformer. This method takes advantage of the input static protection circuitry that exists on I\/O pins of a CMOS PIC16C5X. These protection circuits are designed to short the inputs to the power supplies when a large overvoltage is applied, thus protecting the chip from static electricity spikes.<\/p>\n<div id=\"attachment_7741\" style=\"width: 560px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/08\/PIC_IO.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-7741\" class=\"size-medium wp-image-7741\" title=\"PIC_IO\" src=\"http:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/08\/PIC_IO-550x456.png\" alt=\"\" width=\"550\" height=\"456\" srcset=\"https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/08\/PIC_IO-550x456.png 550w, https:\/\/embedded-lab.com\/blog\/wp-content\/uploads\/2013\/08\/PIC_IO.png 609w\" sizes=\"auto, (max-width: 550px) 100vw, 550px\" \/><\/a><p id=\"caption-attachment-7741\" class=\"wp-caption-text\">Input static protection circuitry on PIC I\/O pin<\/p><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Applications like automatic power factor correction, power measurement, and power line monitor require interfacing the high voltage AC power lines to microcontrollers. This application note from Microchip describes a simple method for measuring parameters from the AC power line by using only one external resistor, and is more reliable than using a bulky and expensive transformer. This method takes advantage of the input static protection circuitry that exists on I\/O pins of a CMOS PIC16C5X. These protection circuits are designed to short the inputs to the power supplies when a large overvoltage is applied, thus protecting the chip from static<\/p>\n","protected":false},"author":1,"featured_media":7741,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[183],"tags":[615,414,616],"class_list":["post-7740","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-and-tricks","tag-esd-protection","tag-pic-mcu","tag-power-line-measurements"],"_links":{"self":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/7740","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/comments?post=7740"}],"version-history":[{"count":2,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/7740\/revisions"}],"predecessor-version":[{"id":7743,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/posts\/7740\/revisions\/7743"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media\/7741"}],"wp:attachment":[{"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/media?parent=7740"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/categories?post=7740"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/embedded-lab.com\/blog\/wp-json\/wp\/v2\/tags?post=7740"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}