as per datasheet of stm8s001j3 it has been mentioned that impact of pin mode while using other pins, ex. PD1 impacts PD6,PD5... so to disable the swim pin using Out Mode Low Level, would also impact in case want to set late for PD5 as IN Mode FL NO I...