Use the following code to set a custom baud rate. The example assumes you want to set the baud to 45 bps. Note you can use SetBaud() for setting the baud only or SetPortCharacteristics() to change all the communication parameters at once.
Status = SetCustomBaud(Port,BAUDUSER02,45);
SetBaud(Port,BAUDUSER02);
Or
Status = SetCustomBaud(Port,BAUDUSER02,45);
SetPortCharacteristics(Port,BAUDUSER02,Parity,Length,Stopbit,Protocol);
|