I'm trying to read an ADC(channel 7) which is the internal reference voltage channel for stm8s903f3, to print the adc value read on uart terminal. But for some reason its not continuously printing the adc value that is being updated.
It updates if I manually reset the board. I'm setting my baudrate as 11400, but it works only if I select the baudrate as 115200 on hyperterminal. Here is a snippet of what Im working on. (EDIT) It even works when I step through the code, not when I ...