Unitech MR350MKII Barcode Reader User Manual


 
3-27
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,&regs,&regs);
}
03 Enable RS-232 port
Entry Parameters: AH = 3
Returned Values: None
void TC_232_enable()
{
regs.h.ah = 3;
int86(0x34,&regs,&regs);
}
04 Disable RS-232 port
Entry Parameters: AH = 4
Returned Values: None
void TC_232_disable()
{
regs.h.ah = 4;
int86(0x34,&regs,&regs);
}
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