High baud rate using win32

Newbie Member
7Apr2006,15:20   #1
ljungsan's Avatar
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
Go4Expert Founder
7Apr2006,18:48   #2
shabbir's Avatar
Why not try with other values like CBR_128000 or CBR_115200 ...
Newbie Member
7Apr2006,19:02   #3
ljungsan's Avatar
The communication is with a microcontroller running on a crystal (8MHz) not good for baudrates. The only baudrate with 0% error is 250k.