Hello Seppo,
You do not say by what means you are attempting to exit stop3 mode. Your choices are an external reset, IRQ pin (low state only), or RTI. The RTI will need to be driven by the 1kHz source.
Perhaps you should post your present (non-working) code.
Regards,
Mac