![background image](http://html2.mh-extra.com/html/unitech/pt600/pt600_programming-reference-manual_4054029063.webp)
Example:
void TC_232_disable()
{
regs.h.ah = 4;
int86(0X33®s,®s);
}
05
Set RTS/DTR Signal of RS232 Port
Entry parameter:
AH =
5
AL = 1 ; set DTR
2
; set RTS
DH = 0
; set Enable (High voltage)
1 ; set Disable (Low voltage)
Return Value: None
Note:
Only for NONE communication protocol
Example
:
void TC_232_RTS(int rts)
{
regs.h.ah = 5;
regs.h.al = 2;
regs.h.dh = (unsigned char)rts;
int86(0X33®s,®s);
}
void TC_232_DTR(int dtr)
{
regs.h.ah = 5;
regs.h.al = 1;
regs.h.dh = (unsigned char)dtr;
int86(0X33®s,®s);
}
06
Get CTS Signal Status of RS232 Port
Entry Parameter:
AH =
6
AL = 1
; get CTS
Return Value: DH = 0
; High voltage on signal
1
; Low voltage on signal
Note:
Only for NONE communication protocol
Summary of Contents for PT600
Page 1: ...PT600 Portable Terminal Programming Reference Guide Document number 3506000120...
Page 7: ......
Page 16: ......
Page 20: ...regs h bh 5 regs h al unsigned char type regs h bl unsigned char status int86 0x21 regs regs...
Page 57: ......
Page 66: ...Host Command STX ESC CMD parameters CS1 CS2 ADDR Acknowledgement ACK Negative ACK NAK...