AnsweredAssumed Answered

stm8 uart1

Question asked by debruyne.marc on Oct 29, 2012
Latest reply on Oct 30, 2012 by debruyne.marc

please can someone one help me with a uart problem on the stm8s
i use a crystal of 14.7456 Mhz , also i do the change of the clock system, see the atached program.
the uart1 is initialised as, pa4 and pa5,
also i use a second computer with the DOCKLIGHT program to analyze the communication.
the uart is set for 9600 baud, 1 stop , 7 data even parity
also the docklight program is set for that .
if i send one character from the stm8s to the other computer i see that character correct.
even with different characters
no if i send a character from the docklight program on the other computeri also see that character correct in the stm8s data ram
but if i will send a string of characters ,for example 
    81    82    83    84    85    from the docklight program,i receive  in the stm8s data ram
    81    82    03    84    05
i have tryed with other characters, and it seems then the 7 bit is always set to 1, some characters are correct

please , is there any idea what i do wrong in the program
see atached assembly program file
many thanks

marc debruyne