Parity issue in serial port programming example

 

Edsim51 Example 8 = Transmitting Data on the 8051 Serial Port (with Even Parity)

Symbol

ASCII code

Encoded symbol

transmitted with

even parity

Decoded symbol

after receiving with

even parity

Decoded symbol

after receiving with

no parity

Decoded symbol

after receiving with

odd parity

‘a’

01100001

11100001 = ‘á

01100001 = ‘a’

11100001 = ‘á

Error detected

‘b’

01100010

11100010 = ‘â

01100010 = ’b’

11100010 = ‘â

Error detected

‘c’

01100011

01100011 = ‘c’

11100011 = ‘c’

01100011 = ‘c’

Error detected

 

 

ICP-W06-01 = Transmitting Data on the 8051 Serial Port (with Odd Parity)

 

Symbol

ASCII code

Encoded symbol

transmitted with odd parity

Decoded symbol

after receiving with

odd parity

Decoded symbol

after receiving with

no parity

Decoded symbol

after receiving with

even parity

‘a’

01100001

01100001 = ‘a’

01100001 = ‘a’

01100001 = ‘a’

Error detected

‘b’

01100010

01100010 = ’b’

01100010 = ’b’

01100010 = ’b’

Error detected

‘c’

01100011

11100011 = ‘ã

11100011 = ‘c’

11100011 = ‘ã

Error detected