This problem was solved. Instead of calling function `_EntryPoint` again, I wrote a function in file `main.c` and called this function before the command `asm(stop);`
void stop3(){
setReg8(SOPT1, 0x20U);
setReg8(SOPT2, 0x00U);
setReg8(SPMSC1, 0x1CU);
setReg8(SPMSC2, 0x00U);
}
Then, In `main()` I called above function:
while(1){
if (T_Timer >= 10000){
stop3();
asm(stop);
}
}
With this, the normal consumption, which was 60 milliamps, was reduced to 40 milliamps. which, if we don't consider that the LEDs of the circuit are on, it will significantly reduce the consumption.