AnsweredAssumed Answered

STM8S UART Receive problem

Question asked by mostafanfs on Aug 2, 2016
I have a weird condition in which the STM8S003 does not read the entire packet I'm sending using a PC serial port. For example I have sent 256 bytes using a PC software but at the end I have only read 214 bytes instead of 256 bytes in the controller. (RX ISR happened 214 times instead of 256 times)
What could be possibly wrong? It's said a read to the Data Register is enough to clear the flags.
I'm going crazy here because it's not supposed to be this hard getting a simple RX interrupt to work.