View previous topic :: View next topic |
Author |
Message |
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Wed Jun 05, 2019 5:40 pm Post subject: With Powerdown the Timer1 don't run |
|
|
Hello,
Atmega88PA and Bascom 2.0.8.1
If i use Config Powermode= idle, my programm works fine, it wake up with INT0, and the Timer1 works (consuming 1mA)
If i use Config Powermode= Powerdown, my programm wake up with INT0, but the Timer1 NOT run (consuming 0.04mA)
I need save much power as possible, how use sucessfull the Powerdown?
Thank for help
Best regards
P_Santos
(BASCOM-AVR version : 2.0.8.1 , Latest : 2.0.8.1 ) |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Wed Jun 05, 2019 6:55 pm Post subject: Re: With Powerdown the Timer1 don't run |
|
|
P_Santos wrote: | my programm wake up with INT0, but the Timer1 NOT run (consuming 0.04mA) |
Surprisingly the data sheet shares the same opinion, in particular that timers won't run while in Powerdown.
Quote: | how use sucessfull the Powerdown? |
Never - in case the timer needs to run.
Timers and external Interrupts will run however in Powersave, additionally there's a register called PRR, which can turn off integrated units which are not required within Powersave state. |
|
Back to top |
|
|
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Thu Jun 06, 2019 12:38 am Post subject: |
|
|
Hello MWS,
Have reprogramm it, now no Timer and works with Powerdown
Regards
P_Santos |
|
Back to top |
|
|
MWS
Joined: 22 Aug 2009 Posts: 2262
|
Posted: Thu Jun 06, 2019 6:10 am Post subject: |
|
|
P_Santos wrote: | Have reprogramm it, now no Timer and works with Powerdown |
Your starting post did not sound as if this would be an option. |
|
Back to top |
|
|
P_Santos
Joined: 07 Jul 2011 Posts: 114
|
Posted: Thu Jun 06, 2019 10:54 am Post subject: |
|
|
Hello MWS,
I like always for more timing precision, work with Timer, but have write the programm and on the tests
i try the diverse Powermode and only the Idle works correct with Timer, now, is this case, the precision
is no very important and it works
Thanks for your help
Regards
P_Santos |
|
Back to top |
|
|
|