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 with bit stop 1.5

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



Joined: 07 Nov 2008
Posts: 60

View user's profile Send private message

Hardware UART with bit stop 1.5
PostPosted: Mon Nov 24, 2008 12:34 pm     Reply with quote

Hi Smile , as in subject I need to use UART serial module of PIC24FJ16GA002 with bit stop 1.5, but noted that is possible to set 1 (as default) or 2.
Since I need to connect a camera using RS232 with stop bit 1.5, I ask if it is possible. Rolling Eyes
Thank in advance.
Regards
FvM



Joined: 27 Aug 2008
Posts: 2337
Location: Germany

View user's profile Send private message

PostPosted: Mon Nov 24, 2008 1:36 pm     Reply with quote

It sounds somewhat unlikely, but may be, 1.5 stop bits is actually used. Microchip processors don't directly provide this setting, you have to use workarounds. On reception, you need to set 1 stop bit not to cause errors. You may either switch to 2 stop bits on send (assuming a half duplex protocol) or send individual characters with a delay.
Ttelmah
Guest







PostPosted: Mon Nov 24, 2008 2:56 pm     Reply with quote

Yes. A UART set to 1 stop bit, will receive characters with 1.5 stop bits fine, while one set to 2 stop bits will send data that a UART set to use 1.5 stop bits will use fine. Remember that stop bit values are _minima_, so a receiver must always accept data with more stop bits (just a gap between the characters).

Best Wishes
nicotec



Joined: 07 Nov 2008
Posts: 60

View user's profile Send private message

Solution
PostPosted: Tue Nov 25, 2008 1:11 am     Reply with quote

Ok, thank You, so to send data to equipment with specification stop bit =1.5 I can use 2 stop bit, since I need only to send command to a camera.
I'll try and post here my result.
Bye
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