Hi Avdit,
From your description it seems that you need a periodic interrupt of 1 sec using RTC. For this you can use PE ->Init_RTC module, set the clock source as 1-KHz Low Power Oscillator, clock gate -> Enabled, Prescaler -> 100, Modulo Value -> 9. In the interrupts section, you must enable the interrupt and give the name of the ISR that you may define in your application.
Hope this answers your question.
Regards,
Ankur
P.S. - If you see the answer helpful/correct, please mark appropriately.