{"id":377,"date":"2012-03-05T14:53:13","date_gmt":"2012-03-05T19:53:13","guid":{"rendered":"http:\/\/fll-freak.com\/blog\/?p=377"},"modified":"2025-04-21T00:54:36","modified_gmt":"2025-04-21T04:54:36","slug":"a-few-steps-forward","status":"publish","type":"post","link":"https:\/\/fll-freak.com\/blog\/?p=377","title":{"rendered":"A few steps forward"},"content":{"rendered":"<p>This weekend I was able to spend some time in the lab. I got the Arduino to ADE7763 interface cleaned up and working using the hardware SPI peripheral. This greatly increases the speed that I can access ADE registers.<\/p>\n<p>I then took a detour in learning to program a PIC micro. I will be using a PIC to drive each ADE7763. I had an old development system that I was able to use with MPLAB to start doing some simple things like blinking an LED. By the end of the weekend I had the prototype of my application done. But the prototype lead me to realize I had a speed issue. To switch the chip select on and off was taking 60usec. This is almost twice as long as it takes to transmit the 3 or 4 bytes of data. Either the PIC is very slow (clock was 20MHz), I am doing something wrong, or I need a beter way.<\/p>\n<p>Assuming I need a different solution to my chip select problem, I ordered some 16F627A chips that have a built in comparator. I think I can use the comparator to pass the chip select on to the ADE when selected at a very fast rate, and then force an inactive chip select when the sensor node is not selected. I also ordered a PicKit-3 programmer to make the programing of the chip seamless. The old programmer was a standalone device. The PicKit-3 should work in circuit.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This weekend I was able to spend some time in the lab. I got the Arduino to ADE7763 interface cleaned up and working using the hardware SPI peripheral. This greatly increases the speed that I can access ADE registers. I &hellip; <a href=\"https:\/\/fll-freak.com\/blog\/?p=377\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6,7],"tags":[],"class_list":["post-377","post","type-post","status-publish","format-standard","hentry","category-home-power-monitor","category-projects"],"_links":{"self":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/377","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=377"}],"version-history":[{"count":2,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/377\/revisions"}],"predecessor-version":[{"id":379,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/377\/revisions\/379"}],"wp:attachment":[{"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=377"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=377"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fll-freak.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=377"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}