Unitech MR350MKII manual Disable RS-232 port, Set Communication parameters, Bit #

Models: MR350MKII

1 86
Download 86 pages 30.91 Kb
Page 28
Image 28

02

Output data

 

 

Entry Parameters:

AH = 2

 

 

AL = Data character

 

Returned Values:

None

void TC_232_char_O(unsigned char ch)

{

regs.h.ah = 2; regs.h.al = ch; int86(0x34,®s,®s);

}

03

Enable RS-232 port

 

 

Entry Parameters:

AH = 3

 

Returned Values:

None

void TC_232_enable()

{

regs.h.ah = 3; int86(0x34,®s,®s);

}

04 Disable RS-232 port

Entry Parameters:

AH = 4

Returned Values:

None

void TC_232_disable()

{

regs.h.ah = 4; int86(0x34,®s,®s);

 

}

 

 

 

00

Set Communication parameters

 

 

 

Entry Parameters:

AH = 0

BIT #

 

 

 

 

76543210

 

 

 

AL = bit 0

xxxxxxx0

7 data bits

 

 

 

xxxxxxx1

8 data bits

 

 

bit 1

xxxxxx0x

1 stop bit

 

 

 

xxxxxx1x

2 stop bits

 

 

bit 2-3

xxxx00xx NONE parity

 

 

 

xxxx01xx ODD parity

 

 

 

xxxx11xx EVEN parity

 

 

bit 4-7

0000xxxx

110 baud rate

3-27

Page 28
Image 28
Unitech MR350MKII manual Disable RS-232 port, Set Communication parameters, Bit #