Skip to main content
konay61
Associate III
November 29, 2011
Question

USART - Data size difference problem between Reception and Transmission

  • November 29, 2011
  • 2 replies
  • 1653 views
Posted on November 29, 2011 at 07:59

Hi,

I have established a connection between dev-board and pc by rs232 and the settings are programmed like data size 8 bit long, 1 stop bit, Parity - odd, 115200 baudrate..  And when I talk to the board (receiving) everything is ok but the problem is occurring while transmitting data. Pc receives the data 7 bit long. if I change the data size on my hyper terminal to 7 bit data size after the receiving data is done, I see the text what I want to see on my hyper terminal but if not, rubbish text is coming on..  

I would appreciate if anyone can help me on this issue.. 

Regards,

#usart
This topic has been closed for replies.

2 replies

konay61
konay61Author
Associate III
December 13, 2011
Posted on December 13, 2011 at 16:29

I have fixed it by ANDing the received data by ''0x7F'' to avoid the useless part. So that, both sizes of data were balanced. 

hernandez_nava_itt
Visitor II
December 14, 2011
Posted on December 14, 2011 at 20:09

hi

problem reception , i use stm32l discovery