PT630 Programming Reference Guide
Page 53 of 59
------------------------------------------------------------------------------------------------------------------
case 2 : cc=cc|0x0c; break;
}
switch (stop)
{
case 1 : break;
case 2 : cc=cc|0x02; break;
}
switch (data)
{
case 7 : break;
case 8 : cc=cc|0x01; break;
}
regs.h.ah = 0;
regs.h.al = cc;
int86(0x33,®s,®s);
}
1.8.2 Get Character from RS232 Port
Entry Parameter: AH = 1
Return Value: 1) AH = 0
; has character input
AL
=
character
2) AH = 1
; no character input
Note:
Only for NONE communication protocol
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);
}