cancel
Showing results for 
Search instead for 
Did you mean: 

Halt mode current consumption is huge. Suggest a correct way to reduce current

spark.1
Associate

we are putting the

Controller in halt mode after configuring a external interrupt to wakeup. We read in datasheet, halt mode current is 440na. But we are getting current in terms of ( 1ma - 2 ma). Sometimes getting 200ua. It keeps varying. We want halt mode current to be less than 70ua.

STEPs followed below calling halt()

*        Switch clock from HSI to LSI Low frequency

*        Clear external interrupt flags EXTI->SR1 = 0x00; EXTI->SR2 =

0x00;

*        Switch off all peripherals CLK->PCKENR1 = 0x00;

CLK->PCKENR2 = 0x00; CLK->PCKENR3 = 0x00;                    

*        Configuring FLASH register also . (PWR->CSR2 = 0x02;)

*        Halt().

Kindly advise.

1 REPLY 1
oeliks
Senior

Set pwm and check proper switch hsi to lsi.

Then dont turn off peripherial clock, set peripheria to that state that the board wont draw external cussent ​(example setting pin high will draw less current than setting pin low with led reverse biased towards pin).

Check amps.

​Debugging that kind of thing can be hard.