PT630 Programming Reference Guide
Page 25 of 59
------------------------------------------------------------------------------------------------------------------
1.5.13.3 Software Control Flow
Entry Parameter: AH = 1CH
BH = 2
AL = 0
; Enable XON/XOFF control flow
1
; Disable XON/XOFF control flow
Return
Value:
None
Note:
Only for NONE communication protocol
Example
:
void TC_flow_ctrl(int status)
{
if (status == 0)
// Set flow control to none
{
regs.h.ah = 0x1C;
regs.h.bh = 2;
regs.h.al = 1;
int86(0x21,®s,®s);
regs.h.ah = 0x1C;
regs.h.bh = 3;
regs.h.al = 1;
int86(0x21,®s,®s);
}
else if (status == 1)
{
regs.h.ah = 0x1C;
regs.h.bh = 2;
regs.h.al = 0;
int86(0x21,®s,®s);
}
else
{
regs.h.ah = 0x1C;
regs.h.bh = 2;
regs.h.al = 1;
int86(0x21,®s,®s);
}