It's obviously not in sleep mode if it's blank, so it's running at full speed - which with a 28MHz crystal will be quite current heavy if it's running from that?. Although I'm not sure what the default fuse settings are?.I just notice that when the chip is Blank erased even 25mA current is consumed !!!
I do a LOT of low current PIC devices, and have never been able to approach the claimed consumption - it's low, but nowhere near as low as the datasheets claim.I have used several Microchip controllers, and when properly set up the current draw in sleep mode is lower than what can be measured with even a good handheld DMM.
One requires a bench top DMM with sub micro amp resolution to measure it.
It applies to many CMOS type devices.why power consumption is high when pins are set as input?
I have read this in an application note of Microchip, If I set all unused pins to output is it necessary to set them to 0 or 1 or just config them to output?With an MCU, setting an unused pin to output means the input on the same pin is either high or low, so gets around the problem without extra components.
Just configure them as outputs (TRIS = 0) - it makes little difference if they are high or low - in fact there was a heated argument on the PICLIST way back last century about which was best. Essentially there's little difference, and different PIC's could be different - hence no real answer to the argument.I have read this in an application note of Microchip, If I set all unused pins to output is it necessary to set them to 0 or 1 or just config them to output?