Specifications

Appendix D - CTKERN Function Reference CARROLL TOUCH
D-26 Touch System Programmer’s Guide
SetCommunicationParameters (21)
Description
This function sets the communication parameters that the driver uses
with the touch system. The application program should set register BH
(driver type) to the appropriate value for the driver loaded.
Call with
AL = 21 (function number).
BH = Driver type.
0 = SBC driver.
1 = HBC driver.
2 = RS-232 driver.
If BH = 0 (SBC) or 1 (HBC), the additional calls are:
BL = Interrupt number. Valid values are 2, 3, 4, 5 and 7.
CX = I/O address. Valid values are from 200H through 3F0H
in 10H increments (200H, 210H, 220H, ..., 3F0H).
If BH = 2 (RS-232), the additional calls are:
CH = Parity.
0 = None.
1 = Odd.
2 = Even.
CL = Baud rate.
0 = 300.
1 = 600.
2 = 1200.
3 = 2400.
4 = 4800.
5 = 9600.
Returns
CX = Status.
00 = Communication parameters accepted.
01 = Invalid driver type.
02 = Invalid interrupt number.
04 = Invalid I/O address.
08 = Invalid parity.
10H= Invalid baud rate.