[STM8S003F3P6] GPIO(PB5) ouputs 5V when set HIGH using 3.3v power supply[RESOLVED]
I am trying to run simple program to output HIGH on IO pin of microcontroller STM8S003F3P6.
I am using PB5 pin to output High. I am using 3.3v power supply and expect GPIO to output 3.3v when I set it HIGH but surprisingly I am getting 5V instead, below is the circuit diagram
Can someone help how to get 3.3v instead of 5V on GPIO output for above processor, is there anything wrong with above circuit?
