Thanks for the reply.
For my project i'm using the ATMega88PA.
here is the actual code I use that consume the 0,485mA.
[code:1:90911cf3d9]
'-------------------------------------------------------------------------------------------------------------------
' CONFIGURATION ADC AVEC REF INTERNE A 1,1V
'--------------------------------------------------------------------------------------------------------------------
Config Adc = Single , Prescaler = Auto , Reference = Internal_1.1
'verification de la tension sur ADC7
Start Adc ' routine ADC pour mesure de la tension de batterie
Waitms 15
Batt = Getadc(7)
Stop Adc
If Batt => 570 Then
Mosfet = 1 ' si batterie > 540 alors télécommande branchée à l'USB donc Mettre le Mosfet en fonction
Else
Mosfet = 0
End If
Disable Adc
[/code:1:90911cf3d9]
But in the begining if I don't use ADC then the power off the remote is "just" 0,100mA.
But you can see that at the end of the ADC routine I use "disable adc" then why it use so much power ? how can I do to really disable this power ?
Have you a idea ?
Thanks
Regards
Vincent
↧