Forum - MCS Electronics

 

FAQFAQ SearchSearch RegisterRegister Log inLog in

With Powerdown the Timer1 don't run

 
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR
View previous topic :: View next topic  
Author Message
P_Santos

Bascom Member



Joined: 07 Jul 2011
Posts: 114

PostPosted: Wed Jun 05, 2019 5:40 pm    Post subject: With Powerdown the Timer1 don't run Reply with quote

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
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2335

blank.gif
PostPosted: Wed Jun 05, 2019 6:55 pm    Post subject: Re: With Powerdown the Timer1 don't run Reply with quote

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
View user's profile
P_Santos

Bascom Member



Joined: 07 Jul 2011
Posts: 114

PostPosted: Thu Jun 06, 2019 12:38 am    Post subject: Reply with quote

Hello MWS,

Have reprogramm it, now no Timer and works with Powerdown

Regards
P_Santos
Back to top
View user's profile
MWS

Bascom Member



Joined: 22 Aug 2009
Posts: 2335

blank.gif
PostPosted: Thu Jun 06, 2019 6:10 am    Post subject: Reply with quote

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
View user's profile
P_Santos

Bascom Member



Joined: 07 Jul 2011
Posts: 114

PostPosted: Thu Jun 06, 2019 10:54 am    Post subject: Reply with quote

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
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    www.mcselec.com Forum Index -> BASCOM-AVR All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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
You cannot attach files in this forum
You cannot download files in this forum