The attached test code does mostly sleep and wakes for a little when PortB.0 is left floating (it has Pull up enabled). Then goes back to sleep again.
During Sleep, I expected a current of 20 uA but got about 100. I noted that the 20uA is measured when the PortB.0 is left floating and 100 when grounded (possibly from the pull up device of the PIC®).
Since I need a positive edge interrupt, is it possible to lower the current during sleep?
Ioannis
Bookmarks