Re: How to Set port crystal frequency and clock pre-divisor by program? by Tim
Tim
Fri Jan 09 18:40:20 CST 2004
"sj" <xxllight@263.net> wrote:
>hi,everyone!
>Now,I want to set the properties of "Crystal Frequency" and "Clock
>Pre-Divisor" of com port by program in WIN98.
>Anyone tell me how to do?
You open the com port with CreateFile, then use SetCommState to set up the
baud rate with the rest of the parameters.
Don't even think about programming the UART by hand.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc