Email:
sales@wcscnet.com


Competent Technical Support By Knowledgeable Engineers

View Cart

Checkout

RSS Feed
Home
Products
Services
Support
File Download
Testimonials
NewsLetters
Press Releases
Tutorials
WebLog (News)
WCSC Partners
Developer Tools

Register for WCSC email updates

Wires No More!
$159.99 a pair


Wireless Serial Adapter
(Bluetooth to RS232)

 

Credit Card Merchant Services

Setting the correct baud rate for the Quatech PCMCIA Cards.


COMM-DRV/NT by default assumes that the UARTs are being driven by a 1.8432 MHz crystal. As such when setting baud rates for the Quatech PCMCIA cards the effective baud rate will be incorrect. The Quatech PCMCIA card uses a 14.7456 MHz crystal. The following code will set the baud rate correctly.

 
int ComputeBaudDiv(int BaudRate)
{
return(14745600/(BaudRate*16));
}
 
//Correct baudrate indeces for PCMCIA card
WCSCVxDSetBaudDiv(BAUD9600,  ComputeBaudDiv(9600));
WCSCVxDSetBaudDiv(BAUD19200, ComputeBaudDiv(19200));
WCSCVxDSetBaudDiv(BAUD38400, ComputeBaudDiv(38400));
WCSCVxDSetBaudDiv(BAUD57600, ComputeBaudDiv(57600));
WCSCVxDSetBaudDiv(BAUD115200,ComputeBaudDiv(115200));
WCSCVxDSetBaudDiv(BAUDUSER00,ComputeBaudDiv(230400));
 
WCSCVxDSetPortCharacteristics(VxDPID,BAUD115200,PAR_NONE,LENGTH_8,STOPBIT_1,
PROT_RTSRTS);
 

 

Last Updated: 08/07/2008

Copyright © 2008 by Willies Computer Software Co