I have used STM8S003F3 in a integer temperature PID controller and garage door controlling (with integrated inverter).
Please discuss to understand your specification.
In which IDE you need the code to be developed. Please provide the schematic and the process requirement of the system.
I will provide the complete code in three days. and will provide testing assistance through team viewer.