Go4Expert

Go4Expert (http://www.go4expert.com/)
-   Win32 (http://www.go4expert.com/forums/win32/)
-   -   High baud rate using win32 (http://www.go4expert.com/forums/baud-rate-using-win32-t697/)

ljungsan 7Apr2006 15:20

High baud rate using win32
 
Hi,

I'm trying to set up a serial connection at 250000 baud rate (optimal baud rate for other side) with win32. SetCommState returns error 87 (bad parameter). The doc says "Baud rate at which the communications device operates. This member can be an actual baud rate value, or one of the following indexes." Highest index 256000. Is there limitations with HW? Anyone got tips/hints?

Regards, Ljung

shabbir 7Apr2006 18:48

Re: High baud rate using win32
 
Why not try with other values like CBR_128000 or CBR_115200 ...

ljungsan 7Apr2006 19:02

Re: High baud rate using win32
 
The communication is with a microcontroller running on a crystal (8MHz) not good for baudrates. The only baudrate with 0% error is 250k.


All times are GMT +5.5. The time now is 04:40.