Hi Arch,
You're a genius! I haven't connected the 6 way switch yet, but i HAD connected one of the pins (rb1) to 0v to select a specific time. If I wait 'til the time is selected and the led lights (drawing about 9mA) when the LED times out the PIC goes to sleep and current drops to about 200 odd microamps. But if I disconnected the RB0 to )0v link the consumption drops to only about 30 microamps ... brilliant.. Just have to figure out how to get round that in software now. Probably disabling the weak pull up on portb will do it. Well I'm off for a scotch now, if you guys were a tad nearer I'd pour you one too !
Cheers
David
Bookmarks