Hello!
I tried to reduce the power consumption on 16f1939 microcontroller.
First I tried to use sleep function and wake-up using interrupt on change on falling edge:
but the consumption is not decrease. I think that is not go to low speed clock.
Putting #use delay() statements in the middle of the program does not
generate code to change the internal oscillator frequency. You need to
use the setup_oscillator() function to do that.
The #use delay() statement only tells the CCS compiler what the current
oscillator frequency is.
Also, #use delay() only affects code that occurs after the #use delay()
statement in the file. (Going from top to bottom in the file).
If your program jumps back up to an earlier line in the file, then it delays
such as delay_us(), will run at the rate of the previous #use delay()
statement.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum