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 support@ccsinfo.com

MODBUS start, stop bits with USART

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Guest








MODBUS start, stop bits with USART
PostPosted: Mon May 22, 2006 4:38 pm     Reply with quote

I see from the forum that modbus is nothing new on the PIC (it is for me, I'm a late-bloomer). I've read a few comments about parity and how it must be handled in software, but nothing regarding start/stop bits.

The modbus spec says every RTU byte transferred is 11 bits: 1 start + 8 data + 1 parity (or extra stop) + 1 stop. It seems like the example code I've seen here doesn't account for the start/stop bits. How and where are they handled?

Thanks!
-peter
Guest








PostPosted: Mon May 22, 2006 4:54 pm     Reply with quote

They are handled in hardware. The USART takes care of them.
pheinrich



Joined: 22 May 2006
Posts: 1
Location: Seattle, WA

View user's profile Send private message

PostPosted: Fri May 26, 2006 4:11 pm     Reply with quote

Thanks, that's what I wanted to hear!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
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