STMICROELECTRONICS: AN3259 - Software coding for RS232 communications with a terminal using the STM8S-DISCOVERY