How to Set port crystal frequency and clock pre-divisor by program?

  • Thread starter Thread starter sj
  • Start date Start date
S

sj

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?
Thanks a lot!
 
sj said:
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.
 
Back
Top