High baud rate using win32

ljungsan's Avatar, Join Date: Apr 2006
Newbie Member
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
0
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Why not try with other values like CBR_128000 or CBR_115200 ...
0
ljungsan's Avatar, Join Date: Apr 2006
Newbie Member
The communication is with a microcontroller running on a crystal (8MHz) not good for baudrates. The only baudrate with 0% error is 250k.