Forgive my ignorance, it should be easy to wake up in sleep mode, however, I can't achieve it without affecting the function that the program performs, I've been trying for days, (I think because I'm an electronics and not a programmer, what I've learned about programming I owe it to Flowcode since I started in version 3 I need to read the subject)

I think everything is in the PIC configuration (Project Option), for example in the example you send me that configuration does not look like the PIC16F1847 or 16F1840
I see the data sheet and it mentions that it can be woken up with Timer1 which continues working even if sleep is selected, there I made the clock, I added a B7 led to turn on and off for 1 second, but the program starts and nothing happens, I added the command before sleep: WDTCONbits. WDTPS = 0b01010; to put it to sleep for 1 second.
The program starts correctly, then goes to sleep, then goes to sleep, the power consumption goes down and it does nothing. Maybe from what you're telling me, I have the time set for longer than I think and that's why it doesn't do anything.
Could you please guide me on how to configure the time it remains in sleep mode

Regards and Thanks
Enrique