Hello,
Could you provide more details about your project and IDE that is used, please?
It seems that you are not using Processor Expert and embedded components that provides these calculations and initialization code for the PIT device.
Best Regards,
Marek Neuzil