Hi All,
I have one PIC18F4520 application running at 40MHz (10MHz XTAL, 4x PLL). To get more IO's, I thought to run PIC with internal clock (8MHz, 4x PLL). Everything works perfectly, until I tested sleep mode.
Code:
</i></font><b>ASM
</b><font color="#008000">sleep
</font><b>ENDASM</b>
PIC goes to sleep, but current consumptions is much higher (~8x) than with 10MHz XTAL.
40MHz: 0.85mA (XTAL)
32MHz: 6.75mA (Int CLK)
Differences between codes:
Code:
<code><font color="#000000"><b>DEFINE </b>OSC 40
</code>
Code:
<code><font color="#000000"><b>DEFINE </b>OSC 32
OSCCON=%11111100
OSCTUNE.6=1
</code>
Differences in INC-file
Code:
__CONFIG _CONFIG1H, _OSC_HSPLL_1H
Code:
__CONFIG _CONFIG1H, _OSC_INTIO67_1H
Any ideas how to recude power consumption?
I tried to search forum and web, but no hits. Also I have read data sheet, but I was not able to find any help.
BR,
-Gusse-
Bookmarks