In my ATMEGA32 developer board, I am working with servo motor and I guess that causes the problem. I have two working subroutines in assembly, which make servo rotate opposite directions. They are definitely fine when they are called alone but when I call them with a 1 sec delay between I got this warning
"Brown-out reset occured during last operation, please check power supply voltage."
I learnt from my research on the internet, if I try to rotate servo too quickly, this can happen but it can go back and forth rapidly in an another code, is the reason that I wrote them in seperate subroutines? But I need to do that way.