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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top