Example:
unsigned char TC_232_char_I()
{
regs.h.ah = 1;
int86(0x33,®s,®s);
if (regs.h.ah == 0)
{
return(regs.h.al);
}
return(255);
}
02
Send Character to RS232 Port
Entry Parameter:
AH = 2
AL = character
Return Value: None
Note:
Only for NONE communication protocol
Example:
void TC_232_char_O(unsigned char ch)
{
regs.h.ah = 2;
regs.h.al = ch;
int86(0X33®s,®s);
}
03
Enable RS-232 Port
Entry Parameter:
AH = 3
Return Value: None
Example:
void TC_232_enable()
{
regs.h.ah = 3;
int86(0x33,®s,®s);
}
04
Disable RS-232 Port
Entry Parameter:
AH = 4
Returned Value:
None
Содержание PT600
Страница 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Страница 7: ......
Страница 16: ......
Страница 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Страница 57: ......
Страница 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...