Click here to Skip to main content
15,886,751 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Respected Sir / Madam;

I want to divide my Baud rate 2400 ( 2400 / 8 ) and sent each bit to 300 Baud.

2400/8 = 300 . This 300 Baud send to 1 bit , upto 8 bit.

So kindly send me code for my work ... pls pls...

What I have tried:

I want to divide my Baud rate 2400 ( 2400 / 8 ) and sent each bit to 300 Baud.

2400/8 = 300 . This 300 Baud send to 1 bit , upto 8 bit.
Posted
Updated 13-Aug-16 21:42pm

You can't - serial ports don't work like that because serial data doesn't work like that.
When you send a character, it goes out as a "formatted package" which consists of a Start Bit (always a zero), 5, 7 or 8 data bits, an optional Parity Bit, then 1, 1 1/2, or 2 Stop Bits (always a one). If your port is configured to 2400 baud, then you cannot transmit data which causes it to "look like" 300 baud data because you can't "force" it to lengthen the start and stop bits by a factor of eight.

You want to send 300 baud data? Set your port to 300 baud.
 
Share this answer
 
Comments
Afzaal Ahmad Zeeshan 14-Aug-16 3:42am    
Don't you think it is a bit over confusing. :D
OriginalGriff 14-Aug-16 4:10am    
Nature of the beast! :laugh:
It's not really fair to say "You can't" and not explain why when it's a real limitation he can't work round.
Afzaal Ahmad Zeeshan 14-Aug-16 4:28am    
It was my way of saying, I didn't get the point of it but you got 40 of them. ;P
Quote:
So kindly send me code for my work ... pls pls...


we also don't do code to order - if you want that, go to RentACoder
 
Share this answer
 
Quote:
I want to divide my Baud rate 2400 ( 2400 / 8 ) and sent each bit to 300 Baud.
2400/8 = 300 . This 300 Baud send to 1 bit , upto 8 bit.
So kindly send me code for my work ... pls pls...

Your question is no sense. It appear than you don't understand the basics of serial communication.
What you ask just do not exist. There is nothing like divide some bauds to get some bauds.
You should have a good lecture on the subject.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900