Setting the baud rate in serial communication

C

Thread Starter

Chris Bray

I am trying to talk to a device through serial comm from a PC and I need to know how to set the baud rate for 38.462Kbps for a C++ program operating the serial port.
 
38.462 Kbps is not one of the standard COMM speeds known to operating systems like Windows. The closest one is 38.400 Kbps. And even if you programmed the baud rate registers directly in, say, a DOS environment where you could actually do such things, I don't think the standard UART chip can give you that resolution. However, 38.400 is so close to 38.462 that it is very likely that it would work OK at 38.400.

Robert Scott
Real-Time Specialties
Embedded Systems Consulting
 
Top