CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Hardware uart parity
Goto page Previous  1, 2, 3
 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Ttelmah



Joined: 11 Mar 2010
Posts: 19539

View user's profile Send private message

PostPosted: Sun Mar 01, 2015 4:42 am     Reply with quote

I must admit, I was surprised your version wasn't doing parity, since it was a very long time ago, when this didn't work.
I must admit when I last used it, it did seem to be right, testing with a serial monitor.

Have just tried the code, on three compiler versions, and the parity is correct. 4.141, 5.020, 5.030.
If you send 0, which with odd parity should result in bit9, being set, it does set this bit. Send 1, and it clears bit9.
The assembler is identical to what you post.....

Stick a serial monitor on the line and see what is happening.
fobi



Joined: 26 Feb 2015
Posts: 15
Location: BG

View user's profile Send private message

PostPosted: Sun Mar 01, 2015 7:48 am     Reply with quote

Absolutely my fault. I am sorry to all.

http://postimg.org/image/nui3kdkft/

I was too lazy to check with hardware.

http://postimg.org/image/jl7q3bxnx/

In that line of thoughts, i suggest all to read this

http://www.ccsinfo.com/forum/viewtopic.php?t=47549

This could save you time and will make our friends less irritated.
CCS is good compiler.

fobi
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group