So I tried my pixaxe 08M2 in what I thought was a safe circuit, I tested the programming everything seemed to work fine, it controlled a solar light, the leds were driven through a pair of transistors from output c.0, it shut off after 4 hours and I checked the batteries, all seemed well. The next day the batteries were dead. I recharged and tested again, everything seemed to work fine. All switches worked all programming worked. So I checked the current. In standby the 08M2 was drawing 88ma, I tried a new one on the developer board with my software it drew only 0.6 ma, so I figured it must be the circuit so I pulled the processor out and put it in the developer board. It continued to draw 88ma, but still was operational. Any ideas on what could have happened ? The only output pin is current limited using a 100K resistor. The inputs are configured with pullups like
thx
Nz
Code:
let dirs = %00000001 ; Assign c.0 as output all others are inputs
; Specify pull ups
pullup %011110
thx
Nz